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 | print(" this script was converted An ignorant / zachrogamehard133447 ") | |
3 | warn(" credits goes to the real creator ") | |
4 | warn(" pls dont abuse ") | |
5 | warn(" i beg u ") | |
6 | local Player,game,owner = owner,game | |
7 | local RealPlayer = Player | |
8 | do | |
9 | print("FE Compatibility code by Mokiros") | |
10 | print("This EDIT was made by Zach the script stealer / aka zach so please stop pretending that you made it") | |
11 | local rp = RealPlayer | |
12 | script.Parent = rp.Character | |
13 | ||
14 | --RemoteEvent for communicating | |
15 | local Event = Instance.new("RemoteEvent") | |
16 | Event.Name = "UserInput_Event" | |
17 | ||
18 | --Fake event to make stuff like Mouse.KeyDown work | |
19 | local function fakeEvent() | |
20 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
21 | t.connect = t.Connect | |
22 | return t | |
23 | end | |
24 | ||
25 | --Creating fake input objects with fake variables | |
26 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
27 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
28 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
29 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
30 | end} | |
31 | --Merged 2 functions into one by checking amount of arguments | |
32 | CAS.UnbindAction = CAS.BindAction | |
33 | ||
34 | --This function will trigger the events that have been :Connect()'ed | |
35 | local function te(self,ev,...) | |
36 | local t = m[ev] | |
37 | if t and t._fakeEvent then | |
38 | for _,f in pairs(t.Functions) do | |
39 | f(...) | |
40 | end | |
41 | end | |
42 | end | |
43 | m.TrigEvent = te | |
44 | UIS.TrigEvent = te | |
45 | ||
46 | Event.OnServerEvent:Connect(function(plr,io) | |
47 | if plr~=rp then return end | |
48 | m.Target = io.Target | |
49 | m.Hit = io.Hit | |
50 | if not io.isMouse then | |
51 | local b = io.UserInputState == Enum.UserInputState.Begin | |
52 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
53 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
54 | end | |
55 | for _,t in pairs(CAS.Actions) do | |
56 | for _,k in pairs(t.Keys) do | |
57 | if k==io.KeyCode then | |
58 | t.Function(t.Name,io.UserInputState,io) | |
59 | end | |
60 | end | |
61 | end | |
62 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
63 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
64 | end | |
65 | end) | |
66 | Event.Parent = NLS([==[ | |
67 | local Player = game:GetService("Players").LocalPlayer | |
68 | local Event = script:WaitForChild("UserInput_Event") | |
69 | ||
70 | local Mouse = Player:GetMouse() | |
71 | local UIS = game:GetService("UserInputService") | |
72 | local input = function(io,a) | |
73 | if a then return end | |
74 | --Since InputObject is a client-side instance, we create and pass table instead | |
75 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
76 | end | |
77 | UIS.InputBegan:Connect(input) | |
78 | UIS.InputEnded:Connect(input) | |
79 | ||
80 | local h,t | |
81 | --Give the server mouse data 30 times every second, but only if the values changed | |
82 | --If player is not moving their mouse, client won't fire events | |
83 | while wait(1/30) do | |
84 | if h~=Mouse.Hit or t~=Mouse.Target then | |
85 | h,t=Mouse.Hit,Mouse.Target | |
86 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
87 | end | |
88 | end]==],Player.Character) | |
89 | ||
90 | ----Sandboxed game object that allows the usage of client-side methods and services | |
91 | --Real game object | |
92 | local _rg = game | |
93 | ||
94 | --Metatable for fake service | |
95 | local fsmt = { | |
96 | __index = function(self,k) | |
97 | local s = rawget(self,"_RealService") | |
98 | if s then return s[k] end | |
99 | end, | |
100 | __newindex = function(self,k,v) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then s[k]=v end | |
103 | end, | |
104 | __call = function(self,...) | |
105 | local s = rawget(self,"_RealService") | |
106 | if s then return s(...) end | |
107 | end | |
108 | } | |
109 | local function FakeService(t,RealService) | |
110 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
111 | return setmetatable(t,fsmt) | |
112 | end | |
113 | ||
114 | --Fake game object | |
115 | local g = { | |
116 | GetService = function(self,s) | |
117 | return self[s] | |
118 | end, | |
119 | Players = FakeService({ | |
120 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
121 | },"Players"), | |
122 | UserInputService = FakeService(UIS,"UserInputService"), | |
123 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
124 | } | |
125 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
126 | g.service = g.GetService | |
127 | ||
128 | g.RunService = FakeService({ | |
129 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
130 | BindToRenderStep = function(self,name,_,fun) | |
131 | ||
132 | end, | |
133 | UnbindFromRenderStep = function(self,name) | |
134 | self._btrs[name]:Disconnect() | |
135 | end, | |
136 | },"RunService") | |
137 | ||
138 | setmetatable(g,{ | |
139 | __index=function(self,s) | |
140 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
141 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
142 | end, | |
143 | __newindex = fsmt.__newindex, | |
144 | __call = fsmt.__call | |
145 | }) | |
146 | --Changing owner to fake player object to support owner:GetMouse() | |
147 | game,owner = g,g.Players.LocalPlayer | |
148 | end | |
149 | ||
150 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 | |
151 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0 | |
152 | for i=1,2,0.1 do | |
153 | wait(.1) | |
154 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(0,1,0) | |
155 | for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do | |
156 | anim:Stop() | |
157 | end | |
158 | end | |
159 | for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
160 | if part.ClassName == "Accessory" or part.ClassName == "Shirt" or part.ClassName == "Pants" or part.ClassName == "ShirtGraphic" or part.ClassName == "BodyColors" then | |
161 | part:remove() | |
162 | end | |
163 | if part:IsA("BasePart") then | |
164 | part.Color = Color3.fromRGB(255, 204, 153) | |
165 | end | |
166 | end | |
167 | ||
168 | ||
169 | game.Players.LocalPlayer.Character.Head.Color = Color3.fromRGB(0,255,0) | |
170 | ||
171 | game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,-0.75,-0.5) | |
172 | game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://785024366" | |
173 | game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://785492382" | |
174 | game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(13, 20, 13) | |
175 | local shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "rbxassetid://1037676911" | |
176 | local pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "rbxassetid://1010828432" | |
177 | ||
178 | local fidget1 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget1.Anchored = false fidget1.Size = Vector3.new(0,0,0) fidget1.Color = Color3.fromRGB(0,255,0) fidget1.CanCollide = false | |
179 | game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget1 | |
180 | fidget1.Mesh.Scale = Vector3.new(3,4,3) | |
181 | fidget1.Mesh.Offset = Vector3.new(0,-1,-0.1) | |
182 | game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget1 | |
183 | fidget1.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame | |
184 | for i=1,3 do | |
185 | wait() | |
186 | fidget1.Position = fidget1.Position+Vector3.new(0,1,0) | |
187 | end | |
188 | local weld = Instance.new("Weld",fidget1) weld.Part0 = fidget1 weld.Part1= game.Players.LocalPlayer.Character["Right Arm"] weld.Name = "FidgetHip" | |
189 | ||
190 | local fidget2 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget2.Anchored = false fidget2.Size = Vector3.new(0,0,0) fidget2.Color = Color3.fromRGB(0,255,0) fidget2.CanCollide = false | |
191 | game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget2 | |
192 | fidget2.Mesh.Scale = Vector3.new(3,4,3) | |
193 | fidget2.Mesh.Offset = Vector3.new(0,-1,-0.1) | |
194 | game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget2 | |
195 | fidget2.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame | |
196 | for i=1,3 do | |
197 | wait() | |
198 | fidget2.Position = fidget2.Position+Vector3.new(0,1,0) | |
199 | end | |
200 | local weld = Instance.new("Weld",fidget2) weld.Part0 = fidget2 weld.Part1= game.Players.LocalPlayer.Character["Left Arm"] weld.Name = "FidgetHip2" | |
201 | ||
202 | local fidget3 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget3.Anchored = false fidget3.Size = Vector3.new(0,0,0) fidget3.Color = Color3.fromRGB(0,255,0) fidget3.CanCollide = false | |
203 | game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget3 | |
204 | fidget3.Mesh.Scale = Vector3.new(3,4,3) | |
205 | fidget3.Mesh.Offset = Vector3.new(0,-1,-0.1) | |
206 | game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget3 | |
207 | fidget3.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame | |
208 | for i=1,3 do | |
209 | wait() | |
210 | fidget3.Position = fidget3.Position+Vector3.new(0,1,0) | |
211 | end | |
212 | local weld = Instance.new("Weld",fidget3) weld.Part0 = fidget3 weld.Part1= game.Players.LocalPlayer.Character["Right Leg"] weld.Name = "FidgetHip3" | |
213 | ||
214 | local fidget4 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget4.Anchored = false fidget4.Size = Vector3.new(0,0,0) fidget4.Color = Color3.fromRGB(0,255,0) fidget4.CanCollide = false | |
215 | game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget4 | |
216 | fidget4.Mesh.Scale = Vector3.new(3,4,3) | |
217 | fidget4.Mesh.Offset = Vector3.new(0,-1,-0.1) | |
218 | game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget4 | |
219 | fidget4.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame | |
220 | for i=1,3 do | |
221 | wait() | |
222 | fidget4.Position = fidget4.Position+Vector3.new(0,1,0) | |
223 | end | |
224 | local weld = Instance.new("Weld",fidget4) weld.Part0 = fidget4 weld.Part1= game.Players.LocalPlayer.Character["Left Leg"] weld.Name = "FidgetHip4" | |
225 | ||
226 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 75 | |
227 | game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 333333333 | |
228 | game.Players.LocalPlayer.Character.Humanoid.Health = 333333333 | |
229 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
230 | rot = 0 | |
231 | armrot = 0 | |
232 | speed = 0.25 | |
233 | armspeed = 0.25 | |
234 | flying = nil | |
235 | flyingtornado1 = nil | |
236 | flyingtornado2 = nil | |
237 | tornado1 = nil | |
238 | tornado2 = nil | |
239 | fullspin = false | |
240 | counter = 0 | |
241 | function fullrot() | |
242 | ||
243 | local part = Instance.new("Part",game.Players.LocalPlayer.Character) part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(0,255,0) part.Anchored = true part.Transparency = 0.9 part.CanCollide = false part.Shape = Enum.PartType.Cylinder part.Size = Vector3.new(math.huge,1,1) | |
244 | part.Name = "FullSpinC" | |
245 | part.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.rad(90)) | |
246 | game:GetService("Debris"):AddItem(part,1.5) | |
247 | for i=0.9,1,0.004 do | |
248 | wait() | |
249 | part.Size = part.Size+Vector3.new(0,2,2) | |
250 | part.Transparency = i | |
251 | ||
252 | end | |
253 | part:remove() | |
254 | end | |
255 | ||
256 | game:GetService("RunService").RenderStepped:connect(function() | |
257 | ||
258 | for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
259 | if part.Name == "Torso" or part.Name == "Right Leg" or part.Name == "Left Leg" or part.Name == "Right Arm" or part.Name == "Left Arm" then | |
260 | part.Color = Color3.fromRGB(255, 204, 153) | |
261 | end | |
262 | end | |
263 | game.Players.LocalPlayer.Character.Head.Color = Color3.fromRGB(0,255,0) | |
264 | ||
265 | ||
266 | ||
267 | ||
268 | ||
269 | counter = counter+1 | |
270 | if counter >= 10 then | |
271 | counter= 0 | |
272 | if fullspin == true then | |
273 | fullrot() | |
274 | end | |
275 | end | |
276 | rot = rot+speed | |
277 | armrot = armrot+armspeed | |
278 | game.Players.LocalPlayer.Character.Head.CanCollide = false | |
279 | fidget1.FidgetHip.C0 = CFrame.new(fidget1.FidgetHip.C0.p)*CFrame.Angles(0,armrot,0) | |
280 | fidget2.FidgetHip2.C0 = CFrame.new(fidget2.FidgetHip2.C0.p)*CFrame.Angles(0,-armrot,0) | |
281 | for _,child in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
282 | if child.Name == "FullSpinC" then | |
283 | child.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.rad(90)) | |
284 | end | |
285 | end | |
286 | ||
287 | if flying ~= nil then | |
288 | ||
289 | fidget3.FidgetHip3.C0 = CFrame.new(fidget3.FidgetHip3.C0.p)*CFrame.Angles(0,rot*2,0) | |
290 | fidget4.FidgetHip4.C0 = CFrame.new(fidget4.FidgetHip4.C0.p)*CFrame.Angles(0,-rot*2,0) | |
291 | flying.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position+Vector3.new(0,-3.5,0)) | |
292 | end | |
293 | game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(game.Players.LocalPlayer.Character.Torso.Neck.C0.p)*CFrame.Angles(math.rad(90),0,rot) | |
294 | if fullspin == true then | |
295 | ||
296 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0*CFrame.Angles(0,0,rot*10) | |
297 | for _,child in pairs(game.Workspace:GetChildren()) do | |
298 | if child ~= game.Players.LocalPlayer.Character then | |
299 | for _,InChild in pairs(child:GetChildren()) do | |
300 | if InChild:IsA("BasePart") then | |
301 | if InChild.Position.X > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X-20 and InChild.Position.X < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X+20 then | |
302 | if InChild.Position.Z > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z-20 and InChild.Position.Z < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z+20 then | |
303 | for _,InChild2 in pairs(child:GetChildren()) do | |
304 | if InChild2.ClassName == "Humanoid" then | |
305 | InChild2.Health = InChild2.Health-2 | |
306 | InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80 | |
307 | end | |
308 | end | |
309 | end | |
310 | end | |
311 | end | |
312 | end | |
313 | end | |
314 | end | |
315 | ||
316 | end | |
317 | if tornado1 ~= nil then | |
318 | local pos1 = game.Players.LocalPlayer.Character["Right Arm"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p | |
319 | local pos2 = game.Players.LocalPlayer:GetMouse().Hit:toWorldSpace(CFrame.new(7.5,0,0)).p | |
320 | tornado1.Mesh.Scale = Vector3.new(15,(pos1-pos2).magnitude,15) | |
321 | tornado1.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180)) | |
322 | for _,child in pairs(game.Workspace:GetChildren()) do | |
323 | if child ~= game.Players.LocalPlayer.Character then | |
324 | for _,InChild in pairs(child:GetChildren()) do | |
325 | if InChild:IsA("BasePart") then | |
326 | if (InChild.Position-pos2).magnitude < 7.5 then | |
327 | for _,InChild2 in pairs(child:GetChildren()) do | |
328 | if InChild2.ClassName == "Humanoid" then | |
329 | InChild2.Health = InChild2.Health-2 | |
330 | InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80 | |
331 | end | |
332 | end | |
333 | end | |
334 | end | |
335 | end | |
336 | end | |
337 | end | |
338 | ||
339 | ||
340 | ||
341 | end | |
342 | if tornado2 ~= nil then | |
343 | local pos1 = game.Players.LocalPlayer.Character["Left Arm"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p | |
344 | local pos2 = game.Players.LocalPlayer:GetMouse().Hit:toWorldSpace(CFrame.new(-7.5,0,0)).p | |
345 | tornado2.Mesh.Scale = Vector3.new(15,(pos1-pos2).magnitude,15) | |
346 | tornado2.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180)) | |
347 | ||
348 | for _,child in pairs(game.Workspace:GetChildren()) do | |
349 | if child ~= game.Players.LocalPlayer.Character then | |
350 | for _,InChild in pairs(child:GetChildren()) do | |
351 | if InChild:IsA("BasePart") then | |
352 | if (InChild.Position-pos2).magnitude < 10 then | |
353 | for _,InChild2 in pairs(child:GetChildren()) do | |
354 | if InChild2.ClassName == "Humanoid" then | |
355 | InChild2.Health = InChild2.Health-1 | |
356 | InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80 | |
357 | end | |
358 | end | |
359 | end | |
360 | end | |
361 | end | |
362 | end | |
363 | end | |
364 | end | |
365 | ||
366 | ||
367 | if flyingtornado1 ~= nil then | |
368 | local pos1 = game.Players.LocalPlayer.Character["Right Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p | |
369 | local cframe1 = game.Players.LocalPlayer.Character["Right Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))) | |
370 | local pos2 = game.Players.LocalPlayer.Character["Right Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(7.5,0,0))).p-Vector3.new(0,4000,0) | |
371 | ||
372 | local ray = Ray.new(pos1,cframe1:toWorldSpace(CFrame.new(Vector3.new(500,0,0))).p-Vector3.new(0,4000,0)) | |
373 | local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character) | |
374 | if hit ~= nil then | |
375 | pos2 = position | |
376 | end | |
377 | ||
378 | flyingtornado1.Mesh.Scale = Vector3.new(6,(pos1-pos2).magnitude,6) | |
379 | flyingtornado1.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180)) | |
380 | ||
381 | for _,child in pairs(game.Workspace:GetChildren()) do | |
382 | if child ~= game.Players.LocalPlayer.Character then | |
383 | for _,InChild in pairs(child:GetChildren()) do | |
384 | if InChild:IsA("BasePart") then | |
385 | if (InChild.Position-pos2).magnitude < 3 then | |
386 | for _,InChild2 in pairs(child:GetChildren()) do | |
387 | if InChild2.ClassName == "Humanoid" then | |
388 | InChild2.Health = InChild2.Health-1 | |
389 | InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80 | |
390 | end | |
391 | end | |
392 | end | |
393 | end | |
394 | end | |
395 | end | |
396 | end | |
397 | end | |
398 | ||
399 | if flyingtornado2 ~= nil then | |
400 | local pos1 = game.Players.LocalPlayer.Character["Left Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p | |
401 | local cframe1 = game.Players.LocalPlayer.Character["Left Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))) | |
402 | local pos2 = game.Players.LocalPlayer.Character["Left Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(-7.5,0,0))).p-Vector3.new(0,4000,0) | |
403 | ||
404 | local ray = Ray.new(pos1,cframe1:toWorldSpace(CFrame.new(Vector3.new(-500,0,0))).p-Vector3.new(0,4000,0)) | |
405 | local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character) | |
406 | ||
407 | if hit ~= nil then | |
408 | pos2 = position | |
409 | end | |
410 | ||
411 | flyingtornado2.Mesh.Scale = Vector3.new(6,(pos1-pos2).magnitude,6) | |
412 | flyingtornado2.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180)) | |
413 | ||
414 | for _,child in pairs(game.Workspace:GetChildren()) do | |
415 | if child ~= game.Players.LocalPlayer.Character then | |
416 | for _,InChild in pairs(child:GetChildren()) do | |
417 | if InChild:IsA("BasePart") then | |
418 | if (InChild.Position-pos2).magnitude < 3 then | |
419 | for _,InChild2 in pairs(child:GetChildren()) do | |
420 | if InChild2.ClassName == "Humanoid" then | |
421 | InChild2.Health = InChild2.Health-1 | |
422 | InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80 | |
423 | end | |
424 | end | |
425 | end | |
426 | end | |
427 | end | |
428 | end | |
429 | end | |
430 | end | |
431 | ||
432 | ||
433 | ||
434 | ||
435 | ||
436 | ||
437 | end) | |
438 | game:GetService("UserInputService").InputBegan:connect(function(key) | |
439 | if key.KeyCode == Enum.KeyCode.F then | |
440 | if flying == nil then | |
441 | flying = Instance.new("Part",game.Players.LocalPlayer.Character) flying.Transparency = 1 flying.Anchored = true flying.Size = Vector3.new(3,1,3) | |
442 | flyingtornado1 = Instance.new("Part",game.Players.LocalPlayer.Character) flyingtornado1.Color = Color3.fromRGB(200,255,200) flyingtornado1.Transparency = 0.5 flyingtornado1.CanCollide = false flyingtornado1.Anchored = true | |
443 | local mesh = Instance.new("SpecialMesh",flyingtornado1) mesh.MeshId = "rbxassetid://1040723301" | |
444 | flyingtornado2 = Instance.new("Part",game.Players.LocalPlayer.Character) flyingtornado2.Color = Color3.fromRGB(200,255,200) flyingtornado2.Transparency = 0.5 flyingtornado2.CanCollide = false flyingtornado2.Anchored = true | |
445 | local mesh = Instance.new("SpecialMesh",flyingtornado2) mesh.MeshId = "rbxassetid://1040723301" | |
446 | ||
447 | else | |
448 | flying:remove() | |
449 | flying = nil | |
450 | flyingtornado1:remove() | |
451 | flyingtornado1 = nil | |
452 | flyingtornado2:remove() | |
453 | flyingtornado2 = nil | |
454 | end | |
455 | end | |
456 | if key.KeyCode == Enum.KeyCode.E then | |
457 | armspeed = 0.5 | |
458 | tornado1 = Instance.new("Part",game.Players.LocalPlayer.Character) tornado1.Color = Color3.fromRGB(200,255,200) tornado1.Transparency = 0.5 tornado1.CanCollide = false tornado1.Anchored = true | |
459 | local mesh = Instance.new("SpecialMesh",tornado1) mesh.MeshId = "rbxassetid://1040723301" | |
460 | tornado2 = Instance.new("Part",game.Players.LocalPlayer.Character) tornado2.Color = Color3.fromRGB(200,255,200) tornado2.Transparency = 0.5 tornado2.CanCollide = false tornado2.Anchored = true | |
461 | local mesh = Instance.new("SpecialMesh",tornado2) mesh.MeshId = "rbxassetid://1040723301" | |
462 | ||
463 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(90)) | |
464 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0*CFrame.Angles(0,0,math.rad(-90)) | |
465 | end | |
466 | if key.KeyCode == Enum.KeyCode.R then | |
467 | if fullspin == false then | |
468 | fullspin = true | |
469 | ||
470 | else | |
471 | fullspin = false | |
472 | end | |
473 | end | |
474 | end) | |
475 | game:GetService("UserInputService").InputEnded:connect(function(key) | |
476 | ||
477 | if key.KeyCode == Enum.KeyCode.E then | |
478 | tornado1:remove() | |
479 | tornado2:remove() | |
480 | tornado1 = nil | |
481 | tornado2 = nil | |
482 | armspeed = 0.25 | |
483 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(-90)) | |
484 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0*CFrame.Angles(0,0,math.rad(90)) | |
485 | end | |
486 | end) |