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