local plr = game.Players.LocalPlayer
local chr = plr.Character
local ref = game.Workspace.Part
local hum = chr:WaitForChild("Humanoid")
local InputService = game:GetService("UserInputService")
InputService.InputBegan:Connect(function(input)
	local plr = game.Players.LocalPlayer
local chr = plr.Character
local hum = chr.Humanoid

    local key = input.KeyCode 
    if key == Enum.KeyCode.R then
	for _,body in pairs(chr:GetChildren()) do
		if body:IsA("BasePart") then
			body.BrickColor = BrickColor.new("Gold")
			body.Material = "Neon"
		end
		for _,size in pairs(hum:GetChildren())do
			if size:IsA("NumberValue") then
				size.Value = 5
			
							
		
			end
-- this dose work as well
			for _,resize in pairs(hum:GetChildren()) do
				if resize.Name == "BodyDepthScale" or "BodyWidthScale" or "HeadScale" then
					resize.Value = 7
					end
				end

		end
		
	end

    end
end)




6 comments

0

Your code works, I tested it in a Baseplate. Under StarterCharacterScripts, it changes the whole body.

0

Sorry, I tested the first chunk not the whole script.

0

really? when i tryed it changed the color but not to neon 23,31 dose not work

0

I only tested to line 17, sorry.

0

its alright but can u test the rest of the script to see whats wrong plz

0

I've tried the script and there are things that do not work because you can not, change it changes you have to remove the pants and the shirt so it looks all gold and neon and if you use MeshPart not the same as BasePart are two different classes Anyway, I have tried and only change everything but not everything looks neon if I change the material.