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

why does this not work i have everything?

Asked by 6 years ago

playerWeedleGui = game.Players.LocalPlayer.PlayerGui.Main.WeedleFrame

deb = false

script.Parent.Touched:connect(function() if deb == false then deb = true playerWeedleGui.PlayerWeedles.SwagWeedleNotOwned.Text = "SwagWeedle" playerWeedleGui.PlayerWeedles.SwagWeedleNotOwned.Value = true print("Worked")

end

end)

says no errors

1 answer

Log in to vote
0
Answered by
Sir_Melio 221 Moderation Voter
6 years ago
Edited 6 years ago

It seems like you're trying to run a LocalScript inside Workspace (which isn't inside the character model). That won't work. Consider placing the LocalScript inside for example the GUI itself and change script.Parent to the path to the BasePart.

Ad

Answer this question