SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
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 Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
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 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | ||
146 | anim=Instance.new("Animation",workspace) | |
147 | anim.AnimationId = "http://www.roblox.com/Asset?ID=293536378" | |
148 | jun = script.Parent.Parent | |
149 | Stuff = false | |
150 | local sp = script.Parent | |
151 | local s = Instance.new("Sound") | |
152 | s.SoundId = "http://www.roblox.com/asset/?id=1173681504" | |
153 | s.Volume = 3 | |
154 | s.Looped = true | |
155 | s.PlayOnRemove = false | |
156 | s.Parent = sp | |
157 | --password | |
158 | function ssj() | |
159 | s:Play() | |
160 | game:GetService("Chat"):Chat(jun.Character.Head,"Not Yet",Enum.ChatColor.Red) | |
161 | game:GetService("Chat"):Chat(jun.Character.Head,"Im Not Yet Finished",Enum.ChatColor.Red) | |
162 | game:GetService("Chat"):Chat(jun.Character.Head,"AAAAAAAAAAAAAAAHH",Enum.ChatColor.Red) | |
163 | local Effect = Instance.new("Part") | |
164 | Effect.Parent = jun.Character | |
165 | Effect.Anchored = true | |
166 | Effect.CanCollide = false | |
167 | Effect.Rotation = Vector3.new(0, 0, 0) | |
168 | Effect.Size = Vector3.new(1, 1, 1) | |
169 | Effect.formFactor = "Symmetric" | |
170 | Effect.Transparency = 0.5 | |
171 | Effect.BrickColor = BrickColor.new("Bright white") | |
172 | Effect.TopSurface = "Smooth" | |
173 | Effect.BottomSurface = "Smooth" | |
174 | local EffectMesh = Instance.new("SpecialMesh") | |
175 | EffectMesh.Parent = Effect | |
176 | EffectMesh.MeshType = "FileMesh" | |
177 | EffectMesh.MeshId = ("http://www.roblox.com/asset/?id=3270017") | |
178 | EffectMesh.Scale = Vector3.new(0, 0, 0) | |
179 | local Effect2 = Instance.new("Part") | |
180 | Effect2.Parent = jun.Character | |
181 | Effect2.Anchored = true | |
182 | Effect2.CanCollide = false | |
183 | Effect2.Size = Vector3.new(1, 1, 1) | |
184 | Effect2.formFactor = "Symmetric" | |
185 | Effect2.Transparency = 0.5 | |
186 | Effect2.BrickColor = BrickColor.new("Bright yellow") | |
187 | Effect2.TopSurface = "Smooth" | |
188 | Effect2.BottomSurface = "Smooth" | |
189 | local EffectMesh2 = Instance.new("SpecialMesh") | |
190 | EffectMesh2.Parent = Effect2 | |
191 | EffectMesh2.MeshType = "Sphere" | |
192 | EffectMesh2.Scale = Vector3.new(0, 0, 0) | |
193 | local ex = Instance.new("Explosion") | |
194 | ex.Position = jun.Character.Torso.Position | |
195 | ex.BlastPressure = 0 | |
196 | ex.Parent = workspace | |
197 | jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0) | |
198 | for i = 1 , 20 do | |
199 | Effect.CFrame = CFrame.new(jun.Character.Torso.Position) | |
200 | Effect2.CFrame = CFrame.new(jun.Character.Torso.Position) | |
201 | Effect.Rotation = Effect.Rotation + Vector3.new(2,2,2)*4 | |
202 | EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
203 | wait() | |
204 | EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
205 | wait() | |
206 | EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
207 | wait() | |
208 | EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
209 | wait() | |
210 | EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
211 | wait() | |
212 | EffectMesh2.Scale = EffectMesh2.Scale + Vector3.new(0.5, 0.5, 0.5) | |
213 | wait() | |
214 | EffectMesh2.Scale = EffectMesh2.Scale + Vector3.new(0.5, 0.5, 0.5) | |
215 | wait() | |
216 | EffectMesh2.Scale = EffectMesh2.Scale + Vector3.new(0.5, 0.5, 0.5) | |
217 | wait() | |
218 | EffectMesh2.Scale = EffectMesh2.Scale + Vector3.new(0.5, 0.5, 0.5) | |
219 | wait() | |
220 | EffectMesh2.Scale = EffectMesh2.Scale + Vector3.new(0.5, 0.5, 0.5) | |
221 | wait() | |
222 | Effect.Transparency = Effect.Transparency + 0.025 | |
223 | wait(0.06) | |
224 | Effect2.Transparency = Effect2.Transparency + 0.025 | |
225 | wait(0.06) | |
226 | end | |
227 | Effect:Remove() | |
228 | game:GetService("Chat"):Chat(jun.Character.Head,"HAAAAAAAAAAAAAAAAAAAAa",Enum.ChatColor.Red) | |
229 | Effect = Instance.new("Part") | |
230 | Effect.Parent = jun.Character | |
231 | Effect.Anchored = true | |
232 | Effect.CanCollide = false | |
233 | Effect.Size = Vector3.new(1, 1, 1) | |
234 | Effect.formFactor = "Symmetric" | |
235 | Effect.Transparency = 0.5 | |
236 | Effect.BrickColor = BrickColor.new("New Yeller") | |
237 | Effect.TopSurface = "Smooth" | |
238 | Effect.BottomSurface = "Smooth" | |
239 | EffectMesh = Instance.new("SpecialMesh") | |
240 | EffectMesh.Parent = Effect | |
241 | EffectMesh.MeshType = "FileMesh" | |
242 | EffectMesh.MeshId = ("http://www.roblox.com/Asset/?id=9982590") | |
243 | EffectMesh.Scale = Vector3.new(5, 5, 5) | |
244 | local ex2 = Instance.new("Explosion") | |
245 | ex2.Position = jun.Character.Torso.Position | |
246 | ex2.BlastPressure = 0 | |
247 | ex2.Parent = workspace | |
248 | jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0) | |
249 | for i = 1 , 20 do | |
250 | Effect.CFrame = CFrame.new(jun.Character.Torso.Position) | |
251 | EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2, 2, 2) | |
252 | Effect.Transparency = Effect.Transparency + 0.025 | |
253 | wait(0.06) | |
254 | end | |
255 | wait(1) | |
256 | Effect:Remove() | |
257 | game:GetService("Chat"):Chat(jun.Character.Head,"HAAAAAAAAAA",Enum.ChatColor.Red) | |
258 | game:GetService("Chat"):Chat(jun.Character.Head,"Kefla Prepare To Get Elliminated",Enum.ChatColor.Red) | |
259 | if Stuff == false then | |
260 | Stuff = true | |
261 | for u, c in pairs (jun.Character:GetChildren()) do | |
262 | if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then | |
263 | c.Handle.Transparency = 1 | |
264 | end | |
265 | end | |
266 | local Hair4 = game.ReplicatedStorage.SSJW:Clone() | |
267 | Hair4.Parent = jun.Character | |
268 | Hair4.Name = "Hair" | |
269 | Hair4.CanCollide = false | |
270 | Hair4.Locked = true | |
271 | Hair4.CFrame = jun.Character.Torso.CFrame | |
272 | local Weld = Instance.new("Weld") | |
273 | Weld.Parent = jun.Character.Head | |
274 | Weld.Part0 = jun.Character.Head | |
275 | Weld.Part1 = Hair4 | |
276 | Weld.C0 = CFrame.new(0, .9, 0.11) * CFrame.Angles(0,math.pi,0) | |
277 | if jun.Character.Torso:findFirstChild("PwnFire") == nil then | |
278 | local animTrack = jun.Character.Humanoid:LoadAnimation(anim) | |
279 | animTrack:Play() | |
280 | wait() | |
281 | end | |
282 | game:GetService("Chat"):Chat(jun.Character.Head,"AAAAAAAAAAaa",Enum.ChatColor.Red) | |
283 | game:GetService("Chat"):Chat(jun.Character.Head,"HAAAAAAAAA",Enum.ChatColor.Red) | |
284 | if jun.Character.Torso:findFirstChild("PwnSparkles") == nil then | |
285 | local fr = game.lighting.ParticleEmitter20:clone() | |
286 | fr.Parent = jun.Character.Torso | |
287 | end | |
288 | jun.Character.Humanoid.MaxHealth = 1e+7 | |
289 | wait(0.3) | |
290 | jun.Character.Humanoid.Health = 1e+7 | |
291 | end | |
292 | end | |
293 | function nossj() | |
294 | if Stuff == true then | |
295 | Stuff = false | |
296 | if jun.Character.Torso:findFirstChild("ParticleEmitter2")~=nil then | |
297 | jun.Character.Torso:findFirstChild("ParticleEmitter2"):Remove() | |
298 | end | |
299 | game:GetService("Chat"):Chat(jun.Character.Head,"Gr.. it Hurts.",Enum.ChatColor.Green) | |
300 | game:GetService("Chat"):Chat(jun.Character.Head,"It Does Hurts.",Enum.ChatColor.Green) | |
301 | local p = Instance.new("Part") | |
302 | p.Parent = jun.Character | |
303 | p.Anchored = true | |
304 | p.CanCollide = false | |
305 | p.Transparency = 0.1 | |
306 | p.formFactor = "Symmetric" | |
307 | p.Size = Vector3.new(22, 22, 22) | |
308 | p.TopSurface = "Smooth" | |
309 | p.BottomSurface = "Smooth" | |
310 | p.Name = "Sharingan" | |
311 | p.Shape = "Ball" | |
312 | p.CFrame = jun.Character.Torso.CFrame | |
313 | p.BrickColor = BrickColor.new("New Yeller") | |
314 | for i = 1 , 10 do | |
315 | wait(0.05) | |
316 | p.Size = p.Size + Vector3.new(-4, -4, -4) | |
317 | p.Transparency = p.Transparency + 0.1 | |
318 | p.CFrame = jun.Character.Torso.CFrame | |
319 | end | |
320 | p:Remove() | |
321 | s:Remove() | |
322 | for u, c in pairs (jun.Character:GetChildren()) do | |
323 | if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then | |
324 | c.Handle.Transparency = 0 | |
325 | end | |
326 | if c.Name == "Hair" then | |
327 | c:Remove() | |
328 | end | |
329 | end | |
330 | jun.Character.Humanoid.Health = 100 | |
331 | wait(0.3) | |
332 | jun.Character.Humanoid.MaxHealth = 100 | |
333 | end | |
334 | end | |
335 | jun.Chatted:connect(function(Msg) | |
336 | local msg = Msg:lower() | |
337 | if string.sub(msg, 1, 7) == "super saiyan white" then | |
338 | wait(0.1) | |
339 | ssj() | |
340 | end | |
341 | if string.sub(msg, 1, 13) == "ui" then | |
342 | wait(0.1) | |
343 | ssj() | |
344 | end | |
345 | if string.sub(msg, 1, 6) == "!" then | |
346 | wait(0.1) | |
347 | ssj() | |
348 | end | |
349 | if string.sub(msg, 1, 10) == "calm" then | |
350 | wait(0.1) | |
351 | nossj() | |
352 | end | |
353 | if string.sub(msg, 1, 3) == "off" then | |
354 | wait(0.1) | |
355 | nossj() | |
356 | end | |
357 | end) | |
358 | function OnDeath() | |
359 | wait() | |
360 | nossj() | |
361 | end | |
362 | hum = jun.Character.Humanoid | |
363 | jun.Character.Humanoid.Died:connect(OnDeath) | |
364 | jun = script.Parent.Parent | |
365 | Stuff = false | |
366 | --mediafire--- |