Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why does this not work i have everything?

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.