SHOW:
|
|
- or go back to the newest paste.
1 | --[[i stole zappa model!11!11 | |
2 | Genocider by grgrgry21. | |
3 | Credit to CKBackUp's Psychopath and idk.. | |
4 | B | |
5 | U R | |
6 | N I N H | |
7 | E L | |
8 | L | |
9 | ]]-- | |
10 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
11 | local Player,game,owner = owner,game | |
12 | - | local Player = game.Players.localPlayer |
12 | + | local RealPlayer = Player |
13 | do | |
14 | print("FE Compatibility code by Mokiros") | |
15 | - | local Mouse = Player:GetMouse() |
15 | + | local rp = RealPlayer |
16 | script.Parent = rp.Character | |
17 | ||
18 | --RemoteEvent for communicating | |
19 | local Event = Instance.new("RemoteEvent") | |
20 | Event.Name = "UserInput_Event" | |
21 | ||
22 | --Fake event to make stuff like Mouse.KeyDown work | |
23 | local function fakeEvent() | |
24 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
25 | t.connect = t.Connect | |
26 | return t | |
27 | end | |
28 | ||
29 | --Creating fake input objects with fake variables | |
30 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
31 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
32 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
33 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
34 | end} | |
35 | --Merged 2 functions into one by checking amount of arguments | |
36 | CAS.UnbindAction = CAS.BindAction | |
37 | ||
38 | --This function will trigger the events that have been :Connect()'ed | |
39 | local function te(self,ev,...) | |
40 | local t = m[ev] | |
41 | if t and t._fakeEvent then | |
42 | for _,f in pairs(t.Functions) do | |
43 | f(...) | |
44 | end | |
45 | end | |
46 | end | |
47 | m.TrigEvent = te | |
48 | UIS.TrigEvent = te | |
49 | ||
50 | Event.OnServerEvent:Connect(function(plr,io) | |
51 | if plr~=rp then return end | |
52 | m.Target = io.Target | |
53 | m.Hit = io.Hit | |
54 | if not io.isMouse then | |
55 | local b = io.UserInputState == Enum.UserInputState.Begin | |
56 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
57 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
58 | end | |
59 | for _,t in pairs(CAS.Actions) do | |
60 | for _,k in pairs(t.Keys) do | |
61 | if k==io.KeyCode then | |
62 | t.Function(t.Name,io.UserInputState,io) | |
63 | end | |
64 | end | |
65 | end | |
66 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
67 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
68 | end | |
69 | end) | |
70 | Event.Parent = NLS([==[ | |
71 | local Player = game:GetService("Players").LocalPlayer | |
72 | local Event = script:WaitForChild("UserInput_Event") | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local UIS = game:GetService("UserInputService") | |
76 | local input = function(io,a) | |
77 | if a then return end | |
78 | --Since InputObject is a client-side instance, we create and pass table instead | |
79 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
80 | end | |
81 | UIS.InputBegan:Connect(input) | |
82 | UIS.InputEnded:Connect(input) | |
83 | ||
84 | local h,t | |
85 | --Give the server mouse data 30 times every second, but only if the values changed | |
86 | --If player is not moving their mouse, client won't fire events | |
87 | while wait(1/30) do | |
88 | if h~=Mouse.Hit or t~=Mouse.Target then | |
89 | h,t=Mouse.Hit,Mouse.Target | |
90 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
91 | end | |
92 | end]==],Player.Character) | |
93 | ||
94 | ----Sandboxed game object that allows the usage of client-side methods and services | |
95 | --Real game object | |
96 | local _rg = game | |
97 | ||
98 | --Metatable for fake service | |
99 | local fsmt = { | |
100 | __index = function(self,k) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then return s[k] end | |
103 | end, | |
104 | __newindex = function(self,k,v) | |
105 | local s = rawget(self,"_RealService") | |
106 | if s then s[k]=v end | |
107 | end, | |
108 | __call = function(self,...) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then return s(...) end | |
111 | end | |
112 | } | |
113 | local function FakeService(t,RealService) | |
114 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
115 | return setmetatable(t,fsmt) | |
116 | end | |
117 | ||
118 | --Fake game object | |
119 | local g = { | |
120 | GetService = function(self,s) | |
121 | return self[s] | |
122 | end, | |
123 | Players = FakeService({ | |
124 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
125 | },"Players"), | |
126 | UserInputService = FakeService(UIS,"UserInputService"), | |
127 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
128 | } | |
129 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
130 | g.service = g.GetService | |
131 | ||
132 | g.RunService = FakeService({ | |
133 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
134 | BindToRenderStep = function(self,name,_,fun) | |
135 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
136 | end, | |
137 | UnbindFromRenderStep = function(self,name) | |
138 | self._btrs[name]:Disconnect() | |
139 | end, | |
140 | },"RunService") | |
141 | ||
142 | setmetatable(g,{ | |
143 | __index=function(self,s) | |
144 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
145 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
146 | end, | |
147 | __newindex = fsmt.__newindex, | |
148 | __call = fsmt.__call | |
149 | }) | |
150 | --Changing owner to fake player object to support owner:GetMouse() | |
151 | game,owner = g,g.Players.LocalPlayer | |
152 | ||
153 | end | |
154 | wait(1 / 60) | |
155 | Effects = { } | |
156 | local Player = owner | |
157 | local Character = Player.Character | |
158 | local Humanoid = Character.Humanoid | |
159 | local LeftArm = Character["Left Arm"] | |
160 | local RightArm = Character["Right Arm"] | |
161 | local LeftLeg = Character["Left Leg"] | |
162 | local RightLeg = Character["Right Leg"] | |
163 | local Head = Character.Head | |
164 | local Torso = Character.Torso | |
165 | local Camera = game.Workspace.CurrentCamera | |
166 | local RootPart = Character.HumanoidRootPart | |
167 | local RootJoint = RootPart.RootJoint | |
168 | local attack = false | |
169 | local Anim = 'Idle' | |
170 | local attacktype = 1 | |
171 | local delays = false | |
172 | local play = true | |
173 | local targetted = nil | |
174 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
175 | local velocity = RootPart.Velocity.y | |
176 | local sine = 0 | |
177 | local change = 1 | |
178 | local Create = LoadLibrary("RbxUtility").Create | |
179 | Humanoid.WalkSpeed = 8 | |
180 | local m = Create("Model"){ | |
181 | Parent = Character, | |
182 | Name = "WeaponModel", | |
183 | } | |
184 | ||
185 | Humanoid.Animator.Parent = nil | |
186 | Character.Animate.Parent = nil | |
187 | ||
188 | local newMotor = function(part0, part1, c0, c1) | |
189 | local w = Create('Motor'){ | |
190 | Parent = part0, | |
191 | Part0 = part0, | |
192 | Part1 = part1, | |
193 | C0 = c0, | |
194 | C1 = c1, | |
195 | } | |
196 | return w | |
197 | end | |
198 | ||
199 | function clerp(a, b, t) | |
200 | return a:lerp(b, t) | |
201 | end | |
202 | ||
203 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
204 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
205 | ||
206 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
207 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
208 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
209 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
210 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
211 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
212 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
213 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
214 | ||
215 | local rarmc1 = RW.C1 | |
216 | local larmc1 = LW.C1 | |
217 | local rlegc1 = RH.C1 | |
218 | local llegc1 = LH.C1 | |
219 | ||
220 | local resetc1 = false | |
221 | ||
222 | function PlayAnimationFromTable(table, speed, bool) | |
223 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
224 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
225 | RW.C0 = clerp(RW.C0, table[3], speed) | |
226 | LW.C0 = clerp(LW.C0, table[4], speed) | |
227 | RH.C0 = clerp(RH.C0, table[5], speed) | |
228 | LH.C0 = clerp(LH.C0, table[6], speed) | |
229 | if bool == true then | |
230 | if resetc1 == false then | |
231 | resetc1 = true | |
232 | RootJoint.C1 = RootJoint.C1 | |
233 | Torso.Neck.C1 = Torso.Neck.C1 | |
234 | RW.C1 = rarmc1 | |
235 | LW.C1 = larmc1 | |
236 | RH.C1 = rlegc1 | |
237 | LH.C1 = llegc1 | |
238 | end | |
239 | end | |
240 | end | |
241 | ||
242 | ArtificialHB = Create("BindableEvent", script){ | |
243 | Parent = script, | |
244 | Name = "Heartbeat", | |
245 | } | |
246 | ||
247 | script:WaitForChild("Heartbeat") | |
248 | ||
249 | frame = 1 / 30 | |
250 | tf = 0 | |
251 | allowframeloss = false | |
252 | tossremainder = false | |
253 | lastframe = tick() | |
254 | script.Heartbeat:Fire() | |
255 | ||
256 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
257 | tf = tf + s | |
258 | if tf >= frame then | |
259 | if allowframeloss then | |
260 | script.Heartbeat:Fire() | |
261 | lastframe = tick() | |
262 | else | |
263 | for i = 1, math.floor(tf / frame) do | |
264 | script.Heartbeat:Fire() | |
265 | end | |
266 | lastframe = tick() | |
267 | end | |
268 | if tossremainder then | |
269 | tf = 0 | |
270 | else | |
271 | tf = tf - frame * math.floor(tf / frame) | |
272 | end | |
273 | end | |
274 | end) | |
275 | ||
276 | function swait(num) | |
277 | if num == 0 or num == nil then | |
278 | ArtificialHB.Event:wait() | |
279 | else | |
280 | for i = 0, num do | |
281 | ArtificialHB.Event:wait() | |
282 | end | |
283 | end | |
284 | end | |
285 | ||
286 | function RemoveOutlines(part) | |
287 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
288 | end | |
289 | ||
290 | CFuncs = { | |
291 | ["Part"] = { | |
292 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
293 | local Part = Create("Part"){ | |
294 | Parent = Parent, | |
295 | Reflectance = Reflectance, | |
296 | Transparency = Transparency, | |
297 | CanCollide = false, | |
298 | Locked = true, | |
299 | BrickColor = BrickColor.new(tostring(BColor)), | |
300 | Name = Name, | |
301 | Size = Size, | |
302 | Material = Material, | |
303 | } | |
304 | RemoveOutlines(Part) | |
305 | return Part | |
306 | end; | |
307 | }; | |
308 | ||
309 | ["Mesh"] = { | |
310 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
311 | local Msh = Create(Mesh){ | |
312 | Parent = Part, | |
313 | Offset = OffSet, | |
314 | Scale = Scale, | |
315 | } | |
316 | if Mesh == "SpecialMesh" then | |
317 | Msh.MeshType = MeshType | |
318 | Msh.MeshId = MeshId | |
319 | end | |
320 | return Msh | |
321 | end; | |
322 | }; | |
323 | ||
324 | ["Mesh"] = { | |
325 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
326 | local Msh = Create(Mesh){ | |
327 | Parent = Part, | |
328 | Offset = OffSet, | |
329 | Scale = Scale, | |
330 | } | |
331 | if Mesh == "SpecialMesh" then | |
332 | Msh.MeshType = MeshType | |
333 | Msh.MeshId = MeshId | |
334 | end | |
335 | return Msh | |
336 | end; | |
337 | }; | |
338 | ||
339 | ["Weld"] = { | |
340 | Create = function(Parent, Part0, Part1, C0, C1) | |
341 | local Weld = Create("Weld"){ | |
342 | Parent = Parent, | |
343 | Part0 = Part0, | |
344 | Part1 = Part1, | |
345 | C0 = C0, | |
346 | C1 = C1, | |
347 | } | |
348 | return Weld | |
349 | end; | |
350 | }; | |
351 | ||
352 | ["Sound"] = { | |
353 | Create = function(id, par, vol, pit) | |
354 | coroutine.resume(coroutine.create(function() | |
355 | local S = Create("Sound"){ | |
356 | Volume = vol, | |
357 | Pitch = pit or 1, | |
358 | SoundId = id, | |
359 | Parent = par or workspace, | |
360 | } | |
361 | wait() | |
362 | S:play() | |
363 | game:GetService("Debris"):AddItem(S, 6) | |
364 | end)) | |
365 | end; | |
366 | }; | |
367 | ||
368 | ["ParticleEmitter"] = { | |
369 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
370 | local fp = Create("ParticleEmitter"){ | |
371 | Parent = Parent, | |
372 | Color = ColorSequence.new(Color1, Color2), | |
373 | LightEmission = LightEmission, | |
374 | Size = Size, | |
375 | Texture = Texture, | |
376 | Transparency = Transparency, | |
377 | ZOffset = ZOffset, | |
378 | Acceleration = Accel, | |
379 | Drag = Drag, | |
380 | LockedToPart = LockedToPart, | |
381 | VelocityInheritance = VelocityInheritance, | |
382 | EmissionDirection = EmissionDirection, | |
383 | Enabled = Enabled, | |
384 | Lifetime = LifeTime, | |
385 | Rate = Rate, | |
386 | Rotation = Rotation, | |
387 | RotSpeed = RotSpeed, | |
388 | Speed = Speed, | |
389 | VelocitySpread = VelocitySpread, | |
390 | } | |
391 | return fp | |
392 | end; | |
393 | }; | |
394 | ||
395 | CreateTemplate = { | |
396 | ||
397 | }; | |
398 | } | |
399 | ||
400 | ||
401 | ||
402 | New = function(Object, Parent, Name, Data) | |
403 | local Object = Instance.new(Object) | |
404 | for Index, Value in pairs(Data or {}) do | |
405 | Object[Index] = Value | |
406 | end | |
407 | Object.Parent = Parent | |
408 | Object.Name = Name | |
409 | return Object | |
410 | end | |
411 | ||
412 | ||
413 | ShadowHead = New("Part",Character,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
414 | Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),}) | |
415 | Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = Character.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
416 | ||
417 | Handle = New("Part",m,"Handle",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.78105354, 1.21267569, 0.446083069),CFrame = CFrame.new(3.48884702, 1.89424598, -23.6011944, 0.0172098875, -7.30156898e-07, 0.999851942, 0.999853492, 1.19907781e-08, -0.0172098596, -1.80598714e-09, 1.00000083, 1.4975667e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
418 | moter = New("Weld",Handle,"mot",{Part0 = RightArm,Part1 = Handle,}) | |
419 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.46324158, 2.55061626, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
420 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.24608025, 0.123040132),}) | |
421 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655831456, 0.501588821, -0.0368974209, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
422 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.270688266, 0.270688266),CFrame = CFrame.new(3.47537327, 1.11045444, -23.2953625, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
423 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
424 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.783906102, 0.305831909, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
425 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.221472263, 0.344512314),CFrame = CFrame.new(3.48828244, 1.86040294, -23.3093491, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
426 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.00999999, 1),}) | |
427 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(-0.0338476896, 0.291845322, 1.8119812e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
428 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.98432076, 0.200000003, 0.24608022),CFrame = CFrame.new(3.48404813, 1.61474013, -23.4433804, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
429 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.246080264, 1),}) | |
430 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279546618, 0.157814026, 1.21593475e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
431 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.36101127, 1.61687815, -23.4187717, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
432 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
433 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279526353, 0.182422638, -0.123043299, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
434 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.53706741, 2.54934502, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
435 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.246080235, 0.123040132),}) | |
436 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655830979, 0.501588821, 0.0369393826, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
437 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.48828554, 1.86097884, -23.1606178, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
438 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.7382406),}) | |
439 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.0332717896, 0.440576553, 1.14440918e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
440 | Partss = New("Part",m,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.221472204, 0.221472189),CFrame = CFrame.new(3.47526526, 1.10428262, -23.2953568, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
441 | Mesh = New("SpecialMesh",Partss,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
442 | mot = New("Weld",Partss,"mot",{Part0 = Partss,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.790078878, 0.305837631, 1.57356262e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
443 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.49040294, 1.9837563, -23.5174713, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
444 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.615200579, 0.36912033, 0.24608025),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,}) | |
445 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(0.0895236731, 0.0837230682, 1.52587891e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
446 | Part = New("Part",m,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.295296252, 0.738240778, 0.369120389),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
447 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
448 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512314, 0.78745681, 0.344512314),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
449 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
450 | Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.60706425, 1.61264217, -23.4187698, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
451 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
452 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279527187, 0.182424545, 0.12304616, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
453 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.47672749, 1.18911982, -23.1232109, 0.999851942, 0.00638213893, 0.0159827713, -0.0172098316, 0.37065956, 0.928613782, 4.44045327e-06, -0.928749561, 0.370713741),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
454 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.246080264, 0.615200639),MeshType = Enum.MeshType.Wedge,}) | |
455 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098316, 3.67313623e-06, 0.00638283044, 0.370658338, -0.928748012, 0.0159824342, 0.928610861, 0.370713145),C1 = CFrame.new(-0.705229163, 0.477983475, 1.76429749e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
456 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.50247502, 2.68478155, -23.8132839, 0.999851942, 1.0713723e-05, -0.0172099732, -0.0172098912, 0.000738376984, -0.999856234, 4.21693585e-06, 1.00000226, 0.000738456321),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
457 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
458 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098912, 3.44961882e-06, 9.9465251e-06, 0.000738390256, 1.0000006, -0.0172099192, -0.999853015, 0.000738452654),C1 = CFrame.new(0.790651679, -0.212089539, 2.07424164e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
459 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.4904809, 1.98827124, -23.5162678, -0.999852061, -0.0148990965, 0.00861407723, 0.0172099397, -0.865535975, 0.500560343, -4.36594746e-06, 0.500633478, 0.865662456),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
460 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.369120389, 0.861280918),MeshType = Enum.MeshType.Wedge,}) | |
461 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.999851942, 0.0172099397, -3.59863043e-06, -0.0148994327, -0.865533173, 0.500632644, 0.00861338526, 0.500558794, 0.865661025),C1 = CFrame.new(0.0940393209, 0.0849266052, 1.54972076e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
462 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.442944348, 0.200000003, 0.200000003),CFrame = CFrame.new(3.37415838, 2.37982368, -23.1609974, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
463 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
464 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(0.483531356, 0.440196991, -0.12302804, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
465 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.61520052, 0.200000003, 0.200000003),CFrame = CFrame.new(3.35783243, 1.43252242, -23.1602993, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
466 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
467 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(-0.463909149, 0.440895081, -0.123048544, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
468 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.61130548, 1.85886192, -23.160614, -0.0172098689, 1.04156998e-05, -0.99985218, -0.999856234, 0.000738191127, 0.0172097925, 0.000738266157, 1.00000238, -4.55221243e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
469 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
470 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.0172098149, -0.999853075, 0.00073826249, 9.64850187e-06, 0.00073820434, 1.00000072, -0.999852121, 0.0172097944, -3.78489494e-06),C1 = CFrame.new(-0.0332713127, 0.440580368, 0.123049498, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
471 | Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240778, 0.200000003),CFrame = CFrame.new(3.50183868, 2.64789343, -23.8132629, 0.999851942, 1.0818032e-05, -0.017209895, -0.0172098186, 0.000737608876, -0.999856234, 4.13497901e-06, 1.00000238, 0.000737691764),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
472 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
473 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098186, 3.36766243e-06, 1.00508332e-05, 0.000737622147, 1.00000072, -0.0172098409, -0.999853015, 0.000737688097),C1 = CFrame.new(0.753758311, -0.212068558, 1.93119049e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
474 | Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.49357963, 2.16808391, -23.8129005, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
475 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
476 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.273878455, -0.211706161, 1.90734863e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
477 | Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240659, 0.200000003),CFrame = CFrame.new(3.49420977, 2.20497489, -23.8129292, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
478 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
479 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.310774684, -0.211734772, 1.43051147e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
480 | ||
481 | for _,v in pairs(m:children()) do | |
482 | if v:IsA("Part") then | |
483 | v.CanCollide = false | |
484 | end | |
485 | end | |
486 | if Character.Name == "grgrgry21" or Character.Name == "Player1" then | |
487 | for _,v in pairs(Character:children()) do | |
488 | if v:IsA("Accessory") then | |
489 | v:Remove() | |
490 | end | |
491 | end | |
492 | Handle = New("Part",Head,"Handle",{CanCollide = false,BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-27.3000507, 4.79990387, 28.10005, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
493 | Mesh = New("SpecialMesh",Handle,"Mesh",{Offset = Vector3.new(0, 0.100000001, 0),MeshId = "http://www.roblox.com/asset/?id=62246019",MeshType = Enum.MeshType.FileMesh,}) | |
494 | Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=146022204",}) | |
495 | mot = New("Motor",Handle,"mot",{Part0 = Handle,Part1 = Head,C0 = CFrame.new(0, 0, 0, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),C1 = CFrame.new(-0.100000381, 0.0999999046, 0.200000763, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),}) | |
496 | Handle1 = New("Part",Head,"Handle1",{CanCollide = false,BrickColor = BrickColor.new("Bright red"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-27.3000507, 4.79990387, 28.10005, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),}) | |
497 | Mesh = New("SpecialMesh",Handle1,"Mesh",{Offset = Vector3.new(0, 0.100000001, 0),Scale = Vector3.new(0.949999988, 0.949999988, 0.949999988),MeshId = "http://www.roblox.com/asset/?id=62246019",MeshType = Enum.MeshType.FileMesh,}) | |
498 | mot = New("Motor",Handle1,"mot",{Part0 = Handle1,Part1 = Head,C0 = CFrame.new(0, 0, 0, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),C1 = CFrame.new(-0.100000381, 0.0999999046, 0.200000763, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),}) | |
499 | end | |
500 | ||
501 | ||
502 | function rayCast(Position, Direction, Range, Ignore) | |
503 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
504 | end | |
505 | ||
506 | --[[FindNearestTorso = function(pos) | |
507 | local list = (game.Workspace:children()) | |
508 | local torso = nil | |
509 | local dist = 1000 | |
510 | local temp, human, temp2 = nil, nil, nil | |
511 | for x = 1, #list do | |
512 | temp2 = list[x] | |
513 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
514 | temp = temp2:findFirstChild("Torso") | |
515 | human = temp2:findFirstChild("Humanoid") | |
516 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
517 | local dohit = true | |
518 | if dohit == true then | |
519 | torso = temp | |
520 | dist = (temp.Position - pos).magnitude | |
521 | end | |
522 | end | |
523 | end | |
524 | end | |
525 | return torso, dist | |
526 | end]] | |
527 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
528 | if SinglePlayer then | |
529 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
530 | end | |
531 | local List = {} | |
532 | for i, v in pairs(workspace:GetChildren()) do | |
533 | if v:IsA("Model") then | |
534 | if v:findFirstChild("Torso") then | |
535 | if v ~= Character then | |
536 | if (v.Torso.Position - Position).magnitude <= Distance then | |
537 | table.insert(List, v) | |
538 | end | |
539 | end | |
540 | end | |
541 | end | |
542 | end | |
543 | return List | |
544 | end | |
545 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
546 | if hit.Parent == nil then | |
547 | return | |
548 | end | |
549 | local h = hit.Parent:FindFirstChild("Humanoid") | |
550 | for _, v in pairs(hit.Parent:children()) do | |
551 | if v:IsA("Humanoid") then | |
552 | h = v | |
553 | end | |
554 | end | |
555 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
556 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
557 | if hit.Parent.DebounceHit.Value == true then | |
558 | return | |
559 | end | |
560 | end | |
561 | local c = Create("ObjectValue"){ | |
562 | Name = "creator", | |
563 | Value = game:service("Players").LocalPlayer, | |
564 | Parent = h, | |
565 | } | |
566 | game:GetService("Debris"):AddItem(c, .5) | |
567 | if HitSound ~= nil and HitPitch ~= nil then | |
568 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
569 | end | |
570 | local Damage = math.random(minim, maxim) | |
571 | local blocked = false | |
572 | local block = hit.Parent:findFirstChild("Block") | |
573 | if block ~= nil then | |
574 | if block.className == "IntValue" then | |
575 | if block.Value > 0 then | |
576 | blocked = true | |
577 | block.Value = block.Value - 1 | |
578 | print(block.Value) | |
579 | end | |
580 | end | |
581 | end | |
582 | if blocked == false then | |
583 | h.Health = h.Health - Damage | |
584 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
585 | else | |
586 | h.Health = h.Health - (Damage / 2) | |
587 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
588 | end | |
589 | if Type == "Knockdown" then | |
590 | local hum = hit.Parent.Humanoid | |
591 | hum.PlatformStand = true | |
592 | coroutine.resume(coroutine.create(function(HHumanoid) | |
593 | swait(1) | |
594 | HHumanoid.PlatformStand = false | |
595 | end), hum) | |
596 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
597 | local bodvol = Create("BodyVelocity"){ | |
598 | velocity = angle * knockback, | |
599 | P = 5000, | |
600 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
601 | Parent = hit, | |
602 | } | |
603 | local rl = Create("BodyAngularVelocity"){ | |
604 | P = 3000, | |
605 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
606 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
607 | Parent = hit, | |
608 | } | |
609 | game:GetService("Debris"):AddItem(bodvol, .5) | |
610 | game:GetService("Debris"):AddItem(rl, .5) | |
611 | elseif Type == "Normal" then | |
612 | local vp = Create("BodyVelocity"){ | |
613 | P = 500, | |
614 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
615 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
616 | } | |
617 | if knockback > 0 then | |
618 | vp.Parent = hit.Parent.Torso | |
619 | end | |
620 | game:GetService("Debris"):AddItem(vp, .5) | |
621 | elseif Type == "Up" then | |
622 | local bodyVelocity = Create("BodyVelocity"){ | |
623 | velocity = Vector3.new(0, 20, 0), | |
624 | P = 5000, | |
625 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
626 | Parent = hit, | |
627 | } | |
628 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
629 | elseif Type == "DarkUp" then | |
630 | coroutine.resume(coroutine.create(function() | |
631 | for i = 0, 1, 0.1 do | |
632 | swait() | |
633 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
634 | end | |
635 | end)) | |
636 | local bodyVelocity = Create("BodyVelocity"){ | |
637 | velocity = Vector3.new(0, 20, 0), | |
638 | P = 5000, | |
639 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
640 | Parent = hit, | |
641 | } | |
642 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
643 | elseif Type == "Snare" then | |
644 | local bp = Create("BodyPosition"){ | |
645 | P = 2000, | |
646 | D = 100, | |
647 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
648 | position = hit.Parent.Torso.Position, | |
649 | Parent = hit.Parent.Torso, | |
650 | } | |
651 | game:GetService("Debris"):AddItem(bp, 1) | |
652 | elseif Type == "Freeze" then | |
653 | local BodPos = Create("BodyPosition"){ | |
654 | P = 50000, | |
655 | D = 1000, | |
656 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
657 | position = hit.Parent.Torso.Position, | |
658 | Parent = hit.Parent.Torso, | |
659 | } | |
660 | local BodGy = Create("BodyGyro") { | |
661 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
662 | P = 20e+003, | |
663 | Parent = hit.Parent.Torso, | |
664 | cframe = hit.Parent.Torso.CFrame, | |
665 | } | |
666 | hit.Parent.Torso.Anchored = true | |
667 | coroutine.resume(coroutine.create(function(Part) | |
668 | swait(1.5) | |
669 | Part.Anchored = false | |
670 | end), hit.Parent.Torso) | |
671 | game:GetService("Debris"):AddItem(BodPos, 3) | |
672 | game:GetService("Debris"):AddItem(BodGy, 3) | |
673 | end | |
674 | local debounce = Create("BoolValue"){ | |
675 | Name = "DebounceHit", | |
676 | Parent = hit.Parent, | |
677 | Value = true, | |
678 | } | |
679 | game:GetService("Debris"):AddItem(debounce, Delay) | |
680 | c = Create("ObjectValue"){ | |
681 | Name = "creator", | |
682 | Value = Player, | |
683 | Parent = h, | |
684 | } | |
685 | game:GetService("Debris"):AddItem(c, .5) | |
686 | end | |
687 | end | |
688 | ||
689 | function ShowDamage(Pos, Text, Time, Color) | |
690 | local Rate = (1 / 30) | |
691 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
692 | local Text = (Text or "") | |
693 | local Time = (Time or 2) | |
694 | local Color = (Color or Color3.new(1, 0, 1)) | |
695 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
696 | EffectPart.Anchored = true | |
697 | local BillboardGui = Create("BillboardGui"){ | |
698 | Size = UDim2.new(3, 0, 3, 0), | |
699 | Adornee = EffectPart, | |
700 | Parent = EffectPart, | |
701 | } | |
702 | local TextLabel = Create("TextLabel"){ | |
703 | BackgroundTransparency = 1, | |
704 | Size = UDim2.new(1, 0, 1, 0), | |
705 | Text = Text, | |
706 | Font = "SciFi", | |
707 | TextColor3 = Color, | |
708 | TextScaled = true, | |
709 | Parent = BillboardGui, | |
710 | } | |
711 | game.Debris:AddItem(EffectPart, (Time)) | |
712 | EffectPart.Parent = game:GetService("Workspace") | |
713 | delay(0, function() | |
714 | local Frames = (Time / Rate) | |
715 | for Frame = 1, Frames do | |
716 | wait(Rate) | |
717 | local Percent = (Frame / Frames) | |
718 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
719 | TextLabel.TextTransparency = Percent | |
720 | end | |
721 | if EffectPart and EffectPart.Parent then | |
722 | EffectPart:Destroy() | |
723 | end | |
724 | end) | |
725 | end | |
726 | ||
727 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
728 | for _, c in pairs(workspace:children()) do | |
729 | local hum = c:findFirstChild("Humanoid") | |
730 | if hum ~= nil then | |
731 | local head = c:findFirstChild("Torso") | |
732 | if head ~= nil then | |
733 | local targ = head.Position - Part.Position | |
734 | local mag = targ.magnitude | |
735 | if mag <= Magnitude and c.Name ~= Player.Name then | |
736 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
737 | end | |
738 | end | |
739 | end | |
740 | end | |
741 | end | |
742 | ||
743 | EffectModel = Create("Model"){ | |
744 | Parent = Character, | |
745 | Name = "Effects", | |
746 | } | |
747 | ||
748 | Effects = { | |
749 | Block = { | |
750 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
751 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
752 | prt.Anchored = true | |
753 | prt.CFrame = cframe | |
754 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
755 | game:GetService("Debris"):AddItem(prt, 10) | |
756 | if Type == 1 or Type == nil then | |
757 | table.insert(Effects, { | |
758 | prt, | |
759 | "Block1", | |
760 | delay, | |
761 | x3, | |
762 | y3, | |
763 | z3, | |
764 | msh | |
765 | }) | |
766 | elseif Type == 2 then | |
767 | table.insert(Effects, { | |
768 | prt, | |
769 | "Block2", | |
770 | delay, | |
771 | x3, | |
772 | y3, | |
773 | z3, | |
774 | msh | |
775 | }) | |
776 | end | |
777 | end; | |
778 | }; | |
779 | ||
780 | Cylinder = { | |
781 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
782 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
783 | prt.Anchored = true | |
784 | prt.CFrame = cframe | |
785 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
786 | game:GetService("Debris"):AddItem(prt, 10) | |
787 | table.insert(Effects, { | |
788 | prt, | |
789 | "Cylinder", | |
790 | delay, | |
791 | x3, | |
792 | y3, | |
793 | z3, | |
794 | msh | |
795 | }) | |
796 | end; | |
797 | }; | |
798 | Head = { | |
799 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
800 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
801 | prt.Anchored = true | |
802 | prt.CFrame = cframe | |
803 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
804 | game:GetService("Debris"):AddItem(prt, 10) | |
805 | table.insert(Effects, { | |
806 | prt, | |
807 | "Cylinder", | |
808 | delay, | |
809 | x3, | |
810 | y3, | |
811 | z3, | |
812 | msh | |
813 | }) | |
814 | end; | |
815 | }; | |
816 | ||
817 | Sphere = { | |
818 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
819 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
820 | prt.Anchored = true | |
821 | prt.CFrame = cframe | |
822 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
823 | game:GetService("Debris"):AddItem(prt, 10) | |
824 | table.insert(Effects, { | |
825 | prt, | |
826 | "Cylinder", | |
827 | delay, | |
828 | x3, | |
829 | y3, | |
830 | z3, | |
831 | msh | |
832 | }) | |
833 | end; | |
834 | }; | |
835 | ||
836 | Elect = { | |
837 | Create = function(cff, x, y, z) | |
838 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) | |
839 | prt.Anchored = true | |
840 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
841 | prt.CFrame = CFrame.new(prt.Position) | |
842 | game:GetService("Debris"):AddItem(prt, 2) | |
843 | local xval = math.random() / 2 | |
844 | local yval = math.random() / 2 | |
845 | local zval = math.random() / 2 | |
846 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
847 | table.insert(Effects, { | |
848 | prt, | |
849 | "Elec", | |
850 | 0.1, | |
851 | x, | |
852 | y, | |
853 | z, | |
854 | xval, | |
855 | yval, | |
856 | zval | |
857 | }) | |
858 | end; | |
859 | ||
860 | }; | |
861 | ||
862 | Ring = { | |
863 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
864 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
865 | prt.Anchored = true | |
866 | prt.CFrame = cframe | |
867 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
868 | game:GetService("Debris"):AddItem(prt, 10) | |
869 | table.insert(Effects, { | |
870 | prt, | |
871 | "Cylinder", | |
872 | delay, | |
873 | x3, | |
874 | y3, | |
875 | z3, | |
876 | msh | |
877 | }) | |
878 | end; | |
879 | }; | |
880 | ||
881 | ||
882 | Wave = { | |
883 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
884 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
885 | prt.Anchored = true | |
886 | prt.CFrame = cframe | |
887 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
888 | game:GetService("Debris"):AddItem(prt, 10) | |
889 | table.insert(Effects, { | |
890 | prt, | |
891 | "Cylinder", | |
892 | delay, | |
893 | x3, | |
894 | y3, | |
895 | z3, | |
896 | msh | |
897 | }) | |
898 | end; | |
899 | }; | |
900 | ||
901 | Break = { | |
902 | Create = function(brickcolor, cframe, x1, y1, z1) | |
903 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
904 | prt.Anchored = true | |
905 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
906 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
907 | local num = math.random(10, 50) / 1000 | |
908 | game:GetService("Debris"):AddItem(prt, 10) | |
909 | table.insert(Effects, { | |
910 | prt, | |
911 | "Shatter", | |
912 | num, | |
913 | prt.CFrame, | |
914 | math.random() - math.random(), | |
915 | 0, | |
916 | math.random(50, 100) / 100 | |
917 | }) | |
918 | end; | |
919 | }; | |
920 | ||
921 | Fire = { | |
922 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
923 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
924 | prt.Anchored = true | |
925 | prt.CFrame = cframe | |
926 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
927 | game:GetService("Debris"):AddItem(prt, 10) | |
928 | table.insert(Effects, { | |
929 | prt, | |
930 | "Fire", | |
931 | delay, | |
932 | 1, | |
933 | 1, | |
934 | 1, | |
935 | msh | |
936 | }) | |
937 | end; | |
938 | }; | |
939 | ||
940 | FireWave = { | |
941 | Create = function(brickcolor, cframe, x1, y1, z1) | |
942 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
943 | prt.Anchored = true | |
944 | prt.CFrame = cframe | |
945 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
946 | local d = Create("Decal"){ | |
947 | Parent = prt, | |
948 | Texture = "rbxassetid://26356434", | |
949 | Face = "Top", | |
950 | } | |
951 | local d = Create("Decal"){ | |
952 | Parent = prt, | |
953 | Texture = "rbxassetid://26356434", | |
954 | Face = "Bottom", | |
955 | } | |
956 | game:GetService("Debris"):AddItem(prt, 10) | |
957 | table.insert(Effects, { | |
958 | prt, | |
959 | "FireWave", | |
960 | 1, | |
961 | 30, | |
962 | math.random(400, 600) / 100, | |
963 | msh | |
964 | }) | |
965 | end; | |
966 | }; | |
967 | ||
968 | Lightning = { | |
969 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
970 | local magz = (p0 - p1).magnitude | |
971 | local curpos = p0 | |
972 | local trz = { | |
973 | -ofs, | |
974 | ofs | |
975 | } | |
976 | for i = 1, tym do | |
977 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
978 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
979 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
980 | li.Material = "Neon" | |
981 | if tym == i then | |
982 | local magz2 = (curpos - p1).magnitude | |
983 | li.Size = Vector3.new(th, th, magz2) | |
984 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
985 | table.insert(Effects, { | |
986 | li, | |
987 | "Disappear", | |
988 | last | |
989 | }) | |
990 | else | |
991 | do | |
992 | do | |
993 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
994 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
995 | game.Debris:AddItem(li, 10) | |
996 | table.insert(Effects, { | |
997 | li, | |
998 | "Disappear", | |
999 | last | |
1000 | }) | |
1001 | end | |
1002 | end | |
1003 | end | |
1004 | end | |
1005 | end | |
1006 | }; | |
1007 | ||
1008 | EffectTemplate = { | |
1009 | ||
1010 | }; | |
1011 | } | |
1012 | ||
1013 | abss = Instance.new("BillboardGui",Character) | |
1014 | abss.Size = UDim2.new(10,0,10,0) | |
1015 | abss.Enabled = false | |
1016 | imgl = Instance.new("ImageLabel",abss) | |
1017 | imgl.Position = UDim2.new(0,0,0,0) | |
1018 | imgl.Size = UDim2.new(1,0,1,0) | |
1019 | imgl.Image = "rbxassetid://711463989" | |
1020 | imgl.BackgroundTransparency = 1 | |
1021 | imgl.ImageColor3 = Color3.new(.9,0,0) | |
1022 | img2 = Instance.new("ImageLabel",abss) | |
1023 | img2.Position = UDim2.new(0,0,0,0) | |
1024 | img2.Size = UDim2.new(1,0,1,0) | |
1025 | img2.Image = "rbxassetid://711463989" | |
1026 | img2.BackgroundTransparency = 1 | |
1027 | img2.ImageColor3 = Color3.new(.9,0,0) | |
1028 | ||
1029 | function dmg(dude) | |
1030 | dude.Humanoid.PlatformStand = true | |
1031 | ||
1032 | local partasdeff = Instance.new("ParticleEmitter",dude.Torso) | |
1033 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1034 | partasdeff.LightEmission = .1 | |
1035 | partasdeff.Size = NumberSequence.new(0.2) | |
1036 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
1037 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1038 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1039 | partasdeff.Transparency = bbb | |
1040 | partasdeff.Size = aaa | |
1041 | partasdeff.ZOffset = .9 | |
1042 | partasdeff.Acceleration = Vector3.new(0, -2, 0) | |
1043 | partasdeff.LockedToPart = false | |
1044 | partasdeff.EmissionDirection = "Back" | |
1045 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
1046 | partasdeff.Rate = 1000 | |
1047 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
1048 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
1049 | partasdeff.Speed = NumberRange.new(10) | |
1050 | partasdeff.VelocitySpread = 20 | |
1051 | partasdeff.Enabled=true | |
1052 | local bgf = Instance.new("BodyGyro",dude.Head) | |
1053 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
1054 | local val = Instance.new("BoolValue",dude) | |
1055 | val.Name = "IsHit" | |
1056 | for i = 1, 6 do | |
1057 | local blo = Instance.new("Part",game.Workspace) | |
1058 | blo.Size = Vector3.new(.6,.2,.6) | |
1059 | blo.Material = "SmoothPlastic" | |
1060 | blo.BrickColor = BrickColor.new("Crimson") | |
1061 | blo.Position = dude.Head.Position | |
1062 | blo.CFrame = dude.Head.CFrame | |
1063 | game:GetService("Debris"):AddItem(blo,30) | |
1064 | end | |
1065 | local ds = coroutine.wrap(function() | |
1066 | wait(.2) | |
1067 | dude.Torso:BreakJoints() | |
1068 | partasdeff.Enabled=false | |
1069 | wait(2) | |
1070 | partasdeff:Remove() | |
1071 | end) | |
1072 | ds() | |
1073 | end | |
1074 | ||
1075 | function attackone() | |
1076 | attack = true | |
1077 | Humanoid.WalkSpeed = 0 | |
1078 | for i = 0, 3, 0.1 do | |
1079 | swait() | |
1080 | PlayAnimationFromTable({ | |
1081 | CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1082 | CFrame.new(-0.00189219415, 1.50098944, -0.129972562, 0.0201512501, 0.0765038878, -0.996864021, 0.0566192083, 0.995383799, 0.0775336027, 0.998202145, -0.0580037907, 0.0157258138) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1083 | CFrame.new(2.01696348, 0.389823437, -0.060955409, -0.000397110358, -0.999624014, -0.0274192169, 0.00981300231, 0.0274140034, -0.999576092, 0.999951839, -0.0006660074, 0.00979842618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1084 | CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1085 | CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1086 | CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1087 | }, .1, false) | |
1088 | moter.C0 = clerp(moter.C0, CFrame.new(0.011209704, -1.63770795, -0.318749219, -0.0172089972, -4.19956632e-06, -0.999852002, 0.999852061, 8.99471343e-06, -0.0172089972, 9.06549394e-06, -1.00000012, 4.04558159e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1089 | end | |
1090 | Effects.Block.Create(BrickColor.new("New Yeller"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
1091 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5) | |
1092 | dmg(targetted) | |
1093 | for i = 0, 1, 0.1 do | |
1094 | swait() | |
1095 | PlayAnimationFromTable({ | |
1096 | CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1097 | CFrame.new(-0.0879677385, 1.49240708, -0.127746791, 0.0201510563, -0.100440688, -0.994740784, 0.0566197298, 0.99346137, -0.0991647467, 0.998197258, -0.0543235913, 0.0257058665) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1098 | CFrame.new(2.03539443, 0.729742587, 0.0108130341, -0.00389442407, -0.967803538, 0.251676887, 0.0148300035, -0.251707017, -0.967689872, 0.999882519, -3.62247229e-05, 0.0153327845) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1099 | CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1100 | CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1101 | CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1102 | }, .3, false) | |
1103 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112083517, -1.63770616, -0.318746239, -0.0172079317, -2.87033617e-06, -0.999851942, 0.999852002, 8.28504562e-06, -0.0172079336, 8.27014446e-06, -1.00000012, 2.72750913e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1104 | end | |
1105 | for i = 0, 2, 0.1 do | |
1106 | swait() | |
1107 | PlayAnimationFromTable({ | |
1108 | CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1109 | CFrame.new(-0.00189219415, 1.50098944, -0.129972562, 0.0201512501, 0.0765038878, -0.996864021, 0.0566192083, 0.995383799, 0.0775336027, 0.998202145, -0.0580037907, 0.0157258138) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1110 | CFrame.new(2.01696348, 0.389823437, -0.060955409, -0.000397110358, -0.999624014, -0.0274192169, 0.00981300231, 0.0274140034, -0.999576092, 0.999951839, -0.0006660074, 0.00979842618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1111 | CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1112 | CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1113 | CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1114 | }, .3, false) | |
1115 | moter.C0 = clerp(moter.C0, CFrame.new(0.011209704, -1.63770795, -0.318749219, -0.0172089972, -4.19956632e-06, -0.999852002, 0.999852061, 8.99471343e-06, -0.0172089972, 9.06549394e-06, -1.00000012, 4.04558159e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1116 | end | |
1117 | Humanoid.WalkSpeed = 8 | |
1118 | attack = false | |
1119 | end | |
1120 | local Grabbed = false | |
1121 | ||
1122 | function hedshoot() | |
1123 | attack = true | |
1124 | ||
1125 | local GGyro = Instance.new("BodyPosition") | |
1126 | local WhoTfDidYouGrab = nil | |
1127 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 10)) do | |
1128 | if v:FindFirstChild('Torso') then | |
1129 | Grabbed = true | |
1130 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=260430060", v.Torso, 1, .8) | |
1131 | WhoTfDidYouGrab = v | |
1132 | end | |
1133 | end | |
1134 | Effects.Wave.Create(BrickColor.new("White"), RootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(90)), .5, .5, .5, 1, .2, 1, 0.07) | |
1135 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=200632211", RootPart, 1.5, .5) | |
1136 | for i = 0, 1, 0.1 do | |
1137 | swait() | |
1138 | if Grabbed == true then | |
1139 | WhoTfDidYouGrab.Humanoid.PlatformStand = true | |
1140 | GGyro.position = Partss.Position | |
1141 | GGyro.Parent = WhoTfDidYouGrab.Head | |
1142 | WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0) | |
1143 | end | |
1144 | PlayAnimationFromTable({ | |
1145 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1146 | CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1147 | CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1148 | CFrame.new(-1.66092706, 0.266950369, 2.51774691e-06, 0.876968205, 0.480548859, -2.5331974e-06, -0.480548888, 0.876968026, -7.03267551e-06, -1.13248825e-06, 7.38352537e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1149 | CFrame.new(0.146832585, -1.7542398, 0.105335698, 0.266426086, 0.491796821, -0.828946948, 0.0135936746, 0.8580302, 0.513420045, 0.96375972, -0.148056909, 0.221916124) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1150 | CFrame.new(-1.09110987, -1.74702656, 0.342675447, 0.765578806, 0.632523358, 0.117487431, -0.642276406, 0.740949869, 0.196148768, 0.0370163769, -0.225626737, 0.973510265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1151 | }, .3, false) | |
1152 | RootPart.Velocity = RootPart.CFrame.lookVector * 90 | |
1153 | ||
1154 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1155 | end | |
1156 | if Grabbed == true then | |
1157 | Humanoid.WalkSpeed = 0 | |
1158 | for i = 0, 2, 0.1 do | |
1159 | swait() | |
1160 | if Grabbed == true then | |
1161 | WhoTfDidYouGrab.Humanoid.PlatformStand = true | |
1162 | GGyro.position = Partss.Position | |
1163 | GGyro.Parent = WhoTfDidYouGrab.Head | |
1164 | WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0) | |
1165 | end | |
1166 | PlayAnimationFromTable({ | |
1167 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1168 | CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1169 | CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1170 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1171 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1172 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1173 | }, .3, false) | |
1174 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1175 | end | |
1176 | ||
1177 | ||
1178 | for i = 0, 2, 0.1 do | |
1179 | swait() | |
1180 | if Grabbed == true then | |
1181 | WhoTfDidYouGrab.Humanoid.PlatformStand = true | |
1182 | GGyro.position = Partss.Position | |
1183 | GGyro.Parent = WhoTfDidYouGrab.Head | |
1184 | WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0) | |
1185 | end | |
1186 | PlayAnimationFromTable({ | |
1187 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1188 | CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1189 | CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1190 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1191 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1192 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1193 | }, .1, false) | |
1194 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1195 | end | |
1196 | Effects.Block.Create(BrickColor.new("New Yeller"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
1197 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5) | |
1198 | dmg(WhoTfDidYouGrab) | |
1199 | WhoTfDidYouGrab.Head.Velocity = WhoTfDidYouGrab.Head.CFrame.lookVector * -60 | |
1200 | ||
1201 | for i = 0, 1, 0.1 do | |
1202 | swait() | |
1203 | PlayAnimationFromTable({ | |
1204 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1205 | CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1206 | CFrame.new(1.95760894, 1.20200562, -0.275867403, 0.278526366, -0.669772983, 0.688351095, 0.0506580099, -0.705469668, -0.706927419, 0.959091723, 0.23176837, -0.162562534) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1207 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1208 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1209 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1210 | }, .3, false) | |
1211 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932531, -1.63769579, -0.318755656, -0.0172050633, -1.61863863e-05, -0.999852121, 0.999851882, 5.15580177e-06, -0.017205067, 5.453825e-06, -1, 1.60960481e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1212 | end | |
1213 | for i = 0, 2.5, 0.1 do | |
1214 | swait() | |
1215 | PlayAnimationFromTable({ | |
1216 | CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1217 | CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1218 | CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1219 | CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1220 | CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1221 | CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1222 | }, .1, false) | |
1223 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1224 | end | |
1225 | end | |
1226 | GGyro.Parent = nil | |
1227 | attack = false | |
1228 | Grabbed = false | |
1229 | Humanoid.WalkSpeed = 8 | |
1230 | end | |
1231 | function TargetSelect(person) | |
1232 | local dd=coroutine.wrap(function() | |
1233 | if targetted ~= person then | |
1234 | targetted = person | |
1235 | img2.Size = UDim2.new(1,0,1,0) | |
1236 | img2.ImageTransparency = 0 | |
1237 | img2.Position = UDim2.new(0,0,0,0) | |
1238 | for i = 0, 2, 0.1 do | |
1239 | swait() | |
1240 | img2.Size = img2.Size + UDim2.new(.05,0,.05,0) | |
1241 | img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0) | |
1242 | img2.ImageTransparency = img2.ImageTransparency + 0.05 | |
1243 | end | |
1244 | end | |
1245 | end) | |
1246 | dd() | |
1247 | end | |
1248 | ||
1249 | function LockOn() | |
1250 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1251 | TargetSelect(Mouse.Target.Parent) | |
1252 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, .8) | |
1253 | end | |
1254 | end | |
1255 | ||
1256 | ||
1257 | function ofmoosic() -- 2 lazi hoh | |
1258 | delays = true | |
1259 | while wait() and kkk and kkk.Volume >= 0.02 do | |
1260 | kkk.Volume = kkk.Volume - 0.05 | |
1261 | end | |
1262 | wait(0.1) | |
1263 | kkk.Pitch = 0 | |
1264 | kkk.PlaybackSpeed = 0 | |
1265 | play = false | |
1266 | delays = false | |
1267 | end | |
1268 | function onmoosic() | |
1269 | delays = true | |
1270 | kkk.Pitch = .6 | |
1271 | kkk.PlaybackSpeed = .6 | |
1272 | while wait() and kkk and kkk.Volume <= 1.5 do | |
1273 | kkk.Volume = kkk.Volume + 0.05 | |
1274 | end | |
1275 | wait(0.1) | |
1276 | play = true | |
1277 | delays = false | |
1278 | end | |
1279 | Mouse.Button1Down:connect(function() | |
1280 | if attack == false and targetted ~= nil then | |
1281 | attackone() | |
1282 | end | |
1283 | end) | |
1284 | ||
1285 | Mouse.KeyDown:connect(function(k) | |
1286 | k = k:lower() | |
1287 | if attack == false and k == 'q' then | |
1288 | LockOn() | |
1289 | end | |
1290 | if k == 'z' and attack == false then | |
1291 | hedshoot() | |
1292 | elseif k == 'm' and play == true and delays == false then | |
1293 | ofmoosic() | |
1294 | elseif k == 'm' and play == false and delays == false then | |
1295 | onmoosic() | |
1296 | end | |
1297 | end) | |
1298 | ||
1299 | kkk = Instance.new("Sound",Character) | |
1300 | kkk.Volume = 1.5 | |
1301 | kkk.PlaybackSpeed = 1 | |
1302 | kkk.Pitch = .6 | |
1303 | kkk.SoundId = "rbxassetid://583415095" | |
1304 | kkk:Play() | |
1305 | kkk.Name = "a" | |
1306 | kkk.Looped = true | |
1307 | ||
1308 | ||
1309 | ||
1310 | while true do | |
1311 | swait() | |
1312 | for i, v in pairs(Character:GetChildren()) do | |
1313 | if v:IsA("Part") then | |
1314 | v.Material = "SmoothPlastic" | |
1315 | elseif v:IsA("Accessory") then | |
1316 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1317 | end | |
1318 | end | |
1319 | while true do | |
1320 | swait() | |
1321 | Character.Humanoid.MaxHealth = math.huge | |
1322 | Character.Humanoid.Health = math.huge | |
1323 | imgl.Rotation = imgl.Rotation + 3 | |
1324 | img2.Rotation = img2.Rotation + 3 | |
1325 | if targetted ~= nil then | |
1326 | abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1327 | abss.Enabled = true | |
1328 | elseif targetted == nil then | |
1329 | abss.Adornee = nil | |
1330 | abss.Enabled = false | |
1331 | end | |
1332 | while true and imgl.Rotation >= 360 do | |
1333 | imgl.Rotation = 0 | |
1334 | img2.Rotation = 0 | |
1335 | end | |
1336 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1337 | velocity = RootPart.Velocity.y | |
1338 | sine = sine + change | |
1339 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1340 | if RootPart.Velocity.y > 1 and hit == nil then | |
1341 | Anim = "Jump" | |
1342 | if attack == false then | |
1343 | PlayAnimationFromTable({ | |
1344 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1345 | CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1346 | CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1347 | CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1348 | CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1349 | CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1350 | }, .3, false) | |
1351 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111988392, -1.63769972, -0.318750381, -0.0172117054, 0, -0.999851942, 0.999851942, 0, -0.0172116756, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1352 | end | |
1353 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1354 | Anim = "Fall" | |
1355 | if attack == false then | |
1356 | PlayAnimationFromTable({ | |
1357 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1358 | CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1359 | CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1360 | CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1361 | CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1362 | CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1363 | }, .3, false) | |
1364 | moter.C0 = clerp(moter.C0, CFrame.new(0.0112015437, -1.63769758, -0.318750381, -0.0172110498, 0, -0.999851942, 0.999851942, 0, -0.0172110498, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1365 | end | |
1366 | elseif Torsovelocity < 1 and hit ~= nil then | |
1367 | Anim = "Idle" | |
1368 | if attack == false then | |
1369 | change = 1 | |
1370 | PlayAnimationFromTable({ | |
1371 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1372 | CFrame.new(-0.0575585738, 1.52553558, -0.218724757, 0.985934377, -0.143356442, -0.0859283879, 0.166522771, 0.886584163, 0.431554198, 0.0143168001, -0.439792335, 0.897985697) * CFrame.new(0, -.05- .05 * math.cos((sine) / 55), 0- .05 * math.cos((sine) / 55)) * CFrame.Angles(math.rad(0 - 5 * math.cos((sine) / 55)), 0, 0), | |
1373 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0- 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0- 0.05 * math.cos((sine) / 45)), | |
1374 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0+ 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0+ 0.05 * math.cos((sine) / 45)), | |
1375 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1376 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1377 | }, .3, false) | |
1378 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1379 | end | |
1380 | elseif Torsovelocity > 2 and hit ~= nil then | |
1381 | Anim = "Walk" | |
1382 | if attack == false then | |
1383 | PlayAnimationFromTable({ | |
1384 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
1385 | CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1386 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1387 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1388 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1389 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1390 | }, .3, false) | |
1391 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1392 | end | |
1393 | end | |
1394 | if 0 < #Effects then | |
1395 | for e = 1, #Effects do | |
1396 | if Effects[e] ~= nil then | |
1397 | local Thing = Effects[e] | |
1398 | if Thing ~= nil then | |
1399 | local Part = Thing[1] | |
1400 | local Mode = Thing[2] | |
1401 | local Delay = Thing[3] | |
1402 | local IncX = Thing[4] | |
1403 | local IncY = Thing[5] | |
1404 | local IncZ = Thing[6] | |
1405 | if Thing[2] == "Shoot" then | |
1406 | local Look = Thing[1] | |
1407 | local move = 30 | |
1408 | if Thing[8] == 3 then | |
1409 | move = 10 | |
1410 | end | |
1411 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
1412 | if Thing[10] ~= nil then | |
1413 | da = pos | |
1414 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
1415 | cfa = CFrame.new(Thing[4], pos) | |
1416 | tehCF = cfa:lerp(cf2, 0.2) | |
1417 | Thing[1] = tehCF.lookVector | |
1418 | end | |
1419 | local mag = (Thing[4] - pos).magnitude | |
1420 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
1421 | if Thing[8] == 2 then | |
1422 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
1423 | end | |
1424 | Thing[4] = Thing[4] + Look * move | |
1425 | Thing[3] = Thing[3] - 1 | |
1426 | if 2 < Thing[5] then | |
1427 | Thing[5] = Thing[5] - 0.3 | |
1428 | Thing[6] = Thing[6] - 0.3 | |
1429 | end | |
1430 | if hit ~= nil then | |
1431 | Thing[3] = 0 | |
1432 | if Thing[8] == 1 or Thing[8] == 3 then | |
1433 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
1434 | else | |
1435 | if Thing[8] == 2 then | |
1436 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
1437 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then | |
1438 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1439 | ref.Anchored = true | |
1440 | ref.CFrame = CFrame.new(pos) | |
1441 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) | |
1442 | game:GetService("Debris"):AddItem(ref, 0.2) | |
1443 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
1444 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1) | |
1445 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
1446 | end | |
1447 | end | |
1448 | end | |
1449 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1450 | ref.Anchored = true | |
1451 | ref.CFrame = CFrame.new(pos) | |
1452 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
1453 | game:GetService("Debris"):AddItem(ref, 1) | |
1454 | end | |
1455 | if Thing[3] <= 0 then | |
1456 | table.remove(Effects, e) | |
1457 | end | |
1458 | end | |
1459 | do | |
1460 | do | |
1461 | if Thing[2] == "FireWave" then | |
1462 | if Thing[3] <= Thing[4] then | |
1463 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
1464 | Thing[3] = Thing[3] + 1 | |
1465 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
1466 | else | |
1467 | Part.Parent = nil | |
1468 | table.remove(Effects, e) | |
1469 | end | |
1470 | end | |
1471 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
1472 | if Thing[1].Transparency <= 1 then | |
1473 | if Thing[2] == "Block1" then | |
1474 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1475 | Mesh = Thing[7] | |
1476 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1477 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1478 | else | |
1479 | if Thing[2] == "Block2" then | |
1480 | Thing[1].CFrame = Thing[1].CFrame | |
1481 | Mesh = Thing[7] | |
1482 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1483 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1484 | else | |
1485 | if Thing[2] == "Fire" then | |
1486 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
1487 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1488 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1489 | else | |
1490 | if Thing[2] == "Cylinder" then | |
1491 | Mesh = Thing[7] | |
1492 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1493 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1494 | else | |
1495 | if Thing[2] == "Blood" then | |
1496 | Mesh = Thing[7] | |
1497 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
1498 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1499 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1500 | else | |
1501 | if Thing[2] == "Elec" then | |
1502 | Mesh = Thing[10] | |
1503 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1504 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1505 | else | |
1506 | if Thing[2] == "Disappear" then | |
1507 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1508 | else | |
1509 | if Thing[2] == "Shatter" then | |
1510 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1511 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1512 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1513 | Thing[6] = Thing[6] + Thing[5] | |
1514 | end | |
1515 | end | |
1516 | end | |
1517 | end | |
1518 | end | |
1519 | end | |
1520 | end | |
1521 | end | |
1522 | else | |
1523 | Part.Parent = nil | |
1524 | table.remove(Effects, e) | |
1525 | end | |
1526 | end | |
1527 | end | |
1528 | end | |
1529 | end | |
1530 | end | |
1531 | end | |
1532 | end | |
1533 | end | |
1534 | end |