SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | - | plr = game.Players.LocalPlayer |
8 | + | script.Parent = Player.Character |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
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 UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
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 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | ------------------------------------------------------------------------------------------------------------------------------------------ | |
88 | ||
89 | local ScriptLink = [[--// Script made by Cronizete | |
90 | --// Please dont check the code its ugly | |
91 | --// Who ever has this and youre not the maker of this script then you just stole it unless I released it to the public or whatever but yeah | |
92 | --// Please, if you're going to showcase this. Make sure to give credits to me :D | |
93 | --// Anyways, enjoy the script!!!!!!!!!!!!!!! | |
94 | ||
95 | ||
96 | plr = owner | |
97 | char = plr.Character | |
98 | ff = Instance.new('ForceField', char) | |
99 | ff.Visible = false | |
100 | mouse = plr:GetMouse() | |
101 | human = char.Humanoid | |
102 | torso = char.Torso | |
103 | root = char.HumanoidRootPart | |
104 | lleg = char["Left Leg"] | |
105 | rleg = char["Right Leg"] | |
106 | larm = char["Left Arm"] | |
107 | rarm = char["Right Arm"] | |
108 | head = char.Head | |
109 | lshold = torso["Left Shoulder"] | |
110 | rshold = torso["Right Shoulder"] | |
111 | neck = torso.Neck | |
112 | lhip = torso["Left Hip"] | |
113 | rhip = torso["Right Hip"] | |
114 | lscf = lshold.C0 | |
115 | rscf = rshold.C0 | |
116 | ncf = neck.C0 | |
117 | lhcf = lhip.C0 | |
118 | rhcf = rhip.C0 | |
119 | rad = math.rad | |
120 | random = math.random | |
121 | sin = math.sin | |
122 | cos = math.cos | |
123 | floor = math.floor | |
124 | lsho = lshold.C0 | |
125 | rsho = rshold.C0 | |
126 | cd1 = true | |
127 | cd2 = true | |
128 | ||
129 | function harmlessexplo() | |
130 | sph = Instance.new('Part', char) | |
131 | sph.Anchored = true | |
132 | sph.CFrame = char.Torso.CFrame | |
133 | sph.CanCollide = false | |
134 | sph.Anchored = true | |
135 | sph.Transparency = 0 | |
136 | sph.Material = "Neon" | |
137 | sph.Shape = "Ball" | |
138 | sph.Size = Vector3.new(0.2,0.2,0.2) | |
139 | for i = 1,50 do | |
140 | wait() | |
141 | sph.Size = sph.Size + Vector3.new(4,4,4) | |
142 | sph.Transparency = sph.Transparency + 0.05 | |
143 | sph.CFrame = char.Torso.CFrame | |
144 | end | |
145 | sph:Destroy() | |
146 | end | |
147 | ||
148 | function entrance() | |
149 | ||
150 | for _,q in pairs(char:GetChildren()) do | |
151 | if q:IsA('Accessory') then | |
152 | q:Destroy() | |
153 | end | |
154 | ||
155 | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) | |
156 | a.MeshId = "27112052" | |
157 | a.BodyPart = "LeftArm" | |
158 | ||
159 | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) | |
160 | a.MeshId = "27112056" | |
161 | a.BodyPart = "LeftLeg" | |
162 | ||
163 | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) | |
164 | a.MeshId = 27112039" | |
165 | a.BodyPart = "RightArm" | |
166 | ||
167 | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) | |
168 | a.MeshId = "27112068" | |
169 | a.BodyPart = "RightLeg" | |
170 | ||
171 | a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character) | |
172 | a.MeshId = "27112025" | |
173 | a.BodyPart = "Torso" | |
174 | ||
175 | if q:IsA('Shirt') then | |
176 | q.ShirtTemplate = "rbxassetid://457996826" | |
177 | end | |
178 | ||
179 | if q:IsA('Pants') then | |
180 | q.PantsTemplate = "rbxassetid://339391457" | |
181 | end | |
182 | ||
183 | char["Left Arm"].BrickColor = BrickColor.new('Cyan') | |
184 | char["Right Arm"].BrickColor = BrickColor.new('Cyan') | |
185 | ||
186 | if q.Name ~= "HumanoidRootPart" and q:IsA('Part') then | |
187 | q.Transparency = 1 | |
188 | end | |
189 | end | |
190 | ||
191 | char.Humanoid.HipHeight = 60 | |
192 | wait(.05) | |
193 | char.Torso.Anchored = true | |
194 | ||
195 | sph = Instance.new('Part', char) | |
196 | sph.Anchored = true | |
197 | sph.CFrame = char.Torso.CFrame | |
198 | sph.CanCollide = false | |
199 | sph.Anchored = true | |
200 | sph.Transparency = 0 | |
201 | sph.Material = "Neon" | |
202 | sph.Shape = "Ball" | |
203 | sph.Size = Vector3.new(0.2,0.2,0.2) | |
204 | sp = Instance.new('SpecialMesh', sph) | |
205 | sp.MeshId = "http://www.roblox.com/Asset/?id=9982590" | |
206 | sp.Scale = Vector3.new(0.2,0.2,0.2) | |
207 | a = 0 | |
208 | ||
209 | for i = 1, 25 do | |
210 | sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
211 | sp.Scale = sp.Scale + Vector3.new(0.3,0.3,0.3) | |
212 | sph.Rotation = Vector3.new( a, a, a) | |
213 | wait() | |
214 | a = a+3 | |
215 | end | |
216 | for _,e in pairs(char:GetChildren()) do | |
217 | if e:IsA('Accessory') then | |
218 | e.Handle.Transparency = 0 | |
219 | end | |
220 | if e.Name ~= "HumanoidRootPart" and e:IsA('Part') then | |
221 | e.Transparency = 0 | |
222 | end | |
223 | end | |
224 | for i = 1, 115 do | |
225 | sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
226 | sph.Transparency = sph.Transparency + 0.01 | |
227 | sph.Rotation = Vector3.new( a, a, a) | |
228 | wait() | |
229 | a = a+15 | |
230 | end | |
231 | char.Torso.Anchored = false | |
232 | char.Humanoid.HipHeight = 0 | |
233 | end | |
234 | ||
235 | function chat(chatt) | |
236 | local text = Instance.new("BillboardGui", game.Players.LocalPlayer.Character) | |
237 | text.Size = UDim2.new(0,100,0,40) | |
238 | text.StudsOffset = Vector3.new(0,3,0) | |
239 | text.Adornee = game.Players.LocalPlayer.Character.Head | |
240 | text.Name = "1" | |
241 | local text1 = Instance.new("TextLabel",text) | |
242 | text1.BackgroundTransparency = 1 | |
243 | text1.TextStrokeTransparency = 1 | |
244 | text1.TextTransparency = 1 | |
245 | text1.BorderSizePixel = 0 | |
246 | text1.Text = chatt | |
247 | text1.Font = "Fantasy" | |
248 | text1.FontSize = "Size36" | |
249 | text1.TextStrokeTransparency = 0 | |
250 | text1.TextColor3 = Color3.new(1,1,1) | |
251 | text1.TextStrokeColor3 = Color3.new(0,0,0) | |
252 | text1.Size = UDim2.new(1,0,0.5,0) | |
253 | for i=1,15 do | |
254 | wait() | |
255 | text1.TextStrokeTransparency = text1.TextStrokeTransparency - 0.1 | |
256 | text1.TextTransparency = text1.TextTransparency - 0.1 | |
257 | end | |
258 | wait(1) | |
259 | for i=1,25 do | |
260 | wait() | |
261 | text1.TextStrokeTransparency = text1.TextStrokeTransparency + 0.1 | |
262 | text1.TextTransparency = text1.TextTransparency + 0.1 | |
263 | end | |
264 | end | |
265 | ||
266 | function explo() | |
267 | sph = Instance.new('Part', char) | |
268 | sph.Touched:connect(function(hit) | |
269 | if hit.Parent:FindFirstChild('Humanoid') then | |
270 | if hit.Parent.Name ~= plr.Name then | |
271 | hit.Parent:Destroy() | |
272 | else | |
273 | end | |
274 | end | |
275 | end) | |
276 | sph.Anchored = true | |
277 | sph.CFrame = char.Torso.CFrame | |
278 | sph.CanCollide = false | |
279 | sph.Anchored = true | |
280 | sph.Transparency = 0 | |
281 | sph.Material = "Neon" | |
282 | sph.Shape = "Ball" | |
283 | sph.Size = Vector3.new(0.2,0.2,0.2) | |
284 | for i = 1,50 do | |
285 | wait() | |
286 | sph.Size = sph.Size + Vector3.new(4,4,4) | |
287 | sph.Transparency = sph.Transparency + 0.03 | |
288 | sph.CFrame = char.Torso.CFrame | |
289 | end | |
290 | sph:Destroy() | |
291 | end | |
292 | ||
293 | --// Main script, don't touch if you don't know how to script or you might ruin the script. | |
294 | ||
295 | entrance() | |
296 | ||
297 | mouse.Button1Down:connect(function() | |
298 | if cd1 then | |
299 | if mouse.Target.Parent:FindFirstChild('Humanoid') then | |
300 | cd1 = false | |
301 | local target = mouse.Target.Parent | |
302 | target:FindFirstChild('Torso').Anchored = true | |
303 | for i=0,1,0.1 do | |
304 | rshold.C0 = rshold.C0:lerp(CFrame.new(0.9,0.5,-0.1)*CFrame.Angles(rad(-90),rad(90),rad(-180)),i) | |
305 | wait() | |
306 | end | |
307 | chat("Hakai") | |
308 | wait(.5) | |
309 | particle = Instance.new('Part', workspace) | |
310 | particle.Anchored = true | |
311 | particle.CFrame = target:FindFirstChild('Torso').CFrame | |
312 | particle.CanCollide = false | |
313 | particle.Anchored = true | |
314 | particle.Transparency = 1 | |
315 | particle.Size = Vector3.new(6.52, 10.36, 6.34) | |
316 | local pe = Instance.new("ParticleEmitter") | |
317 | pe.Acceleration = Vector3.new(7, 7, 7) | |
318 | pe.Lifetime = NumberRange.new(1, 4) | |
319 | pe.Rate = 500 | |
320 | pe.RotSpeed = NumberRange.new(7, 7) | |
321 | pe.LightEmission = 0.700 | |
322 | pe.Rotation = NumberRange.new(0, 0) | |
323 | pe.Size = NumberSequence.new({ | |
324 | NumberSequenceKeypoint.new(0, 1, 0), | |
325 | NumberSequenceKeypoint.new(1, 10, 0), | |
326 | NumberSequenceKeypoint.new(1, 10, 0) | |
327 | }) | |
328 | pe.Texture = "http://www.roblox.com/asset/?id=242996110" | |
329 | pe.Transparency = NumberSequence.new({ | |
330 | NumberSequenceKeypoint.new(0, 0, 0), | |
331 | NumberSequenceKeypoint.new(0.4, 0.3, 0), | |
332 | NumberSequenceKeypoint.new(1, 1, 1) | |
333 | }) | |
334 | pe.ZOffset = 5 | |
335 | pe.VelocitySpread = 360 | |
336 | pe.Parent = particle | |
337 | pe.Enabled = true | |
338 | wait(1) | |
339 | pe.Enabled = false | |
340 | target:Destroy() | |
341 | for i=0,1,0.1 do | |
342 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
343 | wait() | |
344 | end | |
345 | wait(1) | |
346 | cd1 = true | |
347 | end | |
348 | end | |
349 | end) | |
350 | ||
351 | mouse.KeyDown:connect(function(key) | |
352 | if key == "t" then | |
353 | if cd1 then | |
354 | cd1 = false | |
355 | particle = Instance.new('Part', workspace) | |
356 | particle.Anchored = true | |
357 | particle.CFrame = char:FindFirstChild('Torso').CFrame | |
358 | particle.CanCollide = false | |
359 | particle.Anchored = true | |
360 | particle.Transparency = 1 | |
361 | particle.Size = Vector3.new(6.52, 10.36, 6.34) | |
362 | local pe = Instance.new("ParticleEmitter") | |
363 | pe.Acceleration = Vector3.new(7, 7, 7) | |
364 | pe.Lifetime = NumberRange.new(1, 4) | |
365 | pe.Rate = 500 | |
366 | pe.RotSpeed = NumberRange.new(7, 7) | |
367 | pe.LightEmission = 0.700 | |
368 | pe.Rotation = NumberRange.new(0, 0) | |
369 | pe.Size = NumberSequence.new({ | |
370 | NumberSequenceKeypoint.new(0, 1, 0), | |
371 | NumberSequenceKeypoint.new(1, 10, 0), | |
372 | NumberSequenceKeypoint.new(1, 10, 0) | |
373 | }) | |
374 | pe.Texture = "http://www.roblox.com/asset/?id=242996110" | |
375 | pe.Transparency = NumberSequence.new({ | |
376 | NumberSequenceKeypoint.new(0, 0, 0), | |
377 | NumberSequenceKeypoint.new(0.4, 0.3, 0), | |
378 | NumberSequenceKeypoint.new(1, 1, 1) | |
379 | }) | |
380 | pe.ZOffset = 5 | |
381 | pe.VelocitySpread = 360 | |
382 | pe.Parent = particle | |
383 | pe.Enabled = true | |
384 | wait(.3) | |
385 | char.Torso.CFrame = mouse.Hit | |
386 | pe.Enabled = false | |
387 | harmlessexplo() | |
388 | wait(3) | |
389 | cd1 = true | |
390 | end | |
391 | end | |
392 | ||
393 | if key == "q" then | |
394 | if cd2 then | |
395 | cd2 = false | |
396 | for i=0,1,0.1 do | |
397 | lshold.C0 = lshold.C0:lerp(CFrame.new(-1.3,0.7,-0.1)*CFrame.Angles(rad(25),-rad(20),-rad(90)),i) | |
398 | rshold.C0 = rshold.C0:lerp(CFrame.new(1.3,0.7,-0.1)*CFrame.Angles(rad(25),rad(20),rad(90)),i) | |
399 | wait() | |
400 | end | |
401 | ||
402 | local pe = Instance.new("ParticleEmitter") | |
403 | pe.Acceleration = Vector3.new(3, 3, 3) | |
404 | pe.Lifetime = NumberRange.new(0.1, 0.5) | |
405 | pe.Rate = 4000 | |
406 | pe.RotSpeed = NumberRange.new(0, 0) | |
407 | pe.LightEmission = 0.700 | |
408 | pe.Rotation = NumberRange.new(0, 0) | |
409 | pe.Size = NumberSequence.new({ | |
410 | NumberSequenceKeypoint.new(0, 1, 0), | |
411 | NumberSequenceKeypoint.new(0.1, 1, 0), | |
412 | NumberSequenceKeypoint.new(1, 1, 0) | |
413 | }) | |
414 | pe.Texture = "http://www.roblox.com/asset/?id=242996110" | |
415 | pe.Transparency = NumberSequence.new({ | |
416 | NumberSequenceKeypoint.new(0, 0, 0), | |
417 | NumberSequenceKeypoint.new(0.4, 0.3, 0), | |
418 | NumberSequenceKeypoint.new(1, 1, 1) | |
419 | }) | |
420 | pe.ZOffset = 5 | |
421 | pe.VelocitySpread = 360 | |
422 | pe.Parent = char["Right Arm"] | |
423 | pe1 = pe:Clone() | |
424 | pe1.Parent = char["Left Arm"] | |
425 | wait(.05) | |
426 | pe.Enabled = true | |
427 | ||
428 | wait(.05) | |
429 | ||
430 | for i= 1, 100 do | |
431 | char.Humanoid.HipHeight = char.Humanoid.HipHeight + 0.5 | |
432 | wait() | |
433 | end | |
434 | ||
435 | wait(.03) | |
436 | ||
437 | chat("I Wanna Test My Power") | |
438 | wait(.07) | |
439 | explo() | |
440 | wait(.04) | |
441 | for i=0,1,0.1 do | |
442 | lshold.C0 = lshold.C0:lerp(lsho,i) | |
443 | rshold.C0 = rshold.C0:lerp(rsho,i) | |
444 | wait() | |
445 | end | |
446 | pe.Enabled = false | |
447 | pe1.Enabled = fasle | |
448 | char.Humanoid.HipHeight = 0 | |
449 | wait(5) | |
450 | cd2 = true | |
451 | end | |
452 | end | |
453 | end) | |
454 | ||
455 | while wait() do | |
456 | char.Humanoid.MaxHealth = 999999999999999999999999999999999999999 | |
457 | char.Humanoid.Health = char.Humanoid.MaxHealth | |
458 | end]] |