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 | --[[ Script created by | |
8 | Siarius, enjoy! | |
9 | Copyright, Ghost, and all Ghost functions, parts, etc | |
10 | changing the name of who created, will cause in you breaking rules | |
11 | --]] | |
12 | ||
13 | ||
14 | s = game.Workspace | |
15 | ||
16 | Player = game.Players.LocalPlayer | |
17 | c = Player.Character | |
18 | mouse = Player:GetMouse() | |
19 | ||
20 | s2 = Instance.new("Sound", c.Head) | |
21 | s2.Name = "Bleu" | |
22 | s2.Volume = 1 | |
23 | ||
24 | c.Humanoid.MaxHealth = math.huge | |
25 | c.Humanoid.Health = math.huge | |
26 | ||
27 | game:GetService("Chat"):Chat(c, "Ghost, Created by Siarius [V0.136]") | |
28 | ||
29 | for i,v in pairs(c:GetChildren()) do | |
30 | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then | |
31 | v:remove() | |
32 | wait() | |
33 | end | |
34 | end | |
35 | ||
36 | c.Humanoid.DisplayDistanceType = "None" | |
37 | c.Humanoid.NameOcclusion = "OccludeAll" | |
38 | c.Head.Transparency = .6 | |
39 | c.Torso.Transparency = .4 | |
40 | c["Right Arm"].Transparency = .2 | |
41 | c["Left Arm"].Transparency = .2 | |
42 | c["Right Leg"].Transparency = .9 | |
43 | c["Left Leg"].Transparency = .9 | |
44 | c.Head.BrickColor = BrickColor.new("Industrial white") | |
45 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
46 | c["Right Arm"].BrickColor = BrickColor.new("Industrial white") | |
47 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
48 | c["Right Leg"].BrickColor = BrickColor.new("Industrial white") | |
49 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
50 | c.Head.face.Texture = "rbxassetid://0" | |
51 | ||
52 | ---Start of Invisibility--- | |
53 | mouse.KeyDown:connect(function(key) | |
54 | print("Key Pressed : "..key) | |
55 | if key == "e" then | |
56 | game:GetService("Chat"):Chat(c, "Invisibility") | |
57 | s2.SoundId = "rbxassetid://134012322" | |
58 | s2:Play() | |
59 | s2.Volume = 1 | |
60 | wait(0.05) | |
61 | c.Head.Transparency = 1 | |
62 | c.Torso.Transparency = 1 | |
63 | c["Right Arm"].Transparency = 1 | |
64 | c["Left Arm"].Transparency = 1 | |
65 | c["Right Leg"].Transparency = 1 | |
66 | c["Left Leg"].Transparency = 1 | |
67 | c.Head.CanCollide = false | |
68 | c.Torso.CanCollide = false | |
69 | c["Right Arm"].CanCollide = false | |
70 | c["Left Arm"].CanCollide = false | |
71 | c["Right Leg"].CanCollide = false | |
72 | c["Left Leg"].CanCollide = false | |
73 | end | |
74 | end) | |
75 | ||
76 | mouse.KeyUp:connect(function(key) | |
77 | if key == "e" then | |
78 | s2:Play() | |
79 | wait(0.05) | |
80 | c.Head.Transparency = .6 | |
81 | c.Torso.Transparency = .4 | |
82 | c["Right Arm"].Transparency = .2 | |
83 | c["Left Arm"].Transparency = .2 | |
84 | c["Right Leg"].Transparency = .9 | |
85 | c["Left Leg"].Transparency = .9 | |
86 | c.Head.BrickColor = BrickColor.new("Industrial white") | |
87 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
88 | c["Right Arm"].BrickColor = BrickColor.new("Industrial white") | |
89 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
90 | c["Right Leg"].BrickColor = BrickColor.new("Industrial white") | |
91 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
92 | c.Head.CanCollide = true | |
93 | c.Torso.CanCollide = true | |
94 | c["Right Arm"].CanCollide = true | |
95 | c["Left Arm"].CanCollide = true | |
96 | c["Right Leg"].CanCollide = true | |
97 | c["Left Leg"].CanCollide = true | |
98 | end | |
99 | end) | |
100 | ---End of Invisibility--- | |
101 | ||
102 | ---Start of Roar--- | |
103 | mouse.KeyDown:connect(function(key) | |
104 | if key == "r" then | |
105 | game:GetService("Chat"):Chat(c, "Roar-Blast") | |
106 | s2.SoundId = "rbxassetid://222938768" | |
107 | s2.Volume = 5 | |
108 | wait(.01) | |
109 | children = game.Players:GetChildren() | |
110 | ||
111 | for i = 1, #children do | |
112 | children[i].Character.Humanoid.Health = 80 | |
113 | end | |
114 | ||
115 | s2:Play() | |
116 | end | |
117 | end) | |
118 | ---End of Roar--- | |
119 | ||
120 | ---Start of Slow Time--- | |
121 | mouse.KeyDown:connect(function(key) | |
122 | if key == "f" then | |
123 | game:GetService("Chat"):Chat(c, "Slow Time") | |
124 | s2.SoundId = "rbxassetid://159459861" | |
125 | s2.Volume = 5 | |
126 | wait(.01) | |
127 | s2:Play() | |
128 | children = game.Players:GetChildren() | |
129 | ||
130 | for i = 1, #children do | |
131 | children[i].Character.Humanoid.WalkSpeed = 3 | |
132 | end | |
133 | c.Humanoid.WalkSpeed = 50 | |
134 | wait(10) | |
135 | for i = 1, #children do | |
136 | children[i].Character.Humanoid.WalkSpeed = 16 | |
137 | end | |
138 | c.Humanoid.WalkSpeed = 16 | |
139 | end | |
140 | end) | |
141 | ---End of Slow Time--- | |
142 | ||
143 | ---Start of Shadow Charm--- | |
144 | mouse.KeyDown:connect(function(key) | |
145 | if key == "g" then | |
146 | game:GetService("Chat"):Chat(c, "Shadow Charm") | |
147 | s2.SoundId = "rbxassetid://171137312" | |
148 | s2:Play() | |
149 | s2.Volume = 1 | |
150 | c.Head.Transparency = .9 | |
151 | c.Torso.Transparency = .9 | |
152 | c["Right Arm"].Transparency = .9 | |
153 | c["Left Arm"].Transparency = .9 | |
154 | c["Right Leg"].Transparency = .9 | |
155 | c["Left Leg"].Transparency = .9 | |
156 | c["Right Arm"].Touched:connect(function(hit) | |
157 | hit.Parent.Humanoid.Health = -80 | |
158 | end) | |
159 | c["Left Arm"].Touched:connect(function(hit) | |
160 | hit.Parent.Humanoid.Health = -80 | |
161 | end) | |
162 | end | |
163 | end) | |
164 | ||
165 | mouse.KeyUp:connect(function(key) | |
166 | if key == "g" then | |
167 | s2:Play() | |
168 | c.Head.Transparency = .6 | |
169 | c.Torso.Transparency = .4 | |
170 | c["Right Arm"].Transparency = .2 | |
171 | c["Left Arm"].Transparency = .2 | |
172 | c["Right Leg"].Transparency = .9 | |
173 | c["Left Leg"].Transparency = .9 | |
174 | c["Right Arm"].Touched:connect(function(hit) | |
175 | hit.Parent.Humanoid.Health = 100 | |
176 | end) | |
177 | c["Left Arm"].Touched:connect(function(hit) | |
178 | hit.Parent.Humanoid.Health = 100 | |
179 | end) | |
180 | c.Head.BrickColor = BrickColor.new("Industrial white") | |
181 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
182 | c["Right Arm"].BrickColor = BrickColor.new("Industrial white") | |
183 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
184 | c["Right Leg"].BrickColor = BrickColor.new("Industrial white") | |
185 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
186 | end | |
187 | end) | |
188 | ---End of Shadow Charm--- | |
189 | ||
190 | ---Start of Heal Others--- | |
191 | mouse.KeyDown:connect(function(key) | |
192 | if key == "h" then | |
193 | game:GetService("Chat"):Chat(c, "Heal Others") | |
194 | s2.SoundId = "rbxassetid://186883084" | |
195 | s2.Volume = 10 | |
196 | s2:Play() | |
197 | children = game.Players:GetChildren() | |
198 | ||
199 | for i = 1, #children do | |
200 | children[i].Character.Humanoid.Health = 100 | |
201 | end | |
202 | end | |
203 | end) | |
204 | ---End of Heal Others--- | |
205 | ||
206 | ---Start of Fire--- | |
207 | mouse.KeyDown:connect(function(key) | |
208 | if key == "q" then | |
209 | game:GetService("Chat"):Chat(c, "Fire") | |
210 | s2.SoundId = "rbxassetid://199978176" | |
211 | s2.Volume = 1 | |
212 | s2:Play() | |
213 | c.Head.BrickColor = BrickColor.new("Bright red") | |
214 | c.Torso.BrickColor = BrickColor.new("Bright red") | |
215 | c["Right Arm"].BrickColor = BrickColor.new("Bright red") | |
216 | c["Left Arm"].BrickColor = BrickColor.new("Bright red") | |
217 | c["Right Leg"].BrickColor = BrickColor.new("Bright red") | |
218 | c["Left Leg"].BrickColor = BrickColor.new("Bright red") | |
219 | s = Instance.new("Fire", c.Torso) | |
220 | c["Right Arm"].Touched:connect(function(hit) | |
221 | Instance.new("Fire", hit.Parent.Torso) | |
222 | hit.Parent.Humanoid.Health = 0 | |
223 | end) | |
224 | end | |
225 | end) | |
226 | ||
227 | mouse.KeyUp:connect(function(key) | |
228 | if key == "q" then | |
229 | c.Head.BrickColor = BrickColor.new("Industrial white") | |
230 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
231 | c["Right Arm"].BrickColor = BrickColor.new("Industrial white") | |
232 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
233 | c["Right Leg"].BrickColor = BrickColor.new("Industrial white") | |
234 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
235 | c.Torso.Fire:Destroy() | |
236 | end | |
237 | end) | |
238 | ---End of Fire--- | |
239 | ||
240 | ---Start of Poison-- | |
241 | mouse.KeyDown:connect(function(key) | |
242 | if key == "j" then | |
243 | game:GetService("Chat"):Chat(c, "Poison") | |
244 | s2.SoundId = "rbxassetid://138677306" | |
245 | s2.Volume = 1.5 | |
246 | s2:Play() | |
247 | c.Head.BrickColor = BrickColor.new("Lime green") | |
248 | c.Torso.BrickColor = BrickColor.new("Lime green") | |
249 | c["Right Arm"].BrickColor = BrickColor.new("Lime green") | |
250 | c["Left Arm"].BrickColor = BrickColor.new("Lime green") | |
251 | c["Right Leg"].BrickColor = BrickColor.new("Lime green") | |
252 | c["Left Leg"].BrickColor = BrickColor.new("Lime green") | |
253 | sp = Instance.new("Sparkles", c.Torso) | |
254 | c["Left Arm"].Touched:connect(function(hit) | |
255 | Instance.new("Sparkles", hit.Parent.Torso) | |
256 | hit.Parent.Head.BrickColor = BrickColor.new("Lime green") | |
257 | hit.Parent.Torso.BrickColor = BrickColor.new("Lime green") | |
258 | hit.Parent["Right Arm"].BrickColor = BrickColor.new("Lime green") | |
259 | hit.Parent["Left Arm"].BrickColor = BrickColor.new("Lime green") | |
260 | hit.Parent["Right Leg"].BrickColor = BrickColor.new("Lime green") | |
261 | hit.Parent["Left Leg"].BrickColor = BrickColor.new("Lime green") | |
262 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -25 | |
263 | wait(3) | |
264 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -25 | |
265 | wait(3) | |
266 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -25 | |
267 | wait(3) | |
268 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -25 | |
269 | end) | |
270 | ||
271 | mouse.KeyUp:connect(function(key) | |
272 | if key == "j" then | |
273 | game:GetService("Chat"):Chat(c, "Poison") | |
274 | c.Head.BrickColor = BrickColor.new("Industrial white") | |
275 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
276 | c["Right Arm"].BrickColor = BrickColor.new("Industrial white") | |
277 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
278 | c["Right Leg"].BrickColor = BrickColor.new("Industrial white") | |
279 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
280 | sp:Destroy() | |
281 | end | |
282 | end) | |
283 | end | |
284 | end) | |
285 | ---End of Poison--- | |
286 | ||
287 | ---Start of Suicide--- | |
288 | mouse.KeyDown:connect(function(key) | |
289 | if key == "z" then | |
290 | game:GetService("Chat"):Chat(c, "Suicide") | |
291 | s2.SoundId = "rbxassetid://137473066" | |
292 | s2.Volume = 1 | |
293 | s2:Play() | |
294 | wait(0.05) | |
295 | s = Instance.new("Explosion", c.Torso) | |
296 | s.Name = "ex" | |
297 | c.Torso.ex.Position = c.Torso.Position | |
298 | end | |
299 | end) | |
300 | ---End of Suicide--- | |
301 | ||
302 | ---Start of Shield--- | |
303 | mouse.KeyDown:connect(function(key) | |
304 | if key == "x" then | |
305 | game:GetService("Chat"):Chat(c, "Shield") | |
306 | s2.SoundId = "rbxassetid://181004943" | |
307 | s2.Volume = 2 | |
308 | s2:Play() | |
309 | x = Instance.new("Part") | |
310 | x.FormFactor = "Custom" | |
311 | x.Shape = "Ball" | |
312 | x.Size = Vector3.new(6.5, 6.5, 6.5) | |
313 | x.TopSurface = "Smooth" | |
314 | x.BottomSurface = "Smooth" | |
315 | x.BrickColor = BrickColor.new("Industrial white") | |
316 | x.Transparency = .6 | |
317 | x.Parent = c | |
318 | w1 = Instance.new("Weld", c) | |
319 | w1.Part0 = w1.Parent["Torso"] | |
320 | w1.Part1 = x | |
321 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) | |
322 | end | |
323 | end) | |
324 | ||
325 | mouse.KeyUp:connect(function(key) | |
326 | if key == "x" then | |
327 | x:Destroy() | |
328 | end | |
329 | end) | |
330 | ---End of Shield--- | |
331 | ||
332 | ---Start of Dark Pulse--- | |
333 | ||
334 | mouse.KeyDown:connect(function(key) | |
335 | if key == "c" then | |
336 | game:GetService("Chat"):Chat(c, "Dark Pulse") | |
337 | s2.SoundId = "rbxassetid://181004943" | |
338 | s2.Volume = 2 | |
339 | s2:Play() | |
340 | x = Instance.new("Part") | |
341 | x.FormFactor = "Custom" | |
342 | x.Shape = "Cylinder" | |
343 | x.Size = Vector3.new(6.5, 6.5, 6.5) | |
344 | x.TopSurface = "Smooth" | |
345 | x.BottomSurface = "Smooth" | |
346 | x.BrickColor = BrickColor.new("Really black") | |
347 | x.CanCollide = false | |
348 | x.Transparency = .6 | |
349 | x.Parent = c | |
350 | w1 = Instance.new("Weld", c) | |
351 | w1.Part0 = w1.Parent["Torso"] | |
352 | w1.Part1 = x | |
353 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 300) *CFrame.new(0, 5, 0) | |
354 | x.Touched:connect(function(hit) | |
355 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -90 | |
356 | end) | |
357 | end | |
358 | end) | |
359 | ||
360 | mouse.KeyUp:connect(function(key) | |
361 | if key == "c" then | |
362 | x:Destroy() | |
363 | c.Head.Anchored = false | |
364 | c.Torso.Anchored = false | |
365 | c["Right Arm"].Anchored = false | |
366 | c["Left Arm"].Anchored = false | |
367 | c["Right Leg"].Anchored = false | |
368 | c["Left Leg"].Anchored = false | |
369 | end | |
370 | end) | |
371 | ||
372 | ---End of Dark Pulse--- | |
373 | ||
374 | --</\>Copyright Siarius 2015</\>-- |