View difference between Paste ID: LwQU2eT4 and vgz5yrhx
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
function giant(p, size)	
87
	local pchar = p.Character
88
	if pchar then
89
		local function scale(chr,scl)
90
		
91
			for _,v in pairs(pchar:GetChildren()) do
92
				if v:IsA("Hat") then
93-
local plr = game.Players.LocalPlayer
93+
94
					v.Parent = game.Lighting
95
				end
96
			end
97
				
98
		    local Head = chr['Head']
99-
local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
99+
100
		    local LA = chr['Left Arm']
101
		    local RA = chr['Right Arm']
102
		    local LL = chr['Left Leg']
103
		    local RL = chr['Right Leg']
104
		    local HRP = chr['HumanoidRootPart']
105
		
106
		    wait(0.1)
107
		   
108
		    Head.formFactor = 3
109
		    Torso.formFactor = 3
110
		    LA.formFactor = 3
111
		    RA.formFactor = 3
112
		    LL.formFactor = 3
113
		    RL.formFactor = 3
114
		    HRP.formFactor = 3
115
		    
116
		    Head.Size = Vector3.new(scl * 2, scl, scl)
117
		    Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
118
		    LA.Size = Vector3.new(scl, scl * 2, scl)
119
		    RA.Size = Vector3.new(scl, scl * 2, scl)
120
		    LL.Size = Vector3.new(scl, scl * 2, scl)
121
		    RL.Size = Vector3.new(scl, scl * 2, scl)
122
		    HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
123
		    
124
		    local Motor1 = Instance.new('Motor6D', Torso)
125
		    Motor1.Part0 = Torso
126
		    Motor1.Part1 = Head
127
	    	Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
128
	    	Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
129
	    	Motor1.Name = "Neck"
130
				    
131
	    	local Motor2 = Instance.new('Motor6D', Torso)
132
	    	Motor2.Part0 = Torso
133
	    	Motor2.Part1 = LA
134
	    	Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
135
	    	Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
136
	    	Motor2.Name = "Left Shoulder"
137
	    	
138
	    	local Motor3 = Instance.new('Motor6D', Torso)
139
	   		Motor3.Part0 = Torso
140
	    	Motor3.Part1 = RA
141
	    	Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
142
	    	Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
143
	    	Motor3.Name = "Right Shoulder"
144
	    	
145
	    	local Motor4 = Instance.new('Motor6D', Torso)
146
	    	Motor4.Part0 = Torso
147
	    	Motor4.Part1 = LL
148
	    	Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
149
	    	Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
150
	    	Motor4.Name = "Left Hip"
151
	    	
152
	    	local Motor5 = Instance.new('Motor6D', Torso)
153
	    	Motor5.Part0 = Torso
154
	    	Motor5.Part1 = RL
155
	    	Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
156
	    	Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
157
	    	Motor5.Name = "Right Hip"
158
	    	
159
	    	local Motor6 = Instance.new('Motor6D', HRP)
160
	    	Motor6.Part0 = HRP
161
	    	Motor6.Part1 = Torso
162
	    	Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
163
	    	Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
164
	    	    
165
		end
166
		
167
		scale(pchar, size)
168
		pchar.Humanoid.WalkSpeed = 15 * size
169
	
170
		for _,v in pairs(game.Lighting:GetChildren()) do
171
			if v:IsA("Hat") then
172
				v.Parent = pchar
173
			end
174
		end
175
	end
176
end
177
178
local plr = owner
179
giant(plr,1)
180
181
182
local csize = 1
183
184
local sgui = owner
185
local base = Instance.new("Frame", sgui)
186
base.BackgroundTransparency = 1
187
base.Size = UDim2.new(0, 110, 0, 200)
188
base.Position = UDim2.new(1, -120, 1, -180)
189
local indicator = Instance.new("TextLabel", base)
190
indicator.Size = UDim2.new(1, 0, 0, 25)
191
indicator.TextColor3 = Color3.new(1, 1, 1)
192
indicator.BackgroundTransparency = 0
193
indicator.FontSize = Enum.FontSize.Size18
194
indicator.Font = Enum.Font.SourceSans
195
indicator.Text = "Current Size: 3"
196
local PlusOne = Instance.new("TextButton", base)
197
PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
198
PlusOne.Position = UDim2.new(0, 0, 0, 40)
199
PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
200
PlusOne.BorderSizePixel = 2
201
PlusOne.Font = Enum.Font.SourceSansBold
202
PlusOne.FontSize = Enum.FontSize.Size24
203
PlusOne.Text = "+.1 Size"
204
local MinusOne = Instance.new("TextButton", base)
205
MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
206
MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
207
MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
208
MinusOne.Text = "-.1 Size"
209
MinusOne.BorderSizePixel = 2
210
MinusOne.Font = Enum.Font.SourceSansBold
211
MinusOne.FontSize = Enum.FontSize.Size24
212
213
PlusOne.MouseButton1Down:connect(function()
214
	csize = csize + .1
215
	giant(plr, csize)
216
	indicator.Text = "Current Size: "..tostring(csize)
217
end)
218
219
MinusOne.MouseButton1Down:connect(function()
220
	csize = csize - .1
221
	giant(plr, csize)
222
	indicator.Text = "Current Size: "..tostring(csize)
223
end)