Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ProximityPrompt Changes the text?

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

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.