I'm pretty sure you dont need any more info than this:
The script thats in the part:
local part = script.Parent
local debounce = false
part.Touched:Connect(
function(hit)
if debounce == false then
debounce = true
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
plr:WaitForChild("PlayerGui").Quest1.Frame.Visible = true
("PlayerGui").Quest1.Frame.Visible = true
end
wait(3)
debounce = false
else
print("wait.........")
end
end
)
part.TouchEnded:Connect(
function()
if debounce == false then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr:WaitForChild("PlayerGui").Quest1.Frame.Visible = false
end
end
)

1 comment
I think you could anchor the player character HumanoidRootPart