I am trying to create a script that gives the player a certain amount of WalkSpeed depending on an IntValue when the character respawns. This feature works, but when I try and use a RemoteEvent to send it back to the LocalScript to update the player’s gui it stops working. No errors appear in the output.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
if plr:FindFirstChild("Values") then
local hum = character:FindFirstChild("Humanoid")
hum.WalkSpeed = plr.Values.WalkSpeed.Value
rs:WaitForChild("UpdateGui"):FireClient(plr)
end
end)
end)```