Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

my local script is not working, help?

Asked by 5 years ago
Edited 5 years ago

here is my script, im making a npc chat script.

script.Parent.Touched:Connect(function()
    game:GetService("Players").LocalPlayer.PlayerGui.Talk.Frame.Visible = true
end)
script.Parent.TouchEnded:Connect(function()
end)
0
LocalPlayer is a property, and you can’t use :WaitForChild() on a property. The script is pretty much waiting for a player named “LocalPlayer”. Also, LocalPlayer returns nil on server (normal) scripts. User#20279 0 — 5y
0
thanks. natonator63 29 — 5y

Answer this question