game.Players.LocalPlayer.Backpack:WaitForChild("Hamburger", 300)

game.Workspace.Npc.NPC.TriggerBlock.Text.Value =("Wow thanks")
game.Workspace.Npc.NPC.TriggerBlock.Text.Text.Value = ("Here have 100 candies! :D")
game.Workspace.Npc.NPC.TriggerBlock.Text.Text.Text.Value =("Bye! :)")
game.Players.LocalPlayer.leaderstats.Candy = game.Players.LocalPlayer.leaderstats.Candy + 100


2 comments

0

First off, I'd change the name of some of those "texts", as there's a property for text and it could mess with your script. Next you need it to also search if the player has the item equipped, if it's equipped it'll be located in the player's model in the workspace. So you'd do ( WaitForChild(this) or WaitForChild(this) ). Hope this helps!

0

If you use filtering enabled, and use a local script for these scripts then the change will only happen for the local player.