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 | ---[controls]--- | |
8 | ---[SB (stupid permisson) ver here = https://pastebin.com/raw/Ufc1jG3g]--- | |
9 | ---[R stop Time]--- | |
10 | ---[F contiunes the time]--- | |
11 | local p = game.Players.LocalPlayer | |
12 | local char = p.Character | |
13 | local hed = char.Head | |
14 | local LocalPlayer = p | |
15 | ||
16 | local naeeym = Instance.new("BillboardGui",char) | |
17 | naeeym.Size = UDim2.new(0,100,0,40) | |
18 | naeeym.StudsOffset = Vector3.new(0,5,0) | |
19 | naeeym.Adornee = char.Head | |
20 | local tecks = Instance.new("TextLabel",naeeym) | |
21 | tecks.BackgroundTransparency = 1 | |
22 | tecks.BorderSizePixel = 0 | |
23 | tecks.Text = LocalPlayer.Name | |
24 | tecks.Font = "ArialBold" | |
25 | tecks.FontSize = "Size24" | |
26 | tecks.TextStrokeTransparency = 0 | |
27 | tecks.TextStrokeColor3 = Color3.new(0,0,0) | |
28 | tecks.TextColor3 = Color3.new(255,255,255) | |
29 | tecks.Size = UDim2.new(1,0,0.5,0) | |
30 | ||
31 | local Player = game.Players.localPlayer | |
32 | local Character = p.Character | |
33 | local LeftArm2 = Character["Left Arm"] | |
34 | local RightArm2 = Character["Right Arm"] | |
35 | local LeftLeg2 = Character["Left Leg"] | |
36 | local RightLeg2 = Character["Right Leg"] | |
37 | local Head2 = Character.Head | |
38 | local Torso2 = Character.Torso | |
39 | ||
40 | --created by SoldierJoao | |
41 | ||
42 | cut = Instance.new("Sound", Character) | |
43 | cut.SoundId = "https://www.roblox.com/asset/?id=97095069" | |
44 | cut.Volume = 1.5 | |
45 | thri = Instance.new("Sound", Character) | |
46 | thri.SoundId = "https://www.roblox.com/asset/?id=186311262" | |
47 | thri.Volume = 2.5 | |
48 | WRY = Instance.new("Sound", Character) | |
49 | WRY.SoundId = "https://www.roblox.com/asset/?id=276152532" | |
50 | WRY.Volume = 5 | |
51 | ||
52 | local Players=game:service'Players' | |
53 | local Player=Players.LocalPlayer | |
54 | local Mouse=Player:GetMouse'' | |
55 | local RenderStepped=game:service'RunService'.RenderStepped | |
56 | ||
57 | local MeshId='http://www.roblox.com/asset?id=202083123' | |
58 | local TextureId='http://www.roblox.com/asset/?id=189436355' | |
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | mse = Player:GetMouse() | |
69 | ||
70 | sound = Instance.new("Sound", Character) | |
71 | sound.SoundId = "https://www.roblox.com/asset/?id=290807425" | |
72 | sound.Volume = 2.5 | |
73 | sound2 = Instance.new("Sound", Character) | |
74 | sound2.SoundId = "https://www.roblox.com/asset/?id=290810519" | |
75 | sound2.Volume = 2.5 | |
76 | sound3 = Instance.new("Sound", Character) | |
77 | sound3.SoundId = "https://www.roblox.com/asset/?id=290807377" | |
78 | sound3.Volume = 1.8 | |
79 | sound4 = Instance.new("Sound", Character) | |
80 | sound4.SoundId = "https://www.roblox.com/asset/?id=290807397" | |
81 | sound4.Volume = 2 | |
82 | TSTheme = Instance.new("Sound", Character) | |
83 | TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380" | |
84 | TSTheme.Volume = 2 | |
85 | canworld = true | |
86 | mse.KeyDown:connect(function(key) | |
87 | key = key:lower() | |
88 | if key == "r" then | |
89 | if canworld == false then return end | |
90 | if canworld then | |
91 | canworld = false | |
92 | sound3:Play() | |
93 | tecks.Text = "ZA WARUDO" | |
94 | wait(2) | |
95 | tecks.Text = LocalPlayer.Name | |
96 | sound:Play() | |
97 | sound4:Play() | |
98 | TSTheme:Play() | |
99 | ||
100 | local function spawnpart() | |
101 | sphere = Instance.new("Part") | |
102 | --game.Debris:AddItem(sphere,3) | |
103 | local sm = Instance.new("SpecialMesh", sphere) | |
104 | sm.MeshType = "Sphere" | |
105 | sphere.Transparency = 0.5 | |
106 | sphere.Anchored = true | |
107 | sphere.CanCollide = false | |
108 | sphere.Material = "Neon" | |
109 | sphere.BrickColor = BrickColor.new("Black") | |
110 | end | |
111 | ||
112 | local function weld(lol) | |
113 | local weld = Instance.new("Weld", Player.Character.Torso) | |
114 | weld.Part0 = Player.Character.Torso | |
115 | weld.Part1 = lol | |
116 | weld.C0 = Player.Character.Torso.CFrame:inverse() | |
117 | weld.C1 = lol.CFrame:inverse() | |
118 | end | |
119 | wait() | |
120 | spawnpart() | |
121 | for i, v in pairs(game.Players:GetChildren()) do | |
122 | t = v.Character:FindFirstChild("Torso") | |
123 | if t then | |
124 | t.Anchored = true | |
125 | Player.Character:FindFirstChild("Torso").Anchored = false | |
126 | end | |
127 | RA = v.Character:FindFirstChild("Right Arm") | |
128 | if RA then | |
129 | RA.Anchored = true | |
130 | Player.Character:FindFirstChild("Right Arm").Anchored = false | |
131 | end | |
132 | LA = v.Character:FindFirstChild("Left Arm") | |
133 | if LA then | |
134 | LA.Anchored = true | |
135 | Player.Character:FindFirstChild("Left Arm").Anchored = false | |
136 | end | |
137 | RL = v.Character:FindFirstChild("Right Leg") | |
138 | if RL then | |
139 | RL.Anchored = true | |
140 | Player.Character:FindFirstChild("Right Leg").Anchored = false | |
141 | end | |
142 | LL = v.Character:FindFirstChild("Left Leg") | |
143 | if LL then | |
144 | LL.Anchored = true | |
145 | Player.Character:FindFirstChild("Left Leg").Anchored = false | |
146 | end | |
147 | end | |
148 | weld(sphere) | |
149 | ||
150 | ||
151 | sphere.Parent = Character.Torso | |
152 | for i = 1,3 do | |
153 | cce = Instance.new("ColorCorrectionEffect", game.Lighting) | |
154 | cce.Saturation = -5 | |
155 | --game.Debris:AddItem(cce, 5) | |
156 | sphere.Size = sphere.Size + Vector3.new(100,100,100) | |
157 | wait() | |
158 | end | |
159 | wait() | |
160 | sphere:Destroy() | |
161 | ||
162 | ||
163 | wait(0.3) | |
164 | ||
165 | wait(0.3) | |
166 | ||
167 | wait(0.2) | |
168 | ||
169 | wait() | |
170 | end | |
171 | end | |
172 | end | |
173 | ) | |
174 | ||
175 | tecks.Text = LocalPlayer.Name | |
176 | ||
177 | mse.KeyDown:connect(function(key) | |
178 | key = key:lower() | |
179 | if key == "f" then | |
180 | canworld = true | |
181 | tecks.Text = "time has continue to flow" | |
182 | sound2:Play() | |
183 | wait() | |
184 | ||
185 | cce.Saturation = -1.3 | |
186 | wait(0.5) | |
187 | ||
188 | cce.Saturation = -0.5 | |
189 | wait(0.5) | |
190 | ||
191 | cce.Saturation = -0.4 | |
192 | wait(0.3) | |
193 | ||
194 | cce.Saturation = -0.2 | |
195 | wait(0.2) | |
196 | cce.Saturation = 0 | |
197 | ||
198 | for i, v in pairs(game.Players:GetChildren()) do | |
199 | t = v.Character:FindFirstChild("Torso") | |
200 | if t then | |
201 | t.Anchored = false | |
202 | end | |
203 | RA = v.Character:FindFirstChild("Right Arm") | |
204 | if RA then | |
205 | RA.Anchored = false | |
206 | end | |
207 | LA = v.Character:FindFirstChild("Left Arm") | |
208 | if LA then | |
209 | LA.Anchored = false | |
210 | end | |
211 | RL = v.Character:FindFirstChild("Right Leg") | |
212 | if RL then | |
213 | RL.Anchored = false | |
214 | end | |
215 | LL = v.Character:FindFirstChild("Left Leg") | |
216 | if LL then | |
217 | LL.Anchored = false | |
218 | end | |
219 | end | |
220 | tecks.Text = LocalPlayer.Name | |
221 | TSTheme:Stop() | |
222 | end | |
223 | end) |