Now what do you mean making it local? I don’t think I understand what you mean, you only want one player to see it? Only the player that touched the part?
This must be a Local Script in Starter Player Scripts Do this, make sure to define the path to the part on the first line:
local Part = --define path here
local player = game.Players.LocalPlayer
local function onTouched(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name == player.Name then
wait()
Part.Color = Color3.new(1, 0.458824, 0.458824)
Part.Material = Enum.Material.Neon
wait(0.5)
Part.Anchored = false
end
end
Part.Touched:Connect(onTouched)
Edit: Sorry I made a few mistakes, so recopy it now.
I made a few mistakes in my previous script, this should be the updated script. Basically what I did was this. Every player has their own local script, and each of their scripts detects when the part is touched. Then the script checks if the player that touched it is the local player, if it is, then it changes the part.
local Part = game.Workspace.Red
local player = game.Players.LocalPlayer
local function onTouched(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name == player.Name then
wait()
Part.Color = Color3.new(1, 0.458824, 0.458824)
Part.Material = Enum.Material.Neon
wait(0.5)
Part.Anchored = false
end
end
Part.Touched:Connect(onTouched)
Very strange. The only thing I can think of is that it becomes anchored, but the script wouldn’t do that. Do you have any other scripts that handle the part. Also can you test the game, step on the part, then check the properties tab while still in the game and see if the part is anchored?