View difference between Paste ID: H726SJSr and vgz5yrhx
SHOW: | | - or go back to the newest paste.
1
function giant(p, size)	
2
	local pchar = p.Character
3
	if pchar then
4
		local function scale(chr,scl)
5
		
6
			for _,v in pairs(pchar:GetChildren()) do
7-
				if v:IsA("Hat") then
7+
				if v:IsA("Hat") or v:IsA("Accessory") then
8
					v:Clone()
9
					v.Parent = game.Lighting
10
				end
11
			end
12
				
13
		    local Head = chr['Head']
14
		    local Torso = chr['Torso']
15
		    local LA = chr['Left Arm']
16
		    local RA = chr['Right Arm']
17
		    local LL = chr['Left Leg']
18
		    local RL = chr['Right Leg']
19
		    local HRP = chr['HumanoidRootPart']
20
		
21
		    wait(0.1)
22
		   
23
		    Head.formFactor = 3
24
		    Torso.formFactor = 3
25
		    LA.formFactor = 3
26
		    RA.formFactor = 3
27
		    LL.formFactor = 3
28
		    RL.formFactor = 3
29
		    HRP.formFactor = 3
30
		    
31
		    Head.Size = Vector3.new(scl * 2, scl, scl)
32
		    Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
33
		    LA.Size = Vector3.new(scl, scl * 2, scl)
34
		    RA.Size = Vector3.new(scl, scl * 2, scl)
35
		    LL.Size = Vector3.new(scl, scl * 2, scl)
36
		    RL.Size = Vector3.new(scl, scl * 2, scl)
37
		    HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
38
		    
39
		    local Motor1 = Instance.new('Motor6D', Torso)
40
		    Motor1.Part0 = Torso
41
		    Motor1.Part1 = Head
42
	    	Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
43
	    	Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
44
	    	Motor1.Name = "Neck"
45
				    
46
	    	local Motor2 = Instance.new('Motor6D', Torso)
47
	    	Motor2.Part0 = Torso
48
	    	Motor2.Part1 = LA
49
	    	Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
50
	    	Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
51
	    	Motor2.Name = "Left Shoulder"
52
	    	
53
	    	local Motor3 = Instance.new('Motor6D', Torso)
54
	   		Motor3.Part0 = Torso
55
	    	Motor3.Part1 = RA
56
	    	Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
57
	    	Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
58
	    	Motor3.Name = "Right Shoulder"
59
	    	
60
	    	local Motor4 = Instance.new('Motor6D', Torso)
61
	    	Motor4.Part0 = Torso
62
	    	Motor4.Part1 = LL
63
	    	Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
64
	    	Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
65
	    	Motor4.Name = "Left Hip"
66
	    	
67
	    	local Motor5 = Instance.new('Motor6D', Torso)
68
	    	Motor5.Part0 = Torso
69
	    	Motor5.Part1 = RL
70
	    	Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
71
	    	Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
72
	    	Motor5.Name = "Right Hip"
73
	    	
74
	    	local Motor6 = Instance.new('Motor6D', HRP)
75
	    	Motor6.Part0 = HRP
76
	    	Motor6.Part1 = Torso
77
	    	Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
78
	    	Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
79
	    	    
80
		end
81
		
82
		scale(pchar, size)
83
		pchar.Humanoid.WalkSpeed = 15 * size
84
	
85
		for _,v in pairs(game.Lighting:GetChildren()) do
86
			if v:IsA("Hat") then
87
				v.Parent = pchar
88
			end
89
		end
90
	end
91
end
92
93
local plr = game.Players.LocalPlayer
94
giant(plr,1)
95
96
local mouse = plr:GetMouse()
97
98
local csize = 1
99-
local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
99+
100-
local base = Instance.new("Frame", sgui)
100+
mouse.KeyDown:Connect(function(key)
101-
base.BackgroundTransparency = 1
101+
	key = key:lower()
102-
base.Size = UDim2.new(0, 110, 0, 200)
102+
	if key == "e" then
103-
base.Position = UDim2.new(1, -120, 1, -180)
103+
		csize = csize + .1
104-
local indicator = Instance.new("TextLabel", base)
104+
		giant(plr, csize)
105-
indicator.Size = UDim2.new(1, 0, 0, 25)
105+
	elseif key == "q" then
106-
indicator.TextColor3 = Color3.new(1, 1, 1)
106+
		csize = csize - .1
107-
indicator.BackgroundTransparency = 0
107+
		giant(plr, csize)	
108-
indicator.FontSize = Enum.FontSize.Size18
108+
109-
indicator.Font = Enum.Font.SourceSans
109+