I have a on client event from a regular script to a local script for whenever a player or character is added which works, but when i reset and it fires it again it gives me an error even though it worked the first time. Along with this i have a script that inserts a part with a proximity prompt inside of it and thats what i want to be effected,
Just Adding the code :)
server client trigger
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) game.ReplicatedStorage.Event1:FireClient(player) end) end)
Local script function
wait(2) local player = game.Players.LocalPlayer.Name local char = game.Workspace:FindFirstChild(player) game.ReplicatedStorage.Event1.OnClientEvent:Connect(function(plr) wait(2) print("Worked") wait(5) char.TorsoPart.ProximityPrompt.Enabled = false end)