local prox = (script.parent.ProximityPrompt) prox.Triggered:Connect(function()…
- User
local prox = (script.parent.ProximityPrompt)
prox.Triggered:Connect(function() print("hi") end) neden calısmıyor
Assistant
Bu kodunuzda birkaç olası sorun olabilir. İşte kontrol etmeniz gerekenler:
1. ProximityPrompt'un varlığını kontrol edin:
local prox = script.Parent:FindFirstChild("ProximityPrompt") if prox then prox.Triggered:Connect(function() print("hi") end) else print("ProximityPrompt bulunamadı!") end2. Script türünü kontrol edin:
- ServerScript kullanın (LocalScript değil)
- ProximityPrompt eventi server-side çalışır
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.