Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Changing a Humanoid through a morph?

Asked by 5 years ago

Hey, I'm just wondering how I would go about changing a players humanoid after touching a brick? So, to explain it a bit further, we have a Yoda morph which most you may know is very small. Currently the morph just changes your head, clothes and skin but can't figure out how to change the actual humanoid so it will change the players model size. Thanks in advanced.

1 answer

Log in to vote
0
Answered by 5 years ago

change the settings of the humanoid itself,

local debounce = true
local Player = game.Players.LocalPlayer.Character
Player.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") ~= nil then
        if debounce == true then
            debounce = false
              Player.Humanoid.WalkSpeed = 30 -- put whatever value you want here
              Player.Humanoid.JumpPower = 60 -- put whatever value you want here
            -- also add other Humanoid Settings if you want
        end
    end 
end)
Ad

Answer this question