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

? connect a remote event - to resize local player

Asked by 3 years ago

rigtype of local player is R15, not sure what i'm doing wrong...

-- MAKE PLAYER BIGGER
game.ReplicatedStorage.PlayerBigger.OnServerEvent:Connect(function(player) 
    local humanoid = player.Character.Humanoid

    if humanoid then
        if humanoid.BodyWidthScale then
            print("found BodyWidthScale")
        else
            print("no BodyWidthScale")
        end
    end 
end)

BodyWidthScale is not a valid member of Humanoid "Workspace.Player1.Humanoid"

0
If you're firing a remote event on the server, theres no need to check for a humanoid. It would be helpful if you showed your local script, meaning the script that fired the remote evnet ssgmalachi 52 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

game.ReplicatedStorage.PlayerBigger.OnServerEvent:Connect(function(plr) local myVar = nil -- put the number you want your player to grow right here local character = plr.Character local humanoid = character:WaitForChild("Humanoid) humanoid.BodyWidthScale.Value += (myVar) end)

If this doesnt work, send me the error

0
Found out the problem, I created my own character, based on a 'Build Rig'/'Rig Builder' character. And for some unknown reason, the values are not present in humanoid… I’m still learning. Thanks for replies. dwanedibbley 10 — 3y
Ad

Answer this question