I am trying to make a GUI pop up after touching a part, the part will then be removed after being touched. The problem is that the part removes for all players after being touched by only one. How would I make this part only remove for the person touching it?
Use a LocalScript, that way it only works for one client.
local Part = nil -- change to part location local Players = game:GetService('Players') local UI = nil -- change this to UI location function onTouched(Hit) local Player = Players:GetPlayerFromCharacter(Hit.Parent) if Player then local newUI = UI:Clone() newUI.Parent = Player.PlayerGui Part:Destroy() end end) part.Touched:Connect(onTouched)