This is ran in a local script
wait(2)
local player = game.Players.LocalPlayer.Name
local char = game.Workspace:FindFirstChild(player)
game.ReplicatedStorage.Event1.OnClientEvent:Connect(function(plr)
print("Worked")
char.TorsoPart.ProximityPrompt.Enabled = false
end)
this is in a regular script to fire this
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
game.ReplicatedStorage.Event1:FireClient(player)
end)
end)
The regular script works fine but in the local script when it first runs when a player first joins it works but when a player either respawns or dies it says the part is not there even though when i check the explorer tab it shows the parts there.
Overall im trying to make a part visible for others but not me
