SHOW:
|
|
- or go back to the newest paste.
1 | - | function giant(p, size) |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end function giant(p, size) | |
6 | local pchar = p.Character | |
7 | if pchar then | |
8 | local function scale(chr,scl) | |
9 | ||
10 | for _,v in pairs(pchar:GetChildren()) do | |
11 | if v:IsA("Hat") then | |
12 | v:Clone() | |
13 | v.Parent = game.Lighting | |
14 | end | |
15 | end | |
16 | ||
17 | local Head = chr['Head'] | |
18 | local Torso = chr['Torso'] | |
19 | local LA = chr['Left Arm'] | |
20 | local RA = chr['Right Arm'] | |
21 | local LL = chr['Left Leg'] | |
22 | local RL = chr['Right Leg'] | |
23 | local HRP = chr['HumanoidRootPart'] | |
24 | ||
25 | wait(0.1) | |
26 | ||
27 | Head.formFactor = 3 | |
28 | Torso.formFactor = 3 | |
29 | LA.formFactor = 3 | |
30 | RA.formFactor = 3 | |
31 | LL.formFactor = 3 | |
32 | RL.formFactor = 3 | |
33 | HRP.formFactor = 3 | |
34 | ||
35 | Head.Size = Vector3.new(scl * 2, scl, scl) | |
36 | Torso.Size = Vector3.new(scl * 2, scl * 2, scl) | |
37 | LA.Size = Vector3.new(scl, scl * 2, scl) | |
38 | RA.Size = Vector3.new(scl, scl * 2, scl) | |
39 | LL.Size = Vector3.new(scl, scl * 2, scl) | |
40 | RL.Size = Vector3.new(scl, scl * 2, scl) | |
41 | HRP.Size = Vector3.new(scl * 2, scl * 2, scl) | |
42 | ||
43 | local Motor1 = Instance.new('Motor6D', Torso) | |
44 | Motor1.Part0 = Torso | |
45 | Motor1.Part1 = Head | |
46 | Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
47 | Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
48 | Motor1.Name = "Neck" | |
49 | ||
50 | local Motor2 = Instance.new('Motor6D', Torso) | |
51 | Motor2.Part0 = Torso | |
52 | Motor2.Part1 = LA | |
53 | Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
54 | Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
55 | Motor2.Name = "Left Shoulder" | |
56 | ||
57 | local Motor3 = Instance.new('Motor6D', Torso) | |
58 | Motor3.Part0 = Torso | |
59 | Motor3.Part1 = RA | |
60 | Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
61 | Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
62 | Motor3.Name = "Right Shoulder" | |
63 | ||
64 | local Motor4 = Instance.new('Motor6D', Torso) | |
65 | Motor4.Part0 = Torso | |
66 | Motor4.Part1 = LL | |
67 | Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
68 | Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
69 | Motor4.Name = "Left Hip" | |
70 | ||
71 | local Motor5 = Instance.new('Motor6D', Torso) | |
72 | Motor5.Part0 = Torso | |
73 | Motor5.Part1 = RL | |
74 | Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
75 | Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
76 | Motor5.Name = "Right Hip" | |
77 | ||
78 | local Motor6 = Instance.new('Motor6D', HRP) | |
79 | Motor6.Part0 = HRP | |
80 | Motor6.Part1 = Torso | |
81 | Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
82 | Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
83 | ||
84 | end | |
85 | ||
86 | scale(pchar, size) | |
87 | pchar.Humanoid.WalkSpeed = 15 * size | |
88 | ||
89 | for _,v in pairs(game.Lighting:GetChildren()) do | |
90 | if v:IsA("Hat") then | |
91 | v.Parent = pchar | |
92 | end | |
93 | end | |
94 | end | |
95 | end | |
96 | ||
97 | local plr = game.Players.LocalPlayer | |
98 | giant(plr,1) | |
99 | ||
100 | ||
101 | local csize = 1 | |
102 | ||
103 | local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui) | |
104 | local base = Instance.new("Frame", sgui) | |
105 | base.BackgroundTransparency = 1 | |
106 | base.Size = UDim2.new(0, 110, 0, 200) | |
107 | base.Position = UDim2.new(1, -120, 1, -180) | |
108 | local indicator = Instance.new("TextLabel", base) | |
109 | indicator.Size = UDim2.new(1, 0, 0, 25) | |
110 | indicator.TextColor3 = Color3.new(1, 1, 1) | |
111 | indicator.BackgroundTransparency = 0 | |
112 | indicator.FontSize = Enum.FontSize.Size18 | |
113 | indicator.Font = Enum.Font.SourceSans | |
114 | indicator.Text = "Current Size: 3" | |
115 | local PlusOne = Instance.new("TextButton", base) | |
116 | PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255) | |
117 | PlusOne.Position = UDim2.new(0, 0, 0, 40) | |
118 | PlusOne.Size = UDim2.new(1, 0, 0.5, -50) | |
119 | PlusOne.BorderSizePixel = 2 | |
120 | PlusOne.Font = Enum.Font.SourceSansBold | |
121 | PlusOne.FontSize = Enum.FontSize.Size24 | |
122 | PlusOne.Text = "+.1 Size" | |
123 | local MinusOne = Instance.new("TextButton", base) | |
124 | MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255) | |
125 | MinusOne.Position = UDim2.new(0, 0, 0.5, 10) | |
126 | MinusOne.Size = UDim2.new(1, 0, 0.5, -50) | |
127 | MinusOne.Text = "-.1 Size" | |
128 | MinusOne.BorderSizePixel = 2 | |
129 | MinusOne.Font = Enum.Font.SourceSansBold | |
130 | MinusOne.FontSize = Enum.FontSize.Size24 | |
131 | ||
132 | PlusOne.MouseButton1Down:connect(function() | |
133 | csize = csize + .1 | |
134 | giant(plr, csize) | |
135 | indicator.Text = "Current Size: "..tostring(csize) | |
136 | end) | |
137 | ||
138 | MinusOne.MouseButton1Down:connect(function() | |
139 | csize = csize - .1 | |
140 | giant(plr, csize) | |
141 | indicator.Text = "Current Size: "..tostring(csize) | |
142 | end) |