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.Value only changes for the player that has got the 'Hamburger' tool?

Asked by 7 years ago
Edited 7 years ago
1game.Players.LocalPlayer.Backpack:WaitForChild("Hamburger",99)
2 
3game.Workspace.Npc.NPC.TriggerBlock.Text.Value =("Wow thanks")
4game.Workspace.Npc.NPC.TriggerBlock.Text.Text.Value = ("Here have 100 candies! :D")
5game.Workspace.Npc.NPC.TriggerBlock.Text.Text.Text.Value =("Bye! :)")
6script.Parent.Visible = true
7script.Parent.Text =("Bring back the cane to the old man for your reward")
8wait(5)
9script.Parent.Visible = false

(The Text.Value is a npc's text.. wich works)

0
With FilteringEnabled, if you change the value through a local script (which it appears you are doing), it should only change for that player. mattscy 3725 — 7y
0
Is your text displayed by the NPC in the form of a billboard gui? Le_Teapots 913 — 7y
0
If so, you could parent the billboard GUI to the player's GUI and set it's adornee to the NPC's "TriggerBlock" (as it appears on your thread). Le_Teapots 913 — 7y

1 answer

Log in to vote
0
Answered by
commag 228 Moderation Voter
7 years ago
Edited 7 years ago

Use the documentation here: http://wiki.roblox.com/index.php?title=Local_parts

0
By this I mean make the GUI a local part :) commag 228 — 7y
0
Omg you're my freaking hero! :D Voideyz 4 — 7y
Ad

Answer this question