Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

? connect a remote event - to resize local player

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"

1 comment

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

1 answer

✓ Accepted answer

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

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.