Hello so I have a script where when you press E the character grows to 1.5 and when you press q the character shrinks to 0.5, for some reason the E to grow works and you grow but when you press q nothing happens and no errors in console, can anyone fix this?
The e to grow script:
local remoteEvent1 = game.ReplicatedStorage.ePress
remoteEvent1.OnServerEvent:Connect(function(player, ePressed)
if ePressed then
player.Character.Humanoid.HeadScale.Value = 1.5
player.Character.Humanoid.BodyDepthScale.Value = 1.5
player.Character.Humanoid.BodyHeightScale.Value = 1.5
player.Character.Humanoid.BodyWidthScale.Value = 1.5
player.Character.Humanoid.WalkSpeed = 25
else
player.Character.Humanoid.HeadScale.Value = 1
player.Character.Humanoid.BodyDepthScale.Value = 1
player.Character.Humanoid.BodyHeightScale.Value = 1
player.Character.Humanoid.BodyWidthScale.Value = 1
player.Character.Humanoid.WalkSpeed = 16
end
end)
the q to shrink script:
local remoteEvent2 = game.ReplicatedStorage.qPress
remoteEvent2.OnServerEvent:Connect(function(player, qPressed)
if qPressed then
player.Character.Humanoid.HeadScale.Value = 0.5
player.Character.Humanoid.BodyDepthScale.Value = 0.5
player.Character.Humanoid.BodyHeightScale.Value = 0.5
player.Character.Humanoid.BodyWidthScale.Value = 10.5
player.Character.Humanoid.WalkSpeed = 18
else
player.Character.Humanoid.HeadScale.Value = 1
player.Character.Humanoid.BodyDepthScale.Value = 1
player.Character.Humanoid.BodyHeightScale.Value = 1
player.Character.Humanoid.BodyWidthScale.Value = 1
player.Character.Humanoid.WalkSpeed = 16
end
end)