So this localscript inside of startercharacterscripts is meant to resize the character's HumanoidRootPart and make it really short on the Y scale, which is supposed to act kind of like a crouch.
local Player = game.Players.LocalPlayer
local Character = Player.Character
local CharAnimation
local hrp = Character;FindFirstChild("HumanoidRootPart")
game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.C then
hrp.Size = Vector3.new(script.Parent.Size.X,script.Parent.Size.Y - 1.9,script.Parent.Size.Z)
So basically, it's supposed to resize the HumanoidRootPart when the player presses "C", but it deosn't do that. please help

13 comments
^ You need to do it in a ServerScript
Oh, I'll try that
It still does nothing
What exactly is the issue??? Please provide more information.
where did you put the script in?
@brokenVectors I edited
if your trying to make it look like there crouching, try changing the camera position
I put the script into StarterCharacterScripts inside a localscript,I feel like it needs to be rewritten but don't know what to write.
Also bot no I'm trying to make the character physically move down, and I do that by changing the size of the hrp
Also bot no I'm trying to make the character physically move down, and I do that by changing the size of the hrp
Have you tried debugging this yourself? I recommend taking at least 3 hours to solve a problem before taking it to a forum like scriptinghelpers.
I've been trying to get this script working since yesterday, I 'm not sure where to start re-writing
Can someone just fix the script?!