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

How do i make it so the text changes for the only player who got the certain tool?

Asked by 6 years ago
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


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! EnderGamer358 79 — 6y
0
If you use filtering enabled, and use a local script for these scripts then the change will only happen for the local player. xdeno 187 — 6y

Answer this question