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 val = script.Parent.Transfrombodything.OFFORON


-- on 
    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
	
			-- "BodyDepthScale" or "BodyWidthScale" or "HeadScale" then
					--resize.Value = 7
		hum:WaitForChild("BodyDepthScale").Value = 10
		hum:WaitForChild("BodyWidthScale").Value = 7.89
		hum:WaitForChild("HeadScale").Value = 6

				val.Value = "ON"
		
	end
end
    end
end)
-----



--off

InputService.InputBegan:Connect(function(input)
	local val = script.Parent.Transfrombodything.OFFORON
	local plr = game.Players.LocalPlayer
local chr = plr.Character
local hum = chr.Humanoid
    local key = input.KeyCode 

    if key == Enum.KeyCode.E then
	if val.Value == "ON" then
	for _,size in pairs(hum:GetChildren())do
			if size:IsA("NumberValue") then
				size:Destroy()
			end
			
	
		end
				
		for _,cl in pairs(script.Parent.Transfrombodything:GetChildren()) do
	if cl:IsA("NumberValue") then
		cl:Clone()
		cl.Parent = hum
	end
		
end
end
end

val = "OFF"
end)

5 comments

0

"why dose it parent it dose char when i do it a 2 time" please explain t w/ proper grammer

0

The title is a bit hard to understand, could you try explaining in more detail and more clearly?

0

i use the script to trans form when i press r the undo the transform by press e when u use the transform script twice/ 3 times it dose not work

0

Line 75 should probably be val.Value == "OFF".

0

uh i need proper english to solve this