local Remote = game.ReplicatedStorage.Remotes.GigantificationRemotes.GigantificationFire Remote.OnServerEvent:Connect(function(Player,Mouse) local player = game.Players.LocalPlayer local character = player.Character while true do wait(0.25) character.Torso.Size = character.Torso.Size + 1,1,1 wait(4) break end end)
getting an error at "local character"
The server can't use
game.Players.LocalPlayer, it's client-only. If you want the character you can simply use the
Character property of the
Player argument passed as such:
-- If you're sure the character is there
local character = Player.Character
-- If the character might not have been made yet local character = Player.Character or Player.CharacterAdded:Wait() ``` Hope this helps you, feel free to ask any questions or point out mistakes and I'll try my best to help :)
Assuming this script is on the server side, you cannot use
game.Players.LocalPlayeron it. Since you already passed a Player parameter, use that instead of LocalPlayer.