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,

01local debounce = true
02local Player = game.Players.LocalPlayer.Character
03Player.Touched:connect(function(hit)
04    if hit.Parent:FindFirstChild("Humanoid") ~= nil then
05        if debounce == true then
06            debounce = false
07              Player.Humanoid.WalkSpeed = 30 -- put whatever value you want here
08              Player.Humanoid.JumpPower = 60 -- put whatever value you want here
09            -- also add other Humanoid Settings if you want
10        end
11    end
12end)
Ad

Answer this question