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 6 years ago
Edited 6 years ago
game.Players.LocalPlayer.Backpack:WaitForChild("Hamburger",99)

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! :)")
script.Parent.Visible = true
script.Parent.Text =("Bring back the cane to the old man for your reward")
wait(5)
script.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 — 6y
0
Is your text displayed by the NPC in the form of a billboard gui? Le_Teapots 913 — 6y
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 — 6y

1 answer

Log in to vote
0
Answered by
commag 228 Moderation Voter
6 years ago
Edited 6 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 — 6y
0
Omg you're my freaking hero! :D Voideyz 4 — 6y
Ad

Answer this question