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

ProximityPrompt Changes the text?

Asked by 2 years ago
local Player = game.Players.LocalPlayer
local ProxomityProm = script.Parent.ProximityPrompt
local change = script.Parent.Parent.IDK.SurfaceGui.TextLabel

ProxomityProm.Triggered:Connect(function()
    change.Text = "IDK"..Player.Name.."HEH"
end)

1 answer

Log in to vote
0
Answered by 2 years ago

cant use local scripts in workspace, you can replace it with a script and change the script a bit like this.

local ProxomityProm = script.Parent.ProximityPrompt
local change = script.Parent.Parent.IDK.SurfaceGui.TextLabel

ProxomityProm.Triggered:Connect(function(Player)
    change.Text = "IDK"..Player.Name.."HEH"
end)
Ad

Answer this question