I do not get any errors in testing but it just won't work in the real game... please help
local this = script.Parent local plr = this.Parent.Parent.Parent.Parent this.Activated:connect(function() if plr.Backpack:FindFirstChild("Hot Dog") then plr.Backpack:FindFirstChild("Hot Dog"):Destroy() plr.leaderstats.Cash.Value = plr.leaderstats.Cash.Value + 10 plr.PlayerGui.quest1gui.Frame.TextBox.Text = "Thank You :)" this:Destroy() wait(3) plr.PlayerGui.quest1gui:Destroy() end end)
Try using a Local script and change local plr = this.Parent.Parent.Parent.Parent
to local plr = game.Players.Localplayer