SHOW:
|
|
- or go back to the newest paste.
1 | warn'Lunarist Loaded.' | |
2 | warn'Do not leak this, or else.' | |
3 | --- its obs smooth af do not touch | |
4 | - | plr = game.Players.LocalPlayer |
4 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
5 | local Player,game,owner = owner,game | |
6 | local RealPlayer = Player | |
7 | do | |
8 | print("FE Compatibility code by Mokiros") | |
9 | local rp = RealPlayer | |
10 | script.Parent = rp.Character | |
11 | ||
12 | --RemoteEvent for communicating | |
13 | local Event = Instance.new("RemoteEvent") | |
14 | Event.Name = "UserInput_Event" | |
15 | ||
16 | --Fake event to make stuff like Mouse.KeyDown work | |
17 | local function fakeEvent() | |
18 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
19 | t.connect = t.Connect | |
20 | return t | |
21 | end | |
22 | ||
23 | --Creating fake input objects with fake variables | |
24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
27 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
28 | end} | |
29 | --Merged 2 functions into one by checking amount of arguments | |
30 | CAS.UnbindAction = CAS.BindAction | |
31 | ||
32 | --This function will trigger the events that have been :Connect()'ed | |
33 | local function te(self,ev,...) | |
34 | local t = m[ev] | |
35 | if t and t._fakeEvent then | |
36 | for _,f in pairs(t.Functions) do | |
37 | f(...) | |
38 | end | |
39 | end | |
40 | end | |
41 | m.TrigEvent = te | |
42 | UIS.TrigEvent = te | |
43 | ||
44 | Event.OnServerEvent:Connect(function(plr,io) | |
45 | if plr~=rp then return end | |
46 | m.Target = io.Target | |
47 | m.Hit = io.Hit | |
48 | if not io.isMouse then | |
49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | ||
68 | local Mouse = Player:GetMouse() | |
69 | local UIS = game:GetService("UserInputService") | |
70 | local input = function(io,a) | |
71 | if a then return end | |
72 | --Since InputObject is a client-side instance, we create and pass table instead | |
73 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
74 | end | |
75 | UIS.InputBegan:Connect(input) | |
76 | UIS.InputEnded:Connect(input) | |
77 | ||
78 | local h,t | |
79 | --Give the server mouse data 30 times every second, but only if the values changed | |
80 | --If player is not moving their mouse, client won't fire events | |
81 | while wait(1/30) do | |
82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
83 | h,t=Mouse.Hit,Mouse.Target | |
84 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
85 | end | |
86 | end]==],Player.Character) | |
87 | ||
88 | ----Sandboxed game object that allows the usage of client-side methods and services | |
89 | --Real game object | |
90 | local _rg = game | |
91 | ||
92 | --Metatable for fake service | |
93 | local fsmt = { | |
94 | __index = function(self,k) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then return s[k] end | |
97 | end, | |
98 | __newindex = function(self,k,v) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then s[k]=v end | |
101 | end, | |
102 | __call = function(self,...) | |
103 | local s = rawget(self,"_RealService") | |
104 | if s then return s(...) end | |
105 | end | |
106 | } | |
107 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
109 | return setmetatable(t,fsmt) | |
110 | end | |
111 | ||
112 | --Fake game object | |
113 | local g = { | |
114 | GetService = function(self,s) | |
115 | return self[s] | |
116 | end, | |
117 | Players = FakeService({ | |
118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
119 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
122 | } | |
123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
124 | g.service = g.GetService | |
125 | ||
126 | g.RunService = FakeService({ | |
127 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
128 | BindToRenderStep = function(self,name,_,fun) | |
129 | ||
130 | end, | |
131 | UnbindFromRenderStep = function(self,name) | |
132 | self._btrs[name]:Disconnect() | |
133 | end, | |
134 | },"RunService") | |
135 | ||
136 | setmetatable(g,{ | |
137 | __index=function(self,s) | |
138 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
139 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
140 | end, | |
141 | __newindex = fsmt.__newindex, | |
142 | __call = fsmt.__call | |
143 | }) | |
144 | --Changing owner to fake player object to support owner:GetMouse() | |
145 | game,owner = g,g.Players.LocalPlayer | |
146 | end | |
147 | ||
148 | ||
149 | Player = owner | |
150 | plr = Player | |
151 | char = plr.Character | |
152 | hum = char.Humanoid | |
153 | local cam = game.Workspace.CurrentCamera | |
154 | t = char.Torso | |
155 | h = char.Head | |
156 | ra = char["Right Arm"] | |
157 | la = char["Left Arm"] | |
158 | rl = char["Right Leg"] | |
159 | ll = char["Left Leg"] | |
160 | tors = char.Torso | |
161 | lleg = char["Left Leg"] | |
162 | root = char.HumanoidRootPart | |
163 | hed = char.Head | |
164 | rleg = char["Right Leg"] | |
165 | rarm = char["Right Arm"] | |
166 | larm = char["Left Arm"] | |
167 | vt = Vector3.new | |
168 | bc = BrickColor.new | |
169 | br = BrickColor.random | |
170 | it = Instance.new | |
171 | cf = CFrame.new | |
172 | ||
173 | local sick = Instance.new("Sound",Character) | |
174 | sick.SoundId = "rbxassetid://1351017179" | |
175 | sick.Looped = true | |
176 | sick.Pitch = 1 | |
177 | sick.Volume = 1 | |
178 | sick:Play() | |
179 | ||
180 | function CameraShake(Times, Power) | |
181 | coroutine.resume(coroutine.create(function() | |
182 | FV = Instance.new("BoolValue", Character) | |
183 | FV.Name = "CameraShake" | |
184 | for ShakeNum=1,Times do | |
185 | swait() | |
186 | local ef=Power | |
187 | if ef>=1 then | |
188 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
189 | else | |
190 | ef=Power*10 | |
191 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
192 | end | |
193 | end | |
194 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
195 | FV:Destroy() | |
196 | end)) | |
197 | end | |
198 | ||
199 | CamShake=function(Part,Distan,Power,Times) | |
200 | local de=Part.Position | |
201 | for i,v in pairs(workspace:children()) do | |
202 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
203 | for _,c in pairs(v:children()) do | |
204 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
205 | local Noob=v.Humanoid | |
206 | if Noob~=nil then | |
207 | if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then | |
208 | --[[local ss=script.CamShake:clone() | |
209 | ss.Parent=Noob | |
210 | ss.Power.Value=Power | |
211 | ss.Times.Value=Times | |
212 | ss.Disabled=false]] | |
213 | CameraShake(Times, Power) | |
214 | end | |
215 | end | |
216 | end | |
217 | end | |
218 | end | |
219 | end | |
220 | end | |
221 | ||
222 | function chatfunc(text,color) | |
223 | local chat = coroutine.wrap(function() | |
224 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
225 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
226 | end | |
227 | local naeeym2 = Instance.new("BillboardGui",Character) | |
228 | naeeym2.Size = UDim2.new(0,100,0,40) | |
229 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
230 | naeeym2.Adornee = Character.Head | |
231 | naeeym2.Name = "TalkingBillBoard" | |
232 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
233 | tecks2.BackgroundTransparency = 1 | |
234 | tecks2.BorderSizePixel = 0 | |
235 | tecks2.Text = "" | |
236 | tecks2.Font = "SciFi" | |
237 | tecks2.TextSize = 30 | |
238 | tecks2.TextStrokeTransparency = 0 | |
239 | tecks2.TextColor3 = color | |
240 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
241 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
242 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
243 | tecks3.BackgroundTransparency = 1 | |
244 | tecks3.BorderSizePixel = 0 | |
245 | tecks3.Text = "" | |
246 | tecks3.Font = "SciFi" | |
247 | tecks3.TextSize = 30 | |
248 | tecks3.TextStrokeTransparency = 0 | |
249 | tecks3.TextColor3 = Color3.new(0,0,0) | |
250 | tecks3.TextStrokeColor3 = color | |
251 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
252 | for i = 1,string.len(text),1 do | |
253 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
254 | tecks2.Text = string.sub(text,1,i) | |
255 | tecks3.Text = string.sub(text,1,i) | |
256 | wait(0.01) | |
257 | end | |
258 | wait(1) | |
259 | local randomrot = math.random(1,2) | |
260 | if randomrot == 1 then | |
261 | for i = 1, 50 do | |
262 | swait() | |
263 | tecks2.Rotation = tecks2.Rotation - .75 | |
264 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
265 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
266 | tecks3.Rotation = tecks2.Rotation + .75 | |
267 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
268 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
269 | end | |
270 | elseif randomrot == 2 then | |
271 | for i = 1, 50 do | |
272 | swait() | |
273 | tecks2.Rotation = tecks2.Rotation + .75 | |
274 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
275 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
276 | tecks3.Rotation = tecks2.Rotation - .75 | |
277 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
278 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
279 | end | |
280 | end | |
281 | naeeym2:Destroy() | |
282 | end) | |
283 | chat() | |
284 | end | |
285 | ||
286 | ||
287 | local Create = LoadLibrary("RbxUtility").Create | |
288 | ||
289 | CFuncs = { | |
290 | ["Part"] = { | |
291 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
292 | local Part = Create("Part"){ | |
293 | Parent = Parent, | |
294 | Reflectance = Reflectance, | |
295 | Transparency = Transparency, | |
296 | CanCollide = false, | |
297 | Locked = true, | |
298 | BrickColor = BrickColor.new(tostring(BColor)), | |
299 | Name = Name, | |
300 | Size = Size, | |
301 | Material = Material, | |
302 | } | |
303 | RemoveOutlines(Part) | |
304 | return Part | |
305 | end; | |
306 | }; | |
307 | ||
308 | ["Mesh"] = { | |
309 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
310 | local Msh = Create(Mesh){ | |
311 | Parent = Part, | |
312 | Offset = OffSet, | |
313 | Scale = Scale, | |
314 | } | |
315 | if Mesh == "SpecialMesh" then | |
316 | Msh.MeshType = MeshType | |
317 | Msh.MeshId = MeshId | |
318 | end | |
319 | return Msh | |
320 | end; | |
321 | }; | |
322 | ||
323 | ["Mesh"] = { | |
324 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
325 | local Msh = Create(Mesh){ | |
326 | Parent = Part, | |
327 | Offset = OffSet, | |
328 | Scale = Scale, | |
329 | } | |
330 | if Mesh == "SpecialMesh" then | |
331 | Msh.MeshType = MeshType | |
332 | Msh.MeshId = MeshId | |
333 | end | |
334 | return Msh | |
335 | end; | |
336 | }; | |
337 | ||
338 | ["Weld"] = { | |
339 | Create = function(Parent, Part0, Part1, C0, C1) | |
340 | local Weld = Create("Weld"){ | |
341 | Parent = Parent, | |
342 | Part0 = Part0, | |
343 | Part1 = Part1, | |
344 | C0 = C0, | |
345 | C1 = C1, | |
346 | } | |
347 | return Weld | |
348 | end; | |
349 | }; | |
350 | ||
351 | ["Sound"] = { | |
352 | Create = function(id, par, vol, pit) | |
353 | coroutine.resume(coroutine.create(function() | |
354 | local S = Create("Sound"){ | |
355 | Volume = vol, | |
356 | Pitch = pit or 1, | |
357 | SoundId = id, | |
358 | Parent = par or workspace, | |
359 | } | |
360 | wait() | |
361 | S:play() | |
362 | game:GetService("Debris"):AddItem(S, 10) | |
363 | end)) | |
364 | end; | |
365 | }; | |
366 | ||
367 | ["LongSound"] = { | |
368 | Create = function(id, par, vol, pit) | |
369 | coroutine.resume(coroutine.create(function() | |
370 | local S = Create("Sound"){ | |
371 | Volume = vol, | |
372 | Pitch = pit or 1, | |
373 | SoundId = id, | |
374 | Parent = par or workspace, | |
375 | } | |
376 | wait() | |
377 | S:play() | |
378 | game:GetService("Debris"):AddItem(S, 30) | |
379 | end)) | |
380 | end; | |
381 | }; | |
382 | ||
383 | ["ParticleEmitter"] = { | |
384 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
385 | local fp = Create("ParticleEmitter"){ | |
386 | Parent = Parent, | |
387 | Color = ColorSequence.new(Color1, Color2), | |
388 | LightEmission = LightEmission, | |
389 | Size = Size, | |
390 | Texture = Texture, | |
391 | Transparency = Transparency, | |
392 | ZOffset = ZOffset, | |
393 | Acceleration = Accel, | |
394 | Drag = Drag, | |
395 | LockedToPart = LockedToPart, | |
396 | VelocityInheritance = VelocityInheritance, | |
397 | EmissionDirection = EmissionDirection, | |
398 | Enabled = Enabled, | |
399 | Lifetime = LifeTime, | |
400 | Rate = Rate, | |
401 | Rotation = Rotation, | |
402 | RotSpeed = RotSpeed, | |
403 | Speed = Speed, | |
404 | VelocitySpread = VelocitySpread, | |
405 | } | |
406 | return fp | |
407 | end; | |
408 | }; | |
409 | ||
410 | CreateTemplate = { | |
411 | ||
412 | }; | |
413 | } | |
414 | ||
415 | ||
416 | ||
417 | New = function(Object, Parent, Name, Data) | |
418 | local Object = Instance.new(Object) | |
419 | for Index, Value in pairs(Data or {}) do | |
420 | Object[Index] = Value | |
421 | end | |
422 | Object.Parent = Parent | |
423 | Object.Name = Name | |
424 | return Object | |
425 | end | |
426 | local halocolor = BrickColor.new("Pastel light blue") | |
427 | local halocolor2 = BrickColor.new("Cool yellow") | |
428 | local starcolor = BrickColor.new("Bright yellow") | |
429 | local lunacolor = BrickColor.new("Navy blue") | |
430 | local lunacolor2 = BrickColor.new("Bright blue") | |
431 | local wepcolor = BrickColor.new("Really black") | |
432 | local m = Instance.new("Model",char) | |
433 | ||
434 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
435 | local p = Instance.new("Part") | |
436 | p.TopSurface = 0 | |
437 | p.BottomSurface = 0 | |
438 | p.Parent = parent | |
439 | p.Size = Vector3.new(1,1,1) | |
440 | p.Transparency = transparency | |
441 | p.Reflectance = reflectance | |
442 | p.CanCollide = false | |
443 | p.Locked = true | |
444 | p.BrickColor = brickcolor | |
445 | p.Material = material | |
446 | return p | |
447 | end | |
448 | ||
449 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
450 | local mesh = Instance.new("SpecialMesh",parent) | |
451 | mesh.MeshType = meshtype | |
452 | mesh.Scale = Vector3.new(x1,y1,z1) | |
453 | return mesh | |
454 | end | |
455 | ||
456 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
457 | local mesh = Instance.new("SpecialMesh",parent) | |
458 | mesh.MeshType = "FileMesh" | |
459 | mesh.MeshId = meshid | |
460 | mesh.Scale = Vector3.new(x1,y1,z1) | |
461 | return mesh | |
462 | end | |
463 | ||
464 | ||
465 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
466 | local mesh = Instance.new("SpecialMesh",parent) | |
467 | mesh.MeshType = "FileMesh" | |
468 | mesh.MeshId = meshid | |
469 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
470 | mesh.Scale = Vector3.new(x1,y1,z1) | |
471 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
472 | return mesh | |
473 | end | |
474 | ||
475 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
476 | local weld = Instance.new("Weld") | |
477 | weld.Parent = parent | |
478 | weld.Part0 = part0 | |
479 | weld.Part1 = part1 | |
480 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
481 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
482 | return weld | |
483 | end | |
484 | ||
485 | ||
486 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
487 | CreateWeld(sorb,rarm,sorb,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
488 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
489 | CreateWeld(sorb2,larm,sorb2,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
490 | ||
491 | local ga = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
492 | CreateMesh(ga,"Brick",1.05,1.55,1.05) | |
493 | CreateWeld(ga,rarm,ga,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
494 | ||
495 | gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
496 | CreateMesh(gal,"Brick",1.075,1.575,0.75) | |
497 | CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
498 | ||
499 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
500 | CreateMesh(gal,"Brick",1.0725,1.6,0.775) | |
501 | CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
502 | ||
503 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
504 | CreateMesh(gal,"Brick",0.1,1.25,0.1) | |
505 | CreateWeld(gal,rarm,gal,-0.495,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
506 | ||
507 | local gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
508 | CreateMesh(gal,"Brick",1.07,1.625,0.8) | |
509 | CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
510 | ||
511 | ||
512 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
513 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
514 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
515 | ||
516 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
517 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
518 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
519 | ||
520 | ||
521 | ||
522 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
523 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
524 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
525 | ||
526 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
527 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
528 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
529 | ||
530 | local gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2) | |
531 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
532 | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
533 | ||
534 | local star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
535 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
536 | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
537 | local starl = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
538 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
539 | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
540 | ||
541 | local stara = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
542 | CreateSpecialMesh(stara,"http://www.roblox.com/asset/?id=45428961",1.5,2.45,1.5) | |
543 | CreateWeld(stara,rarm,stara,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
544 | local stara1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
545 | CreateSpecialMesh(stara1,"http://www.roblox.com/asset/?id=45428961",1.65,2.425,1.65) | |
546 | CreateWeld(stara1,rarm,stara1,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
547 | ||
548 | local starb = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
549 | CreateSpecialMesh(starb,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25) | |
550 | CreateWeld(starb,rarm,starb,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
551 | local starb1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
552 | CreateSpecialMesh(starb1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5) | |
553 | CreateWeld(starb1,rarm,starb1,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
554 | ||
555 | local starc = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
556 | CreateSpecialMesh(starc,"http://www.roblox.com/asset/?id=45428961",1,2.45,1) | |
557 | CreateWeld(starc,rarm,starc,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
558 | local starc1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
559 | CreateSpecialMesh(starc1,"http://www.roblox.com/asset/?id=45428961",1.15,2.425,1.15) | |
560 | CreateWeld(starc1,rarm,starc1,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
561 | ||
562 | ||
563 | -- First | |
564 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
565 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
566 | CreateWeld(dot,rarm,dot,-0.495,0,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
567 | ||
568 | ||
569 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
570 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
571 | CreateWeld(dot,rarm,dot,-0.495,0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
572 | ||
573 | ||
574 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
575 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
576 | CreateWeld(dot,rarm,dot,-0.495,0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
577 | ||
578 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
579 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
580 | CreateWeld(dot,rarm,dot,-0.495,-0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
581 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
582 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
583 | CreateWeld(dot,rarm,dot,-0.495,-0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
584 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
585 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
586 | CreateWeld(dot,rarm,dot,-0.495,-0.6,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
587 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
588 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
589 | CreateWeld(dot,rarm,dot,-0.495,-0.8,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
590 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
591 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
592 | CreateWeld(dot,rarm,dot,-0.495,-1,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
593 | ||
594 | --- Second | |
595 | ||
596 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
597 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
598 | CreateWeld(dot,rarm,dot,-0.495,0,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
599 | ||
600 | ||
601 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
602 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
603 | CreateWeld(dot,rarm,dot,-0.495,0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
604 | ||
605 | ||
606 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
607 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
608 | CreateWeld(dot,rarm,dot,-0.495,0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
609 | ||
610 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
611 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
612 | CreateWeld(dot,rarm,dot,-0.495,-0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
613 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
614 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
615 | CreateWeld(dot,rarm,dot,-0.495,-0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
616 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
617 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
618 | CreateWeld(dot,rarm,dot,-0.495,-0.6,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
619 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
620 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
621 | CreateWeld(dot,rarm,dot,-0.495,-0.8,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
622 | dot = CreateParta(m,0,0,"Neon",halocolor) | |
623 | CreateMesh(dot,"Sphere",0.1,0.1,0.1) | |
624 | CreateWeld(dot,rarm,dot,-0.495,-1,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
625 | ||
626 | -- Third section A | |
627 | ||
628 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
629 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
630 | CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
631 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
632 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
633 | CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
634 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
635 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
636 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
637 | ||
638 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
639 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
640 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
641 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
642 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
643 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
644 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
645 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
646 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
647 | ||
648 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
649 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
650 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
651 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
652 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
653 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
654 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
655 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
656 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
657 | ||
658 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
659 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
660 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
661 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
662 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
663 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
664 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
665 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
666 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
667 | ||
668 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
669 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
670 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
671 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
672 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
673 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
674 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
675 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
676 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
677 | ||
678 | -- Third section B | |
679 | ||
680 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
681 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
682 | CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
683 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
684 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
685 | CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
686 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
687 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
688 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
689 | ||
690 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
691 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
692 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
693 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
694 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
695 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
696 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
697 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
698 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
699 | ||
700 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
701 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
702 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
703 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
704 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
705 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
706 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
707 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
708 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
709 | ||
710 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
711 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
712 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
713 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
714 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
715 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
716 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
717 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
718 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
719 | ||
720 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
721 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
722 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
723 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
724 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
725 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
726 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
727 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
728 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
729 | ||
730 | ||
731 | ||
732 | ---Lines | |
733 | ||
734 | ||
735 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
736 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
737 | CreateWeld(gal,rarm,gal,0,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
738 | ||
739 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
740 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
741 | CreateWeld(gal,rarm,gal,0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
742 | ||
743 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
744 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
745 | CreateWeld(gal,rarm,gal,-0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
746 | ||
747 | gala = CreateParta(m,0,0,"Neon",halocolor) | |
748 | CreateMesh(gala,"Brick",0.65,0.65,0.075) | |
749 | CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
750 | ||
751 | gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
752 | CreateMesh(gala,"Brick",0.595,0.595,0.095) | |
753 | CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
754 | ||
755 | ||
756 | starz = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
757 | CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25) | |
758 | CreateWeld(starz,rarm,starz,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
759 | starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
760 | CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5) | |
761 | CreateWeld(starz1,rarm,starz1,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
762 | ||
763 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
764 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
765 | CreateWeld(dotbo,rarm,dotbo,0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
766 | ||
767 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
768 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
769 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
770 | ||
771 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
772 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
773 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
774 | ||
775 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
776 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
777 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
778 | ||
779 | ----------- | |
780 | ||
781 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
782 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
783 | CreateWeld(dotbo,rarm,dotbo,-0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
784 | ||
785 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
786 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
787 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
788 | ||
789 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
790 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
791 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
792 | ||
793 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
794 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
795 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
796 | ||
797 | -- Second Lines | |
798 | ||
799 | ||
800 | ||
801 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
802 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
803 | CreateWeld(gal,rarm,gal,0,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
804 | ||
805 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
806 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
807 | CreateWeld(gal,rarm,gal,0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
808 | ||
809 | gal = CreateParta(m,0,0,"Neon",halocolor) | |
810 | CreateMesh(gal,"Brick",0.05,0.95,0.075) | |
811 | CreateWeld(gal,rarm,gal,-0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
812 | ||
813 | gala = CreateParta(m,0,0,"Neon",halocolor) | |
814 | CreateMesh(gala,"Brick",0.65,0.65,0.075) | |
815 | CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
816 | ||
817 | gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
818 | CreateMesh(gala,"Brick",0.595,0.595,0.095) | |
819 | CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
820 | ||
821 | starz = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
822 | CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25) | |
823 | CreateWeld(starz,rarm,starz,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
824 | starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
825 | CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5) | |
826 | CreateWeld(starz1,rarm,starz1,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
827 | ||
828 | ||
829 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
830 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
831 | CreateWeld(dotbo,rarm,dotbo,0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
832 | ||
833 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
834 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
835 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
836 | ||
837 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
838 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
839 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
840 | ||
841 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
842 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
843 | CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
844 | ||
845 | ----------- | |
846 | ||
847 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
848 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
849 | CreateWeld(dotbo,rarm,dotbo,-0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
850 | ||
851 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
852 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
853 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
854 | ||
855 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
856 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
857 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
858 | ||
859 | dotbo = CreateParta(m,0,0,"Neon",halocolor) | |
860 | CreateMesh(dotbo,"Sphere",0.1,0.1,0.15) | |
861 | CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
862 | ||
863 | ||
864 | ||
865 | ---- HERES THE RING | |
866 | ||
867 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
868 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
869 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
870 | ||
871 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
872 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
873 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
874 | ||
875 | ||
876 | ||
877 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
878 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
879 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
880 | ||
881 | gan = CreateParta(m,0,0,"Neon",halocolor2) | |
882 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
883 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
884 | ||
885 | gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2) | |
886 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
887 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
888 | ||
889 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
890 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
891 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
892 | starl = CreateParta(m,0,0,"SmoothPlastic",starcolor) | |
893 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
894 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
895 | ||
896 | -- S section A | |
897 | ||
898 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
899 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
900 | CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
901 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
902 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
903 | CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
904 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
905 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
906 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
907 | ||
908 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
909 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
910 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
911 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
912 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
913 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
914 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
915 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
916 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
917 | ||
918 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
919 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
920 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
921 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
922 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
923 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
924 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
925 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
926 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
927 | ||
928 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
929 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
930 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
931 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
932 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
933 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
934 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
935 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
936 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
937 | ||
938 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
939 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
940 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
941 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
942 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
943 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
944 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
945 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
946 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
947 | ||
948 | -- S section B | |
949 | ||
950 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
951 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
952 | CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
953 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
954 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
955 | CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
956 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
957 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
958 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
959 | ||
960 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
961 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
962 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
963 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
964 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
965 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
966 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
967 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
968 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
969 | ||
970 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
971 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
972 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
973 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
974 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
975 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
976 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
977 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
978 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
979 | ||
980 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
981 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
982 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
983 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
984 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
985 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
986 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
987 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
988 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
989 | ||
990 | dotsec = CreateParta(m,0,0,"Neon",halocolor) | |
991 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
992 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
993 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
994 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
995 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
996 | dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor) | |
997 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
998 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
999 | ||
1000 | ------ | |
1001 | ||
1002 | ||
1003 | function RemoveOutlines(part) | |
1004 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1005 | end | |
1006 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1007 | local Part = Create("Part")({ | |
1008 | Parent = Parent, | |
1009 | Reflectance = Reflectance, | |
1010 | Transparency = Transparency, | |
1011 | CanCollide = false, | |
1012 | Locked = true, | |
1013 | BrickColor = BrickColor.new(tostring(BColor)), | |
1014 | Name = Name, | |
1015 | Size = Size, | |
1016 | Material = Material | |
1017 | }) | |
1018 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1019 | RemoveOutlines(Part) | |
1020 | return Part | |
1021 | end | |
1022 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1023 | local Msh = Create(Mesh)({ | |
1024 | Parent = Part, | |
1025 | Offset = OffSet, | |
1026 | Scale = Scale | |
1027 | }) | |
1028 | if Mesh == "SpecialMesh" then | |
1029 | Msh.MeshType = MeshType | |
1030 | Msh.MeshId = MeshId | |
1031 | end | |
1032 | return Msh | |
1033 | end | |
1034 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1035 | local Weld = Create("Weld")({ | |
1036 | Parent = Parent, | |
1037 | Part0 = Part0, | |
1038 | Part1 = Part1, | |
1039 | C0 = C0, | |
1040 | C1 = C1 | |
1041 | }) | |
1042 | return Weld | |
1043 | end | |
1044 | ||
1045 | Player=game:GetService("Players").LocalPlayer | |
1046 | Character=Player.Character | |
1047 | PlayerGui=Player.PlayerGui | |
1048 | Backpack=Player.Backpack | |
1049 | Torso=Character.Torso | |
1050 | Head=Character.Head | |
1051 | Humanoid=Character.Humanoid | |
1052 | m=Instance.new('Model',Character) | |
1053 | LeftArm=Character["Left Arm"] | |
1054 | LeftLeg=Character["Left Leg"] | |
1055 | RightArm=Character["Right Arm"] | |
1056 | RightLeg=Character["Right Leg"] | |
1057 | LS=Torso["Left Shoulder"] | |
1058 | LH=Torso["Left Hip"] | |
1059 | RS=Torso["Right Shoulder"] | |
1060 | RH=Torso["Right Hip"] | |
1061 | Face = Head.face | |
1062 | Neck=Torso.Neck | |
1063 | it=Instance.new | |
1064 | attacktype=1 | |
1065 | vt=Vector3.new | |
1066 | cf=CFrame.new | |
1067 | euler=CFrame.fromEulerAnglesXYZ | |
1068 | angles=CFrame.Angles | |
1069 | cloaked=false | |
1070 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1071 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1072 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1073 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1074 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1075 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1076 | RootPart=Character.HumanoidRootPart | |
1077 | RootJoint=RootPart.RootJoint | |
1078 | RootCF=euler(-1.57,0,3.14) | |
1079 | attack = false | |
1080 | attackdebounce = false | |
1081 | deb=false | |
1082 | equipped=true | |
1083 | hand=false | |
1084 | MMouse=nil | |
1085 | combo=0 | |
1086 | mana=0 | |
1087 | trispeed=.2 | |
1088 | attackmode='none' | |
1089 | local idle=0 | |
1090 | local Anim="Idle" | |
1091 | local Effects={} | |
1092 | local gun=false | |
1093 | local shoot=false | |
1094 | local sine = 0 | |
1095 | local change = 1 | |
1096 | player=nil | |
1097 | ||
1098 | mouse=Player:GetMouse() | |
1099 | --save shoulders | |
1100 | RSH, LSH=nil, nil | |
1101 | --welds | |
1102 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1103 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1104 | LH=Torso["Left Hip"] | |
1105 | RH=Torso["Right Hip"] | |
1106 | TorsoColor=Torso.BrickColor | |
1107 | function NoOutline(Part) | |
1108 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1109 | end | |
1110 | player=Player | |
1111 | ch=Character | |
1112 | RSH=ch.Torso["Right Shoulder"] | |
1113 | LSH=ch.Torso["Left Shoulder"] | |
1114 | -- | |
1115 | RSH.Parent=nil | |
1116 | LSH.Parent=nil | |
1117 | -- | |
1118 | RW.Name="Right Shoulder" | |
1119 | RW.Part0=ch.Torso | |
1120 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1121 | RW.C1=cf(0, 0.5, 0) | |
1122 | RW.Part1=ch["Right Arm"] | |
1123 | RW.Parent=ch.Torso | |
1124 | -- | |
1125 | LW.Name="Left Shoulder" | |
1126 | LW.Part0=ch.Torso | |
1127 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1128 | LW.C1=cf(0, 0.5, 0) | |
1129 | LW.Part1=ch["Left Arm"] | |
1130 | LW.Parent=ch.Torso | |
1131 | ||
1132 | local Stats=Instance.new("BoolValue") | |
1133 | Stats.Name="Stats" | |
1134 | Stats.Parent=Character | |
1135 | local Atk=Instance.new("NumberValue") | |
1136 | Atk.Name="Damage" | |
1137 | Atk.Parent=Stats | |
1138 | Atk.Value=1 | |
1139 | local Def=Instance.new("NumberValue") | |
1140 | Def.Name="Defense" | |
1141 | Def.Parent=Stats | |
1142 | Def.Value=1 | |
1143 | local Speed=Instance.new("NumberValue") | |
1144 | Speed.Name="Speed" | |
1145 | Speed.Parent=Stats | |
1146 | Speed.Value=1 | |
1147 | local Mvmt=Instance.new("NumberValue") | |
1148 | Mvmt.Name="Movement" | |
1149 | Mvmt.Parent=Stats | |
1150 | Mvmt.Value=1 | |
1151 | ||
1152 | local donum=0 | |
1153 | ||
1154 | ||
1155 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1156 | local fp=it("Part") | |
1157 | fp.formFactor=formfactor | |
1158 | fp.Parent=parent | |
1159 | fp.Reflectance=reflectance | |
1160 | fp.Transparency=transparency | |
1161 | fp.CanCollide=false | |
1162 | fp.Locked=true | |
1163 | fp.BrickColor=brickcolor | |
1164 | fp.Name=name | |
1165 | fp.Size=size | |
1166 | fp.Position=Torso.Position | |
1167 | NoOutline(fp) | |
1168 | fp.Material="SmoothPlastic" | |
1169 | fp:BreakJoints() | |
1170 | return fp | |
1171 | end | |
1172 | ||
1173 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1174 | local mesh=it(Mesh) | |
1175 | mesh.Parent=part | |
1176 | if Mesh=="SpecialMesh" then | |
1177 | mesh.MeshType=meshtype | |
1178 | if meshid~="nil" then | |
1179 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1180 | end | |
1181 | end | |
1182 | mesh.Offset=offset | |
1183 | mesh.Scale=scale | |
1184 | return mesh | |
1185 | end | |
1186 | ||
1187 | function weld(parent,part0,part1,c0) | |
1188 | local weld=it("Weld") | |
1189 | weld.Parent=parent | |
1190 | weld.Part0=part0 | |
1191 | weld.Part1=part1 | |
1192 | weld.C0=c0 | |
1193 | return weld | |
1194 | end | |
1195 | ||
1196 | local Color1=Torso.BrickColor | |
1197 | ||
1198 | local bodvel=Instance.new("BodyVelocity") | |
1199 | local bg=Instance.new("BodyGyro") | |
1200 | ||
1201 | function swait(num) | |
1202 | if num==0 or num==nil then | |
1203 | game:service'RunService'.Stepped:wait(0) | |
1204 | else | |
1205 | for i=0,num do | |
1206 | game:service'RunService'.Stepped:wait(0) | |
1207 | end | |
1208 | end | |
1209 | end | |
1210 | ||
1211 | ||
1212 | so = function(id,par,vol,pit) | |
1213 | coroutine.resume(coroutine.create(function() | |
1214 | local sou = Instance.new("Sound",par or workspace) | |
1215 | sou.Volume=vol | |
1216 | sou.Pitch=pit or 1 | |
1217 | sou.SoundId=id | |
1218 | swait() | |
1219 | sou:play() | |
1220 | game:GetService("Debris"):AddItem(sou,6) | |
1221 | end)) | |
1222 | end | |
1223 | ||
1224 | function clerp(a,b,t) | |
1225 | local qa = {QuaternionFromCFrame(a)} | |
1226 | local qb = {QuaternionFromCFrame(b)} | |
1227 | local ax, ay, az = a.x, a.y, a.z | |
1228 | local bx, by, bz = b.x, b.y, b.z | |
1229 | local _t = 1-t | |
1230 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1231 | end | |
1232 | ||
1233 | function QuaternionFromCFrame(cf) | |
1234 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1235 | local trace = m00 + m11 + m22 | |
1236 | if trace > 0 then | |
1237 | local s = math.sqrt(1 + trace) | |
1238 | local recip = 0.5/s | |
1239 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1240 | else | |
1241 | local i = 0 | |
1242 | if m11 > m00 then | |
1243 | i = 1 | |
1244 | end | |
1245 | if m22 > (i == 0 and m00 or m11) then | |
1246 | i = 2 | |
1247 | end | |
1248 | if i == 0 then | |
1249 | local s = math.sqrt(m00-m11-m22+1) | |
1250 | local recip = 0.5/s | |
1251 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1252 | elseif i == 1 then | |
1253 | local s = math.sqrt(m11-m22-m00+1) | |
1254 | local recip = 0.5/s | |
1255 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1256 | elseif i == 2 then | |
1257 | local s = math.sqrt(m22-m00-m11+1) | |
1258 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1259 | end | |
1260 | end | |
1261 | end | |
1262 | ||
1263 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1264 | local xs, ys, zs = x + x, y + y, z + z | |
1265 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1266 | local xx = x*xs | |
1267 | local xy = x*ys | |
1268 | local xz = x*zs | |
1269 | local yy = y*ys | |
1270 | local yz = y*zs | |
1271 | local zz = z*zs | |
1272 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
1273 | end | |
1274 | ||
1275 | function QuaternionSlerp(a, b, t) | |
1276 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1277 | local startInterp, finishInterp; | |
1278 | if cosTheta >= 0.0001 then | |
1279 | if (1 - cosTheta) > 0.0001 then | |
1280 | local theta = math.acos(cosTheta) | |
1281 | local invSinTheta = 1/math.sin(theta) | |
1282 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1283 | finishInterp = math.sin(t*theta)*invSinTheta | |
1284 | else | |
1285 | startInterp = 1-t | |
1286 | finishInterp = t | |
1287 | end | |
1288 | else | |
1289 | if (1+cosTheta) > 0.0001 then | |
1290 | local theta = math.acos(-cosTheta) | |
1291 | local invSinTheta = 1/math.sin(theta) | |
1292 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1293 | finishInterp = math.sin(t*theta)*invSinTheta | |
1294 | else | |
1295 | startInterp = t-1 | |
1296 | finishInterp = t | |
1297 | end | |
1298 | end | |
1299 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
1300 | end | |
1301 | ||
1302 | local function CFrameFromTopBack(at, top, back) | |
1303 | local right = top:Cross(back) | |
1304 | return CFrame.new(at.x, at.y, at.z, | |
1305 | right.x, top.x, back.x, | |
1306 | right.y, top.y, back.y, | |
1307 | right.z, top.z, back.z) | |
1308 | end | |
1309 | ||
1310 | function Triangle(a, b, c) | |
1311 | local edg1 = (c-a):Dot((b-a).unit) | |
1312 | local edg2 = (a-b):Dot((c-b).unit) | |
1313 | local edg3 = (b-c):Dot((a-c).unit) | |
1314 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1315 | a, b, c = a, b, c | |
1316 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1317 | a, b, c = b, c, a | |
1318 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1319 | a, b, c = c, a, b | |
1320 | else | |
1321 | assert(false, "unreachable") | |
1322 | end | |
1323 | ||
1324 | local len1 = (c-a):Dot((b-a).unit) | |
1325 | local len2 = (b-a).magnitude - len1 | |
1326 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1327 | ||
1328 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1329 | ||
1330 | local list = {} | |
1331 | ||
1332 | if len1 > 0.01 then | |
1333 | local w1 = Instance.new('WedgePart', m) | |
1334 | game:GetService("Debris"):AddItem(w1,5) | |
1335 | w1.Material = "SmoothPlastic" | |
1336 | w1.FormFactor = 'Custom' | |
1337 | w1.BrickColor = BrickColor.new("Really red") | |
1338 | w1.Transparency = 0 | |
1339 | w1.Reflectance = 0 | |
1340 | w1.Material = "SmoothPlastic" | |
1341 | w1.CanCollide = false | |
1342 | local l1 = Instance.new("PointLight",w1) | |
1343 | l1.Color = Color3.new(170,0,0) | |
1344 | NoOutline(w1) | |
1345 | local sz = Vector3.new(0.2, width, len1) | |
1346 | w1.Size = sz | |
1347 | local sp = Instance.new("SpecialMesh",w1) | |
1348 | sp.MeshType = "Wedge" | |
1349 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1350 | w1:BreakJoints() | |
1351 | w1.Anchored = true | |
1352 | w1.Parent = workspace | |
1353 | w1.Transparency = 0.7 | |
1354 | table.insert(Effects,{w1,"Disappear",.01}) | |
1355 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1356 | table.insert(list,w1) | |
1357 | end | |
1358 | ||
1359 | if len2 > 0.01 then | |
1360 | local w2 = Instance.new('WedgePart', m) | |
1361 | game:GetService("Debris"):AddItem(w2,5) | |
1362 | w2.Material = "SmoothPlastic" | |
1363 | w2.FormFactor = 'Custom' | |
1364 | w2.BrickColor = BrickColor.new("Really red") | |
1365 | w2.Transparency = 0 | |
1366 | w2.Reflectance = 0 | |
1367 | w2.Material = "SmoothPlastic" | |
1368 | w2.CanCollide = false | |
1369 | local l2 = Instance.new("PointLight",w2) | |
1370 | l2.Color = Color3.new(170,0,0) | |
1371 | NoOutline(w2) | |
1372 | local sz = Vector3.new(0.2, width, len2) | |
1373 | w2.Size = sz | |
1374 | local sp = Instance.new("SpecialMesh",w2) | |
1375 | sp.MeshType = "Wedge" | |
1376 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1377 | w2:BreakJoints() | |
1378 | w2.Anchored = true | |
1379 | w2.Parent = workspace | |
1380 | w2.Transparency = 0.7 | |
1381 | table.insert(Effects,{w2,"Disappear",.01}) | |
1382 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1383 | table.insert(list,w2) | |
1384 | end | |
1385 | return unpack(list) | |
1386 | end | |
1387 | ||
1388 | ||
1389 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1390 | if hit.Parent == nil then | |
1391 | return | |
1392 | end | |
1393 | local h = hit.Parent:FindFirstChild("Humanoid") | |
1394 | for _, v in pairs(hit.Parent:children()) do | |
1395 | if v:IsA("Humanoid") then | |
1396 | h = v | |
1397 | end | |
1398 | end | |
1399 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1400 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1401 | return | |
1402 | end | |
1403 | local c = Create("ObjectValue")({ | |
1404 | Name = "creator", | |
1405 | Value = game:service("Players").LocalPlayer, | |
1406 | Parent = h | |
1407 | }) | |
1408 | game:GetService("Debris"):AddItem(c, 0.5) | |
1409 | if HitSound ~= nil and HitPitch ~= nil then | |
1410 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1411 | end | |
1412 | local Damage = math.random(minim, maxim) | |
1413 | local blocked = false | |
1414 | local block = hit.Parent:findFirstChild("Block") | |
1415 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1416 | blocked = true | |
1417 | block.Value = block.Value - 1 | |
1418 | print(block.Value) | |
1419 | end | |
1420 | if blocked == false then | |
1421 | HitHealth = h.Health | |
1422 | h.Health = h.Health - Damage | |
1423 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1424 | print("gained kill") | |
1425 | end | |
1426 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1427 | else | |
1428 | h.Health = h.Health - Damage / 2 | |
1429 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1430 | end | |
1431 | if Type == "Knockdown" then | |
1432 | local hum = hit.Parent.Humanoid | |
1433 | hum.PlatformStand = true | |
1434 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1435 | swait(1) | |
1436 | HHumanoid.PlatformStand = false | |
1437 | end), hum) | |
1438 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1439 | local bodvol = Create("BodyVelocity")({ | |
1440 | velocity = angle * knockback, | |
1441 | P = 5000, | |
1442 | maxForce = Vector3.new(8000, 8000, 8000), | |
1443 | Parent = hit | |
1444 | }) | |
1445 | local rl = Create("BodyAngularVelocity")({ | |
1446 | P = 3000, | |
1447 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1448 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1449 | Parent = hit | |
1450 | }) | |
1451 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1452 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1453 | elseif Type == "Normal" then | |
1454 | local vp = Create("BodyVelocity")({ | |
1455 | P = 500, | |
1456 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1457 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1458 | }) | |
1459 | if knockback > 0 then | |
1460 | vp.Parent = hit.Parent.Torso | |
1461 | end | |
1462 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1463 | elseif Type == "Up" then | |
1464 | local bodyVelocity = Create("BodyVelocity")({ | |
1465 | velocity = Vector3.new(0, 20, 0), | |
1466 | P = 5000, | |
1467 | maxForce = Vector3.new(8000, 8000, 8000), | |
1468 | Parent = hit | |
1469 | }) | |
1470 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1471 | local bodyVelocity = Create("BodyVelocity")({ | |
1472 | velocity = Vector3.new(0, 20, 0), | |
1473 | P = 5000, | |
1474 | maxForce = Vector3.new(8000, 8000, 8000), | |
1475 | Parent = hit | |
1476 | }) | |
1477 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1478 | elseif Type == "Leech" then | |
1479 | local hum = hit.Parent.Humanoid | |
1480 | if hum ~= nil then | |
1481 | for i = 0, 2 do | |
1482 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1483 | end | |
1484 | Humanoid.Health = Humanoid.Health + 10 | |
1485 | end | |
1486 | elseif Type == "UpKnock" then | |
1487 | local hum = hit.Parent.Humanoid | |
1488 | hum.PlatformStand = true | |
1489 | if hum ~= nil then | |
1490 | hitr = true | |
1491 | end | |
1492 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1493 | swait(5) | |
1494 | HHumanoid.PlatformStand = false | |
1495 | hitr = false | |
1496 | end), hum) | |
1497 | local bodyVelocity = Create("BodyVelocity")({ | |
1498 | velocity = Vector3.new(0, 20, 0), | |
1499 | P = 5000, | |
1500 | maxForce = Vector3.new(8000, 8000, 8000), | |
1501 | Parent = hit | |
1502 | }) | |
1503 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1504 | local bodyVelocity = Create("BodyVelocity")({ | |
1505 | velocity = Vector3.new(0, 20, 0), | |
1506 | P = 5000, | |
1507 | maxForce = Vector3.new(8000, 8000, 8000), | |
1508 | Parent = hit | |
1509 | }) | |
1510 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1511 | elseif Type == "Snare" then | |
1512 | local bp = Create("BodyPosition")({ | |
1513 | P = 2000, | |
1514 | D = 100, | |
1515 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1516 | position = hit.Parent.Torso.Position, | |
1517 | Parent = hit.Parent.Torso | |
1518 | }) | |
1519 | game:GetService("Debris"):AddItem(bp, 1) | |
1520 | elseif Type == "Slashnare" then | |
1521 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07) | |
1522 | for i = 1, math.random(4, 5) do | |
1523 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1524 | end | |
1525 | local bp = Create("BodyPosition")({ | |
1526 | P = 2000, | |
1527 | D = 100, | |
1528 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1529 | position = hit.Parent.Torso.Position, | |
1530 | Parent = hit.Parent.Torso | |
1531 | }) | |
1532 | game:GetService("Debris"):AddItem(bp, 1) | |
1533 | elseif Type == "Spike" then | |
1534 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1535 | local bp = Create("BodyPosition")({ | |
1536 | P = 2000, | |
1537 | D = 100, | |
1538 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1539 | position = hit.Parent.Torso.Position, | |
1540 | Parent = hit.Parent.Torso | |
1541 | }) | |
1542 | game:GetService("Debris"):AddItem(bp, 1) | |
1543 | elseif Type == "Freeze" then | |
1544 | local BodPos = Create("BodyPosition")({ | |
1545 | P = 50000, | |
1546 | D = 1000, | |
1547 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1548 | position = hit.Parent.Torso.Position, | |
1549 | Parent = hit.Parent.Torso | |
1550 | }) | |
1551 | local BodGy = Create("BodyGyro")({ | |
1552 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1553 | P = 20000, | |
1554 | Parent = hit.Parent.Torso, | |
1555 | cframe = hit.Parent.Torso.CFrame | |
1556 | }) | |
1557 | hit.Parent.Torso.Anchored = true | |
1558 | coroutine.resume(coroutine.create(function(Part) | |
1559 | swait(1.5) | |
1560 | Part.Anchored = false | |
1561 | end), hit.Parent.Torso) | |
1562 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1563 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1564 | end | |
1565 | local debounce = Create("BoolValue")({ | |
1566 | Name = "DebounceHit", | |
1567 | Parent = hit.Parent, | |
1568 | Value = true | |
1569 | }) | |
1570 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1571 | c = Instance.new("ObjectValue") | |
1572 | c.Name = "creator" | |
1573 | c.Value = Player | |
1574 | c.Parent = h | |
1575 | game:GetService("Debris"):AddItem(c, 0.5) | |
1576 | end | |
1577 | end | |
1578 | function ShowDamage(Pos, Text, Time, Color) | |
1579 | local Rate = 0.03333333333333333 | |
1580 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1581 | local Text = Text or "" | |
1582 | local Time = Time or 2 | |
1583 | local Color = Color or Color3.new(1, 0, 1) | |
1584 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1585 | EffectPart.Anchored = true | |
1586 | local BillboardGui = Create("BillboardGui")({ | |
1587 | Size = UDim2.new(3, 0, 3, 0), | |
1588 | Adornee = EffectPart, | |
1589 | Parent = EffectPart | |
1590 | }) | |
1591 | local TextLabel = Create("TextLabel")({ | |
1592 | BackgroundTransparency = 1, | |
1593 | Size = UDim2.new(1, 0, 1, 0), | |
1594 | Text = Text, | |
1595 | TextColor3 = Color, | |
1596 | TextScaled = true, | |
1597 | Font = Enum.Font.ArialBold, | |
1598 | Parent = BillboardGui | |
1599 | }) | |
1600 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1601 | EffectPart.Parent = game:GetService("Workspace") | |
1602 | delay(0, function() | |
1603 | local Frames = Time / Rate | |
1604 | for Frame = 1, Frames do | |
1605 | wait(Rate) | |
1606 | local Percent = Frame / Frames | |
1607 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1608 | TextLabel.TextTransparency = Percent | |
1609 | end | |
1610 | if EffectPart and EffectPart.Parent then | |
1611 | EffectPart:Destroy() | |
1612 | end | |
1613 | end) | |
1614 | end | |
1615 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1616 | for _, c in pairs(workspace:children()) do | |
1617 | local hum = c:findFirstChild("Humanoid") | |
1618 | if hum ~= nil then | |
1619 | local head = c:findFirstChild("Torso") | |
1620 | if head ~= nil then | |
1621 | local targ = head.Position - Part.Position | |
1622 | local mag = targ.magnitude | |
1623 | if magni >= mag and c.Name ~= Player.Name then | |
1624 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1625 | end | |
1626 | end | |
1627 | end | |
1628 | end | |
1629 | end | |
1630 | ||
1631 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1632 | for _, c in pairs(workspace:children()) do | |
1633 | local hum = c:findFirstChild("Humanoid") | |
1634 | if hum ~= nil then | |
1635 | local head = c:findFirstChild("Torso") | |
1636 | if head ~= nil then | |
1637 | local targ = head.Position - Part.Position | |
1638 | local mag = targ.magnitude | |
1639 | if magni >= mag and c.Name ~= Player.Name then | |
1640 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1641 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1642 | end | |
1643 | end | |
1644 | end | |
1645 | end | |
1646 | end | |
1647 | ||
1648 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1649 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1650 | end | |
1651 | ||
1652 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1653 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1654 | prt.Anchored=true | |
1655 | prt.CFrame=cframe | |
1656 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1657 | --http://www.roblox.com/asset/?id=4770560 | |
1658 | game:GetService("Debris"):AddItem(prt,2) | |
1659 | CF=prt.CFrame | |
1660 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1661 | for i=0,1,0.2 do | |
1662 | wait() | |
1663 | Part.CFrame=CF*cf(0,0,-0.4) | |
1664 | end | |
1665 | for i=0,1,delay do | |
1666 | wait() | |
1667 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
1668 | Mesh.Scale=Mesh.Scale | |
1669 | end | |
1670 | for i=0,1,0.1 do | |
1671 | wait() | |
1672 | Part.Transparency=i | |
1673 | end | |
1674 | Part.Parent=nil | |
1675 | end),prt,msh,CF) | |
1676 | end | |
1677 | ||
1678 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1679 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1680 | prt.Anchored=true | |
1681 | prt.Material = "Neon" | |
1682 | prt.CFrame=cframe | |
1683 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1684 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1685 | game:GetService("Debris"):AddItem(prt,5) | |
1686 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1687 | for i=0,1,delay do | |
1688 | swait() | |
1689 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1690 | Part.Transparency=i | |
1691 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1692 | end | |
1693 | Part.Parent=nil | |
1694 | end),prt,msh) | |
1695 | end | |
1696 | ||
1697 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1698 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1699 | prt.Anchored=true | |
1700 | prt.Material = "Neon" | |
1701 | prt.CFrame=cframe | |
1702 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1703 | game:GetService("Debris"):AddItem(prt,5) | |
1704 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1705 | local rtype = rottype | |
1706 | for i=0,1,delay do | |
1707 | swait() | |
1708 | if rtype == 1 then | |
1709 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1710 | elseif rtype == 2 then | |
1711 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1712 | end | |
1713 | Part.Transparency=i | |
1714 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1715 | end | |
1716 | Part.Parent=nil | |
1717 | end),prt,msh) | |
1718 | end | |
1719 | ||
1720 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1721 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1722 | prt.Anchored=true | |
1723 | prt.CFrame=cframe | |
1724 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1725 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1726 | game:GetService("Debris"):AddItem(prt,5) | |
1727 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1728 | for i=0,1,delay do | |
1729 | wait() | |
1730 | Part.Transparency=i | |
1731 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1732 | end | |
1733 | Part.Parent=nil | |
1734 | end),prt,msh) | |
1735 | end | |
1736 | ||
1737 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1738 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1739 | prt.Anchored=true | |
1740 | prt.Material = "Neon" | |
1741 | prt.CFrame=cframe | |
1742 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1743 | game:GetService("Debris"):AddItem(prt,5) | |
1744 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1745 | local rtype = rottype | |
1746 | for i=0,1,delay do | |
1747 | swait() | |
1748 | if rtype == 1 then | |
1749 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1750 | elseif rtype == 2 then | |
1751 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1752 | end | |
1753 | Part.Transparency=i | |
1754 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1755 | end | |
1756 | Part.Parent=nil | |
1757 | end),prt,msh) | |
1758 | end | |
1759 | ||
1760 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1761 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1762 | prt.Anchored=true | |
1763 | prt.Material = "Neon" | |
1764 | prt.CFrame=cframe | |
1765 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1766 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1767 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1768 | game:GetService("Debris"):AddItem(prt,5) | |
1769 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1770 | local rtype = rottype | |
1771 | for i=0,1,delay do | |
1772 | swait() | |
1773 | if rtype == 1 then | |
1774 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1775 | elseif rtype == 2 then | |
1776 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1777 | end | |
1778 | dec.Transparency=i | |
1779 | dec2.Transparency=i | |
1780 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1781 | end | |
1782 | Part.Parent=nil | |
1783 | end),prt,msh) | |
1784 | end | |
1785 | ||
1786 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1787 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1788 | prt.Anchored=true | |
1789 | prt.Material = "Neon" | |
1790 | prt.CFrame=cframe | |
1791 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1792 | game:GetService("Debris"):AddItem(prt,5) | |
1793 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1794 | local rtype = rottype | |
1795 | for i=0,1,delay do | |
1796 | swait() | |
1797 | if rtype == 1 then | |
1798 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1799 | elseif rtype == 2 then | |
1800 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1801 | end | |
1802 | prt.Transparency=i | |
1803 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1804 | end | |
1805 | Part.Parent=nil | |
1806 | end),prt,msh) | |
1807 | end | |
1808 | ||
1809 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
1810 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1811 | prt.Anchored=true | |
1812 | prt.Material = "Neon" | |
1813 | prt.CFrame=cframe | |
1814 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
1815 | game:GetService("Debris"):AddItem(prt,5) | |
1816 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1817 | local rtype = rottype | |
1818 | for i=0,1,delay do | |
1819 | swait() | |
1820 | if rtype == 1 then | |
1821 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
1822 | elseif rtype == 2 then | |
1823 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
1824 | end | |
1825 | prt.Transparency=i | |
1826 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
1827 | end | |
1828 | Part.Parent=nil | |
1829 | end),prt,msh) | |
1830 | end | |
1831 | ||
1832 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
1833 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1834 | prt.Anchored=true | |
1835 | prt.Material = "Neon" | |
1836 | prt.CFrame=cframe | |
1837 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1838 | game:GetService("Debris"):AddItem(prt,5) | |
1839 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1840 | local rtype = rottype | |
1841 | for i=0,1,delay do | |
1842 | swait() | |
1843 | if rtype == 1 then | |
1844 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1845 | elseif rtype == 2 then | |
1846 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1847 | end | |
1848 | prt.Transparency=i | |
1849 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1850 | end | |
1851 | Part.Parent=nil | |
1852 | end),prt,msh) | |
1853 | end | |
1854 | ||
1855 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1856 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1857 | prt.Anchored=true | |
1858 | prt.Material = "Neon" | |
1859 | prt.CFrame=cframe | |
1860 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1861 | game:GetService("Debris"):AddItem(prt,5) | |
1862 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1863 | local rtype = rottype | |
1864 | for i=0,1,delay do | |
1865 | swait() | |
1866 | if rtype == 1 then | |
1867 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1868 | elseif rtype == 2 then | |
1869 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1870 | end | |
1871 | prt.Transparency=i | |
1872 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1873 | end | |
1874 | Part.Parent=nil | |
1875 | end),prt,msh) | |
1876 | end | |
1877 | ||
1878 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1879 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1880 | prt.Anchored=false | |
1881 | prt.CFrame=cframe | |
1882 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1883 | local wld=weld(prt,prt,Parent,cframe) | |
1884 | game:GetService("Debris"):AddItem(prt,5) | |
1885 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1886 | for i=0,1,delay do | |
1887 | wait() | |
1888 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
1889 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1890 | Part.Transparency=i | |
1891 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1892 | end | |
1893 | Part.Parent=nil | |
1894 | end),prt,msh,wld) | |
1895 | end | |
1896 | ||
1897 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1898 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1899 | prt.Anchored=false | |
1900 | prt.CFrame=cframe | |
1901 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1902 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
1903 | game:GetService("Debris"):AddItem(prt,5) | |
1904 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1905 | for i=0,1,delay do | |
1906 | wait() | |
1907 | Weld.C0=euler(i*20,0,0) | |
1908 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1909 | Part.Transparency=i | |
1910 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1911 | end | |
1912 | Part.Parent=nil | |
1913 | end),prt,msh,wld) | |
1914 | end | |
1915 | ||
1916 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1917 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1918 | prt.Anchored=true | |
1919 | prt.CFrame=cframe | |
1920 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1921 | game:GetService("Debris"):AddItem(prt,2) | |
1922 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1923 | for i=0,1,delay do | |
1924 | wait() | |
1925 | Part.CFrame=Part.CFrame | |
1926 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1927 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1928 | prt2.Anchored=true | |
1929 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1930 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
1931 | game:GetService("Debris"):AddItem(prt2,2) | |
1932 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1933 | for i=0,1,0.1 do | |
1934 | wait() | |
1935 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
1936 | end | |
1937 | Part.Parent=nil | |
1938 | end),prt2,msh2) | |
1939 | end | |
1940 | for i=0,1,delay*2 do | |
1941 | wait() | |
1942 | Part.CFrame=Part.CFrame | |
1943 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
1944 | end | |
1945 | Part.Parent=nil | |
1946 | end),prt,msh) | |
1947 | end | |
1948 | ||
1949 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1950 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1951 | prt.Anchored=true | |
1952 | prt.CFrame=cframe | |
1953 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1954 | game:GetService("Debris"):AddItem(prt,2) | |
1955 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1956 | for i=0,1,delay do | |
1957 | wait() | |
1958 | Part.CFrame=Part.CFrame | |
1959 | Part.Transparency=i | |
1960 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1961 | end | |
1962 | Part.Parent=nil | |
1963 | end),prt,msh) | |
1964 | end | |
1965 | ||
1966 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
1967 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1968 | prt.Anchored=true | |
1969 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1970 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1971 | game:GetService("Debris"):AddItem(prt,2) | |
1972 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1973 | CF=Part.CFrame | |
1974 | Numbb=0 | |
1975 | randnumb=math.random()/10 | |
1976 | rand1=math.random()/10 | |
1977 | for i=0,1,rand1 do | |
1978 | wait() | |
1979 | CF=CF*cf(0,math.random()/2,0) | |
1980 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1981 | Part.CFrame=CF*euler(Numbb,0,0) | |
1982 | Part.Transparency=i | |
1983 | Numbb=Numbb+randnumb | |
1984 | end | |
1985 | Part.Parent=nil | |
1986 | end),prt,CF,Numbb,randnumb) | |
1987 | end | |
1988 | ||
1989 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1990 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1991 | prt.Anchored=true | |
1992 | prt.CFrame=cframe | |
1993 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1994 | game:GetService("Debris"):AddItem(prt,5) | |
1995 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1996 | for i=0,1,delay do | |
1997 | wait() | |
1998 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
1999 | Part.Transparency=i | |
2000 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2001 | end | |
2002 | Part.Parent=nil | |
2003 | end),prt,msh) | |
2004 | end | |
2005 | ||
2006 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2007 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2008 | prt.Anchored=true | |
2009 | prt.CFrame=cframe | |
2010 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2011 | game:GetService("Debris"):AddItem(prt,2) | |
2012 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2013 | for i=0,1,delay do | |
2014 | wait() | |
2015 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2016 | Part.Transparency=i | |
2017 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2018 | end | |
2019 | Part.Parent=nil | |
2020 | end),prt,msh) | |
2021 | end | |
2022 | ||
2023 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2024 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2025 | prt.Anchored=true | |
2026 | prt.CFrame=cframe*cf(x,y,z) | |
2027 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2028 | game:GetService("Debris"):AddItem(prt,5) | |
2029 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2030 | local num=math.random() | |
2031 | local num2=math.random(-3,2)+math.random() | |
2032 | local numm=0 | |
2033 | for i=0,1,delay*2 do | |
2034 | swait() | |
2035 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2036 | Part.Transparency=i | |
2037 | numm=numm+0.01 | |
2038 | end | |
2039 | Part.Parent=nil | |
2040 | Mesh.Parent=nil | |
2041 | end),prt,msh,x,y,z) | |
2042 | end | |
2043 | ||
2044 | function dmgstart(dmg,what) | |
2045 | hitcon = what.Touched:connect(function(hit) | |
2046 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2047 | if hum and not hum:IsDescendantOf(Character) then | |
2048 | hum:TakeDamage(dmg) | |
2049 | end | |
2050 | end) | |
2051 | end | |
2052 | ||
2053 | function dmgstop() | |
2054 | hitcon:disconnect() | |
2055 | end | |
2056 | ||
2057 | function Cloak() | |
2058 | Face.Parent=nil | |
2059 | cloaked=true | |
2060 | for _,v in pairs(Torso.Parent:children()) do | |
2061 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2062 | coroutine.resume(coroutine.create(function() | |
2063 | for i=0,1,0.2 do | |
2064 | wait() | |
2065 | v.Transparency=i | |
2066 | end | |
2067 | v.Transparency=1 | |
2068 | end)) | |
2069 | end | |
2070 | if v.className=="Hat" then | |
2071 | hatp=v.Handle | |
2072 | coroutine.resume(coroutine.create(function(derp) | |
2073 | for i=0,1,0.2 do | |
2074 | wait() | |
2075 | derp.Transparency=i | |
2076 | end | |
2077 | derp.Transparency=1 | |
2078 | end),hatp) | |
2079 | end | |
2080 | end | |
2081 | for _,v in pairs(m:children()) do | |
2082 | if v.className=="Part" then | |
2083 | coroutine.resume(coroutine.create(function() | |
2084 | for i=0,1,0.2 do | |
2085 | wait() | |
2086 | v.Transparency=i | |
2087 | end | |
2088 | v.Transparency=1 | |
2089 | end)) | |
2090 | end | |
2091 | end | |
2092 | end | |
2093 | ||
2094 | function UnCloak() | |
2095 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
2096 | Face.Parent=Head | |
2097 | cloaked=false | |
2098 | for _,v in pairs(Torso.Parent:children()) do | |
2099 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2100 | coroutine.resume(coroutine.create(function() | |
2101 | for i=0,1,0.1 do | |
2102 | wait() | |
2103 | v.Transparency=v.Transparency-0.1 | |
2104 | end | |
2105 | v.Transparency=0 | |
2106 | end)) | |
2107 | end | |
2108 | if v.className=="Hat" then | |
2109 | hatp=v.Handle | |
2110 | coroutine.resume(coroutine.create(function(derp) | |
2111 | for i=0,1,0.1 do | |
2112 | wait() | |
2113 | derp.Transparency=derp.Transparency-0.1 | |
2114 | end | |
2115 | derp.Transparency=0 | |
2116 | end),hatp) | |
2117 | end | |
2118 | end | |
2119 | for _,v in pairs(m:children()) do | |
2120 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
2121 | coroutine.resume(coroutine.create(function() | |
2122 | for i=0,1,0.1 do | |
2123 | wait() | |
2124 | v.Transparency=v.Transparency-0.1 | |
2125 | end | |
2126 | v.Transparency=0 | |
2127 | end)) | |
2128 | v.Transparency=0 | |
2129 | end | |
2130 | end | |
2131 | end | |
2132 | ||
2133 | local origcolor = BrickColor.new("Pastel light blue") | |
2134 | ---- This section of explosions. | |
2135 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
2136 | local expart = Instance.new("Part",char) | |
2137 | local expart2 = Instance.new("Part",char) | |
2138 | local rin = Instance.new("Part",char) | |
2139 | local rin2 = Instance.new("Part",char) | |
2140 | local partMesh = Instance.new("SpecialMesh",expart) | |
2141 | partMesh.MeshType = "Sphere" | |
2142 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2143 | partMesh2.MeshType = "Sphere" | |
2144 | local partMesh3 = Instance.new("SpecialMesh",rin) | |
2145 | partMesh3.MeshType = "Brick" | |
2146 | local partMesh4 = Instance.new("SpecialMesh",rin2) | |
2147 | partMesh4.MeshType = "Brick" | |
2148 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch) | |
2149 | partMesh.Scale = vt(rad,rad,rad) | |
2150 | expart.Size = vt(1,1,1) | |
2151 | expart.Transparency = 0 | |
2152 | expart.Anchored = true | |
2153 | expart.Material = "Neon" | |
2154 | expart.BrickColor = bc("White") | |
2155 | expart.CFrame = par.CFrame | |
2156 | partMesh2.Scale = vt(rad,rad,rad) | |
2157 | expart2.Size = vt(1.15,1.15,1.15) | |
2158 | expart2.Transparency = 0.5 | |
2159 | expart2.Anchored = true | |
2160 | expart2.Material = "Neon" | |
2161 | expart2.BrickColor = par.BrickColor | |
2162 | expart2.CFrame = par.CFrame | |
2163 | rin.Size = vt(1.15,1.15,1.15) | |
2164 | rin.Transparency = 1 | |
2165 | rin.Anchored = true | |
2166 | rin.Material = "Neon" | |
2167 | rin.BrickColor = par.BrickColor | |
2168 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2169 | rin2.Size = vt(1.15,1.15,1.15) | |
2170 | rin2.Transparency = 1 | |
2171 | rin2.Anchored = true | |
2172 | rin2.Material = "Neon" | |
2173 | rin2.BrickColor = par.BrickColor | |
2174 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2175 | partMesh3.Scale = vt(0,1,0) | |
2176 | partMesh4.Scale = vt(0,1,0) | |
2177 | local dec2 = Instance.new("Decal", rin) | |
2178 | dec2.Face = "Top" | |
2179 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2180 | dec2.Parent = rin | |
2181 | local dec2b = dec2:Clone() | |
2182 | dec2b.Face = "Bottom" | |
2183 | dec2b.Parent = rin | |
2184 | ||
2185 | local dec2a = Instance.new("Decal", rin2) | |
2186 | dec2a.Face = "Top" | |
2187 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2188 | dec2a.Parent = rin2 | |
2189 | local dec2ab = dec2a:Clone() | |
2190 | dec2ab.Face = "Bottom" | |
2191 | dec2ab.Parent = rin2 | |
2192 | expart.CanCollide = false | |
2193 | expart2.CanCollide = false | |
2194 | rin.CanCollide = false | |
2195 | rin2.CanCollide = false | |
2196 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
2197 | local value = 1*rad/6.5 | |
2198 | for i = 0, 199 do | |
2199 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2200 | expart.CFrame = expart.CFrame | |
2201 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2202 | expart2.CFrame = expart.CFrame | |
2203 | value = value - 0.035*rad/30 | |
2204 | if value < 7.5 then | |
2205 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
2206 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
2207 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
2208 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
2209 | end | |
2210 | if value < 0 then | |
2211 | dec2.Transparency = dec2.Transparency + 0.025 | |
2212 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2213 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2214 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2215 | expart.Transparency = expart.Transparency + 0.025 | |
2216 | expart2.Transparency = expart2.Transparency + 0.025 | |
2217 | rin.Transparency = rin.Transparency + 0.025 | |
2218 | rin2.Transparency = rin2.Transparency + 0.025 | |
2219 | end | |
2220 | swait() | |
2221 | end | |
2222 | game:GetService("Debris"):AddItem(expart, 1) | |
2223 | game:GetService("Debris"):AddItem(expart2, 1) | |
2224 | game:GetService("Debris"):AddItem(rin, 1) | |
2225 | game:GetService("Debris"):AddItem(rin2, 1) | |
2226 | end | |
2227 | ||
2228 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
2229 | local expart = Instance.new("Part",char) | |
2230 | local expart2 = Instance.new("Part",char) | |
2231 | local partMesh = Instance.new("SpecialMesh",expart) | |
2232 | partMesh.MeshType = "Sphere" | |
2233 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2234 | partMesh2.MeshType = "Sphere" | |
2235 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch) | |
2236 | partMesh.Scale = vt(rad,rad,rad) | |
2237 | expart.Size = vt(1,1,1) | |
2238 | expart.Transparency = 0 | |
2239 | expart.Anchored = true | |
2240 | expart.Material = "Neon" | |
2241 | expart.BrickColor = bc("White") | |
2242 | expart.CFrame = par.CFrame | |
2243 | partMesh2.Scale = vt(rad,rad,rad) | |
2244 | expart2.Size = vt(1.15,1.15,1.15) | |
2245 | expart2.Transparency = 0.5 | |
2246 | expart2.Anchored = true | |
2247 | expart2.Material = "Neon" | |
2248 | expart2.BrickColor = par.BrickColor | |
2249 | expart2.CFrame = par.CFrame | |
2250 | expart.CanCollide = false | |
2251 | expart2.CanCollide = false | |
2252 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
2253 | local value = 1*rad/6.5 | |
2254 | for i = 0, 75 do | |
2255 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2256 | expart.CFrame = expart.CFrame | |
2257 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2258 | expart2.CFrame = expart.CFrame | |
2259 | value = value - 0.035*rad/5 | |
2260 | if value < 0 then | |
2261 | value = 0 | |
2262 | expart.Transparency = expart.Transparency + 0.05 | |
2263 | expart2.Transparency = expart2.Transparency + 0.05 | |
2264 | end | |
2265 | swait() | |
2266 | end | |
2267 | game:GetService("Debris"):AddItem(expart, 1) | |
2268 | game:GetService("Debris"):AddItem(expart2, 1) | |
2269 | end | |
2270 | ||
2271 | function AreaDanger(rad,par,mindam,maxdam) | |
2272 | local expart = Instance.new("Part",char) | |
2273 | local partMesh = Instance.new("SpecialMesh",expart) | |
2274 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2275 | partMesh.MeshType = "Sphere" | |
2276 | partMesh.Scale = vt(rad,rad,rad) | |
2277 | expart.Size = vt(1,1,1) | |
2278 | expart.Transparency = 0.5 | |
2279 | expart.Anchored = true | |
2280 | expart.Material = "Neon" | |
2281 | expart.CanCollide = false | |
2282 | expart.BrickColor = par.BrickColor | |
2283 | expart.CFrame = par.CFrame | |
2284 | local value = 1*rad/5 | |
2285 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
2286 | for i = 0, 14 do | |
2287 | wait() | |
2288 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2289 | expart.CFrame = expart.CFrame | |
2290 | value = value - 0.035*rad | |
2291 | if value < 0 then | |
2292 | value = 0 | |
2293 | end | |
2294 | end | |
2295 | wait(0.25) | |
2296 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1) | |
2297 | wait(0.5) | |
2298 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1) | |
2299 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75) | |
2300 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
2301 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
2302 | for i = 0, 14 do | |
2303 | wait() | |
2304 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2305 | expart.CFrame = expart.CFrame | |
2306 | value = value - 0.035*rad/2 | |
2307 | end | |
2308 | expart.Transparency = 1 | |
2309 | game:GetService("Debris"):AddItem(expart, 5) | |
2310 | end | |
2311 | ||
2312 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
2313 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2) | |
2314 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1) | |
2315 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1) | |
2316 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2317 | MagniDamageWithEffect(par, 253, 533,133, 0, "Normal") | |
2318 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
2319 | for i = 0, 24 do | |
2320 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
2321 | end | |
2322 | for i = 0, 24 do | |
2323 | local expart = Instance.new("Part",char) | |
2324 | expart.Transparency = 1 | |
2325 | expart.Anchored = true | |
2326 | expart.CanCollide = false | |
2327 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
2328 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2) | |
2329 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2330 | MagniDamage(expart, rad/2, mindam, maxdam, 20, "Normal") | |
2331 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
2332 | for i = 0, 9 do | |
2333 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
2334 | end | |
2335 | game:GetService("Debris"):AddItem(expart, 2) | |
2336 | wait(0.1) | |
2337 | end | |
2338 | end | |
2339 | ||
2340 | function EXterPlosion(par) | |
2341 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1) | |
2342 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85) | |
2343 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2) | |
2344 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2345 | MagniDamageWithEffect(par, 500, 830,933, 0, "Normal") | |
2346 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
2347 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
2348 | for i = 0, 24 do | |
2349 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
2350 | end | |
2351 | for i = 0, 24 do | |
2352 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
2353 | end | |
2354 | end | |
2355 | ---- | |
2356 | ||
2357 | ||
2358 | function ring(type,pos,scale,value) | |
2359 | local type = type | |
2360 | local rng = Instance.new("Part", char) | |
2361 | rng.Anchored = true | |
2362 | rng.BrickColor = origcolor | |
2363 | rng.CanCollide = false | |
2364 | rng.FormFactor = 3 | |
2365 | rng.Name = "Ring" | |
2366 | rng.Size = Vector3.new(1, 1, 1) | |
2367 | rng.Transparency = 0 | |
2368 | rng.TopSurface = 0 | |
2369 | rng.BottomSurface = 0 | |
2370 | rng.CFrame = pos | |
2371 | local rngm = Instance.new("SpecialMesh", rng) | |
2372 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2373 | rngm.Scale = scale | |
2374 | local scaler2 = 1 | |
2375 | if type == "Add" then | |
2376 | scaler2 = 1*value | |
2377 | elseif type == "Divide" then | |
2378 | scaler2 = 1/value | |
2379 | end | |
2380 | coroutine.resume(coroutine.create(function() | |
2381 | for i = 0,10,0.1 do | |
2382 | swait() | |
2383 | if type == "Add" then | |
2384 | scaler2 = scaler2 - 0.01*value | |
2385 | elseif type == "Divide" then | |
2386 | scaler2 = scaler2 - 0.01/value | |
2387 | end | |
2388 | rng.Transparency = rng.Transparency + 0.01 | |
2389 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2390 | end | |
2391 | rng:Destroy() | |
2392 | end)) | |
2393 | end | |
2394 | ||
2395 | ||
2396 | function wave(type,pos,scale,value) | |
2397 | local type = type | |
2398 | local rng = Instance.new("Part", char) | |
2399 | rng.Anchored = true | |
2400 | rng.BrickColor = origcolor | |
2401 | rng.CanCollide = false | |
2402 | rng.FormFactor = 3 | |
2403 | rng.Name = "Ring" | |
2404 | rng.Size = Vector3.new(1, 1, 1) | |
2405 | rng.Transparency = 0 | |
2406 | rng.TopSurface = 0 | |
2407 | rng.BottomSurface = 0 | |
2408 | rng.CFrame = pos | |
2409 | local rngm = Instance.new("SpecialMesh", rng) | |
2410 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2411 | rngm.Scale = scale | |
2412 | local scaler2 = 1 | |
2413 | if type == "Add" then | |
2414 | scaler2 = 1*value | |
2415 | elseif type == "Divide" then | |
2416 | scaler2 = 1/value | |
2417 | end | |
2418 | coroutine.resume(coroutine.create(function() | |
2419 | for i = 0,10,0.1 do | |
2420 | swait() | |
2421 | if type == "Add" then | |
2422 | scaler2 = scaler2 - 0.01*value | |
2423 | elseif type == "Divide" then | |
2424 | scaler2 = scaler2 - 0.01/value | |
2425 | end | |
2426 | rng.Transparency = rng.Transparency + 0.01 | |
2427 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2428 | end | |
2429 | rng:Destroy() | |
2430 | end)) | |
2431 | end | |
2432 | ||
2433 | function wind(type,pos,scale,value,speed) | |
2434 | local type = type | |
2435 | local rng = Instance.new("Part", char) | |
2436 | rng.Anchored = true | |
2437 | rng.BrickColor = origcolor | |
2438 | rng.CanCollide = false | |
2439 | rng.FormFactor = 3 | |
2440 | rng.Name = "Ring" | |
2441 | rng.Size = Vector3.new(1, 1, 1) | |
2442 | rng.Transparency = 0 | |
2443 | rng.TopSurface = 0 | |
2444 | rng.BottomSurface = 0 | |
2445 | rng.CFrame = pos | |
2446 | local rngm = Instance.new("SpecialMesh", rng) | |
2447 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2448 | rngm.Scale = scale | |
2449 | local scaler2 = 1 | |
2450 | if type == "Add" then | |
2451 | scaler2 = 1*value | |
2452 | elseif type == "Divide" then | |
2453 | scaler2 = 1/value | |
2454 | end | |
2455 | coroutine.resume(coroutine.create(function() | |
2456 | for i = 0,10,0.1 do | |
2457 | swait() | |
2458 | if type == "Add" then | |
2459 | scaler2 = scaler2 - 0.01*value | |
2460 | elseif type == "Divide" then | |
2461 | scaler2 = scaler2 - 0.01/value | |
2462 | end | |
2463 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2464 | rng.Transparency = rng.Transparency + 0.01 | |
2465 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2466 | end | |
2467 | rng:Destroy() | |
2468 | end)) | |
2469 | end | |
2470 | ||
2471 | function groundwind(type,pos,scale,value,speed) | |
2472 | local type = type | |
2473 | local rng = Instance.new("Part", char) | |
2474 | rng.Anchored = true | |
2475 | rng.BrickColor = origcolor | |
2476 | rng.CanCollide = false | |
2477 | rng.FormFactor = 3 | |
2478 | rng.Name = "Ring" | |
2479 | rng.Size = Vector3.new(1, 1, 1) | |
2480 | rng.Transparency = 0 | |
2481 | rng.TopSurface = 0 | |
2482 | rng.BottomSurface = 0 | |
2483 | rng.CFrame = pos | |
2484 | local rngm = Instance.new("SpecialMesh", rng) | |
2485 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2486 | rngm.Scale = scale | |
2487 | local scaler2 = 1 | |
2488 | if type == "Add" then | |
2489 | scaler2 = 1*value | |
2490 | elseif type == "Divide" then | |
2491 | scaler2 = 1/value | |
2492 | end | |
2493 | coroutine.resume(coroutine.create(function() | |
2494 | for i = 0,10,0.1 do | |
2495 | swait() | |
2496 | if type == "Add" then | |
2497 | scaler2 = scaler2 - 0.01*value | |
2498 | elseif type == "Divide" then | |
2499 | scaler2 = scaler2 - 0.01/value | |
2500 | end | |
2501 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2502 | rng.Transparency = rng.Transparency + 0.01 | |
2503 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
2504 | end | |
2505 | rng:Destroy() | |
2506 | end)) | |
2507 | end | |
2508 | ||
2509 | function sphere(type,pos,scale,value) | |
2510 | local type = type | |
2511 | local rng = Instance.new("Part", char) | |
2512 | rng.Anchored = true | |
2513 | rng.BrickColor = origcolor | |
2514 | rng.CanCollide = false | |
2515 | rng.FormFactor = 3 | |
2516 | rng.Name = "Ring" | |
2517 | rng.Material = "Neon" | |
2518 | rng.Size = Vector3.new(1, 1, 1) | |
2519 | rng.Transparency = 0 | |
2520 | rng.TopSurface = 0 | |
2521 | rng.BottomSurface = 0 | |
2522 | rng.CFrame = pos | |
2523 | local rngm = Instance.new("SpecialMesh", rng) | |
2524 | rngm.MeshType = "Sphere" | |
2525 | rngm.Scale = scale | |
2526 | local scaler2 = 1 | |
2527 | if type == "Add" then | |
2528 | scaler2 = 1*value | |
2529 | elseif type == "Divide" then | |
2530 | scaler2 = 1/value | |
2531 | end | |
2532 | coroutine.resume(coroutine.create(function() | |
2533 | for i = 0,10,0.1 do | |
2534 | swait() | |
2535 | if type == "Add" then | |
2536 | scaler2 = scaler2 - 0.01*value | |
2537 | elseif type == "Divide" then | |
2538 | scaler2 = scaler2 - 0.01/value | |
2539 | end | |
2540 | rng.Transparency = rng.Transparency + 0.01 | |
2541 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2542 | end | |
2543 | rng:Destroy() | |
2544 | end)) | |
2545 | end | |
2546 | ||
2547 | function beam(type,pos,scale,value) | |
2548 | local type = type | |
2549 | local rng = Instance.new("Part", char) | |
2550 | rng.Anchored = true | |
2551 | rng.BrickColor = origcolor | |
2552 | rng.CanCollide = false | |
2553 | rng.FormFactor = 3 | |
2554 | rng.Name = "Ring" | |
2555 | rng.Material = "Neon" | |
2556 | rng.Size = Vector3.new(1, 1, 1) | |
2557 | rng.Transparency = 0 | |
2558 | rng.TopSurface = 0 | |
2559 | rng.BottomSurface = 0 | |
2560 | rng.CFrame = pos | |
2561 | local rngm = Instance.new("SpecialMesh", rng) | |
2562 | rngm.MeshType = "Sphere" | |
2563 | rngm.Scale = scale | |
2564 | rngm.Scale = rngm.Scale + Vector3.new(0,10000,0) | |
2565 | local scaler2 = 0.5 | |
2566 | if type == "Add" then | |
2567 | scaler2 = 0.5*value | |
2568 | elseif type == "Divide" then | |
2569 | scaler2 = 0.5/value | |
2570 | end | |
2571 | coroutine.resume(coroutine.create(function() | |
2572 | for i = 0,10,0.1 do | |
2573 | swait() | |
2574 | if type == "Add" then | |
2575 | scaler2 = scaler2 - 0.01*value | |
2576 | elseif type == "Divide" then | |
2577 | scaler2 = scaler2 - 0.01/value | |
2578 | end | |
2579 | rng.Transparency = rng.Transparency + 0.01 | |
2580 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2581 | end | |
2582 | rng:Destroy() | |
2583 | end)) | |
2584 | end | |
2585 | ||
2586 | function first() | |
2587 | attack = true | |
2588 | for i = 0,3,0.1 do | |
2589 | swait() | |
2590 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(-20)),0.1) | |
2591 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(20)),.1) | |
2592 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(50)), 0.1) | |
2593 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
2594 | end | |
2595 | sphere("Divide",sorb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),10) | |
2596 | local lookvalue = 15 | |
2597 | coroutine.resume(coroutine.create(function() | |
2598 | local rat = Instance.new("Part") | |
2599 | rat.Parent = char | |
2600 | rat.CFrame = root.CFrame | |
2601 | rat.Transparency = 1 | |
2602 | rat.CanCollide = false | |
2603 | rat.Anchored = true | |
2604 | for i = 0, 4 do | |
2605 | local lb = Instance.new("Part") | |
2606 | CFuncs["Sound"].Create("rbxassetid://142070127", lb, 1, 1) | |
2607 | CFuncs["Sound"].Create("rbxassetid://255679373", lb, 1, 1) | |
2608 | lb.Parent = char | |
2609 | lb.BrickColor = origcolor | |
2610 | lb.CanCollide = false | |
2611 | lb.Material = "Neon" | |
2612 | lb.Anchored = true | |
2613 | lb.TopSurface = 0 | |
2614 | lb.BottomSurface = 0 | |
2615 | lb.Transparency = 1 | |
2616 | lb.Size = vt(0.5,0.5,0.5) | |
2617 | lb.CFrame = rat.CFrame + rat.CFrame.lookVector*lookvalue | |
2618 | lb.CFrame = lb.CFrame + Vector3.new(0,-3,0) | |
2619 | game:GetService("Debris"):AddItem(lb, 3) | |
2620 | beam("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),3.5) | |
2621 | sphere("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),3.5) | |
2622 | ring("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,10),2.5) | |
2623 | wave("Divide",lb.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.25,1),3.5) | |
2624 | lookvalue = lookvalue + 15 | |
2625 | MagniDamage(lb, 153, 7113, 0, "Normal") | |
2626 | wait(0.25) | |
2627 | end | |
2628 | rat:Destroy() | |
2629 | end)) | |
2630 | for i = 0,1,0.1 do | |
2631 | swait() | |
2632 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
2633 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2634 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.5) | |
2635 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-70)), 0.5) | |
2636 | end | |
2637 | attack = false | |
2638 | end | |
2639 | ||
2640 | local dashing = false | |
2641 | ||
2642 | function dash() | |
2643 | dashing = true | |
2644 | attack = true | |
2645 | local bv = Instance.new("BodyVelocity") | |
2646 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2647 | bv.velocity = root.CFrame.lookVector*200 | |
2648 | bv.Parent = root | |
2649 | CFuncs["Sound"].Create("rbxassetid://200632211", root, 1, 0.5) | |
2650 | ring("Divide",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,1,10),1.5) | |
2651 | wave("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),2.5) | |
2652 | for i = 0,1,0.1 do | |
2653 | swait() | |
2654 | bv.velocity = root.CFrame.lookVector*200 | |
2655 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(0)),0.5) | |
2656 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
2657 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(50)), 0.5) | |
2658 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(-50)), 0.5) | |
2659 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
2660 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
2661 | end | |
2662 | bv:Destroy() | |
2663 | attack = false | |
2664 | dashing = false | |
2665 | end | |
2666 | ||
2667 | function Spiraling() | |
2668 | attack = true | |
2669 | CFuncs["Sound"].Create("rbxassetid://214876666", root, 1, 1) | |
2670 | sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5) | |
2671 | for i = 0,5,0.1 do | |
2672 | swait() | |
2673 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
2674 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2675 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1) | |
2676 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1) | |
2677 | end | |
2678 | CFuncs["Sound"].Create("rbxassetid://138079095", root, 1.5, 0.4) | |
2679 | CFuncs["Sound"].Create("rbxassetid://154723542", root, 2.5, 1) | |
2680 | coroutine.resume(coroutine.create(function() | |
2681 | beam("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),2) | |
2682 | sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5) | |
2683 | for i = 0, 4 do | |
2684 | wait(0.1) | |
2685 | MagniDamage(root, 603, 113,183, 0, "Normal") | |
2686 | groundwind("Add",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(2,4),5) | |
2687 | end | |
2688 | end)) | |
2689 | for z = 0, 2 do | |
2690 | for i = 0,1,0.5 do | |
2691 | swait() | |
2692 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
2693 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2694 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2695 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2696 | end | |
2697 | for i = 0,1,0.5 do | |
2698 | swait() | |
2699 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5) | |
2700 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2701 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2702 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2703 | end | |
2704 | for i = 0,1,0.5 do | |
2705 | swait() | |
2706 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5) | |
2707 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2708 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2709 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2710 | end | |
2711 | for i = 0,1,0.5 do | |
2712 | swait() | |
2713 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5) | |
2714 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2715 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2716 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2717 | end | |
2718 | end | |
2719 | attack = false | |
2720 | end | |
2721 | ||
2722 | function SkyBeam() | |
2723 | local currentws = hum.WalkSpeed | |
2724 | attack = true | |
2725 | hum.WalkSpeed = 0 | |
2726 | CFuncs["Sound"].Create("rbxassetid://138079095", cahr, 0.5, 0.4) | |
2727 | sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5) | |
2728 | for i = 0,3,0.1 do | |
2729 | swait() | |
2730 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
2731 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
2732 | RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.1) | |
2733 | LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.1) | |
2734 | end | |
2735 | local rng = Instance.new("Part", char) | |
2736 | CFuncs["Sound"].Create("rbxassetid://343211019", char, 1, 0.6) | |
2737 | rng.Anchored = true | |
2738 | rng.BrickColor = origcolor | |
2739 | rng.CanCollide = false | |
2740 | rng.FormFactor = 3 | |
2741 | rng.Name = "Ring" | |
2742 | rng.Material = "Neon" | |
2743 | rng.Size = Vector3.new(1, 1, 1) | |
2744 | rng.Transparency = 1 | |
2745 | rng.TopSurface = 0 | |
2746 | rng.BottomSurface = 0 | |
2747 | rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0) | |
2748 | local rngm = Instance.new("SpecialMesh", rng) | |
2749 | rngm.MeshType = "Brick" | |
2750 | local dec = Instance.new("Decal",rng) | |
2751 | dec.Texture = "http://www.roblox.com/asset/?id=852097462" | |
2752 | dec.Face = "Top" | |
2753 | local dec2 = dec:Clone() | |
2754 | dec2.Parent = rng | |
2755 | dec2.Face = "Bottom" | |
2756 | ||
2757 | local scaler2 = 1 | |
2758 | scaler2 = 1*3 | |
2759 | for i = 0,10,0.1 do | |
2760 | swait() | |
2761 | scaler2 = scaler2 - 0.01*3 | |
2762 | rng.Transparency = rng.Transparency + 0.01 | |
2763 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
2764 | end | |
2765 | groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10)) | |
2766 | wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10)) | |
2767 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 0.5, 0.7) | |
2768 | for i = 0,14,0.1 do | |
2769 | swait() | |
2770 | MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25) | |
2771 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
2772 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.1) | |
2773 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(10)), 0.1) | |
2774 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.1) | |
2775 | end | |
2776 | for i = 0,2,0.1 do | |
2777 | swait() | |
2778 | MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25) | |
2779 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.5) | |
2780 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2781 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(10)), 0.5) | |
2782 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.5) | |
2783 | end | |
2784 | MagniDamage(root, 165, 252,452, 0, "Normal") | |
2785 | CFuncs["Sound"].Create("rbxassetid://157878578", char, 0.5, 0.5) | |
2786 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 1, 1) | |
2787 | CFuncs["Sound"].Create("rbxassetid://162271116", char, 0.5, 0.65) | |
2788 | CFuncs["Sound"].Create("rbxassetid://151304356", char, 0.5, 0.35) | |
2789 | CFuncs["Sound"].Create("rbxassetid://31762335", char, 0.5, 0.5) | |
2790 | beam("Add",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),5) | |
2791 | coroutine.resume(coroutine.create(function() | |
2792 | for i = 0, 9 do | |
2793 | wait(0.1) | |
2794 | groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10)) | |
2795 | wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10)) | |
2796 | end | |
2797 | end)) | |
2798 | wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),5) | |
2799 | wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(100,0,100),5) | |
2800 | ring("Add",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,100),7.5) | |
2801 | coroutine.resume(coroutine.create(function() | |
2802 | for i = 0,10,0.1 do | |
2803 | swait() | |
2804 | scaler2 = scaler2 - 0.01*3 | |
2805 | rng.Transparency = rng.Transparency + 0.01 | |
2806 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
2807 | end | |
2808 | rng:Destroy() | |
2809 | end)) | |
2810 | attack = false | |
2811 | hum.WalkSpeed = currentws | |
2812 | end | |
2813 | ||
2814 | --- Above is skillmoves to function. | |
2815 | --- I swear im watching you. | |
2816 | --- Dont leak this one... | |
2817 | -------------- Attack Combo Section ------------- | |
2818 | ||
2819 | function attackone() | |
2820 | attack = true | |
2821 | for i = 0,2,0.1 do | |
2822 | swait() | |
2823 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.2) | |
2824 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.2) | |
2825 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2) | |
2826 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2827 | end | |
2828 | ||
2829 | local a = Instance.new("Part",Character) | |
2830 | a.Name = "Direction" | |
2831 | a.Anchored = true | |
2832 | a.BrickColor = bc("Bright red") | |
2833 | a.Material = "Neon" | |
2834 | a.Transparency = 1 | |
2835 | a.CanCollide = false | |
2836 | local ray = Ray.new( | |
2837 | sorb.CFrame.p, -- origin | |
2838 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
2839 | ) | |
2840 | local ignore = Character | |
2841 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2842 | a.BottomSurface = 10 | |
2843 | a.TopSurface = 10 | |
2844 | local distance = (root.CFrame.p - position).magnitude | |
2845 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2846 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2847 | local lb = Instance.new("Part") | |
2848 | CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1) | |
2849 | lb.Parent = char | |
2850 | lb.BrickColor = origcolor | |
2851 | lb.CanCollide = false | |
2852 | lb.Material = "Neon" | |
2853 | lb.Anchored = true | |
2854 | lb.TopSurface = 0 | |
2855 | lb.BottomSurface = 0 | |
2856 | lb.Transparency = 0 | |
2857 | lb.Size = vt(2,2,2) | |
2858 | lb.CFrame = a.CFrame | |
2859 | lb.Anchored = false | |
2860 | local thingery = Instance.new("SpecialMesh",lb) | |
2861 | thingery.MeshType = "Sphere" | |
2862 | game:GetService("Debris"):AddItem(lb, 5) | |
2863 | local bv = Instance.new("BodyVelocity") | |
2864 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2865 | bv.velocity = a.CFrame.lookVector*100 | |
2866 | bv.Parent = lb | |
2867 | local hitted = false | |
2868 | game:GetService("Debris"):AddItem(a, 0.1) | |
2869 | coroutine.resume(coroutine.create(function() | |
2870 | while wait(0.5) do | |
2871 | if hitted == false or lb.Parent ~= nil then | |
2872 | wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10) | |
2873 | end | |
2874 | if hitted == true or lb.Parent == nil then | |
2875 | break | |
2876 | end | |
2877 | end | |
2878 | end)) | |
2879 | wait(0.01) | |
2880 | lb.Touched:connect(function(hit) | |
2881 | Damagefunc(lb, hit, 522, 12, 0, "Normal", RootPart, 0.3, "588733541", 0.8) | |
2882 | end) | |
2883 | attack = false | |
2884 | end | |
2885 | ||
2886 | function attacktwo() | |
2887 | attack = true | |
2888 | for i = 0,2,0.1 do | |
2889 | MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25) | |
2890 | swait() | |
2891 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2) | |
2892 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2) | |
2893 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2894 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
2895 | end | |
2896 | ||
2897 | local a = Instance.new("Part",Character) | |
2898 | a.Name = "Direction" | |
2899 | a.Anchored = true | |
2900 | a.BrickColor = bc("Bright red") | |
2901 | a.Material = "Neon" | |
2902 | a.Transparency = 1 | |
2903 | a.CanCollide = false | |
2904 | local ray = Ray.new( | |
2905 | sorb2.CFrame.p, -- origin | |
2906 | (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction | |
2907 | ) | |
2908 | local ignore = Character | |
2909 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2910 | a.BottomSurface = 10 | |
2911 | a.TopSurface = 10 | |
2912 | local distance = (root.CFrame.p - position).magnitude | |
2913 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2914 | a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2915 | local lb = Instance.new("Part") | |
2916 | CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1) | |
2917 | lb.Parent = char | |
2918 | lb.BrickColor = origcolor | |
2919 | lb.CanCollide = false | |
2920 | lb.Material = "Neon" | |
2921 | lb.Anchored = true | |
2922 | lb.TopSurface = 0 | |
2923 | lb.BottomSurface = 0 | |
2924 | lb.Transparency = 0 | |
2925 | lb.Size = vt(2,2,2) | |
2926 | lb.CFrame = a.CFrame | |
2927 | lb.Anchored = false | |
2928 | local thingery = Instance.new("SpecialMesh",lb) | |
2929 | thingery.MeshType = "Sphere" | |
2930 | game:GetService("Debris"):AddItem(lb, 5) | |
2931 | local bv = Instance.new("BodyVelocity") | |
2932 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2933 | bv.velocity = a.CFrame.lookVector*100 | |
2934 | bv.Parent = lb | |
2935 | local hitted = false | |
2936 | game:GetService("Debris"):AddItem(a, 0.1) | |
2937 | coroutine.resume(coroutine.create(function() | |
2938 | while wait(0.5) do | |
2939 | if hitted == false or lb.Parent ~= nil then | |
2940 | wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10) | |
2941 | end | |
2942 | if hitted == true or lb.Parent == nil then | |
2943 | break | |
2944 | end | |
2945 | end | |
2946 | end)) | |
2947 | wait(0.01) | |
2948 | lb.Touched:connect(function(hit) | |
2949 | Damagefunc(lb, hit, 522, 120, 0, "Normal", RootPart, 0.3, "588733541", 0.8) | |
2950 | end) | |
2951 | attack = false | |
2952 | end | |
2953 | ||
2954 | ||
2955 | function attackthree() | |
2956 | attack = true | |
2957 | for i = 0,1,0.1 do | |
2958 | swait() | |
2959 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
2960 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2961 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1) | |
2962 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1) | |
2963 | end | |
2964 | CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4) | |
2965 | CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15) | |
2966 | coroutine.resume(coroutine.create(function() | |
2967 | for i = 0, 4 do | |
2968 | wait(0.1) | |
2969 | MagniDamage(root, 222, 522,1222, 0, "Normal") | |
2970 | wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5) | |
2971 | end | |
2972 | end)) | |
2973 | for i = 0,1,0.5 do | |
2974 | swait() | |
2975 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
2976 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2977 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2978 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2979 | end | |
2980 | for i = 0,1,0.5 do | |
2981 | swait() | |
2982 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5) | |
2983 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2984 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2985 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2986 | end | |
2987 | for i = 0,1,0.5 do | |
2988 | swait() | |
2989 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5) | |
2990 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2991 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2992 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
2993 | end | |
2994 | for i = 0,1,0.5 do | |
2995 | swait() | |
2996 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5) | |
2997 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
2998 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
2999 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3000 | end | |
3001 | attack = false | |
3002 | end | |
3003 | ||
3004 | ||
3005 | function attackfour() | |
3006 | local currentws = hum.WalkSpeed | |
3007 | hum.WalkSpeed = 0 | |
3008 | dashing = true | |
3009 | attack = true | |
3010 | for i = 0,2,0.1 do | |
3011 | swait() | |
3012 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.1) | |
3013 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.1) | |
3014 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.1) | |
3015 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.1) | |
3016 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3017 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1) | |
3018 | end | |
3019 | for i = 0,1,0.1 do | |
3020 | swait() | |
3021 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),0.3) | |
3022 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3023 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3) | |
3024 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3) | |
3025 | RH.C0=clerp(RH.C0,cf(1,-1,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(5)),.3) | |
3026 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
3027 | end | |
3028 | MagniDamage(root, 150, 90,130, 0, "Normal") | |
3029 | CFuncs["Sound"].Create("rbxassetid://142070127", root, 0.25, 1.15) | |
3030 | CFuncs["Sound"].Create("rbxassetid://157878578", root, 1, 1.25) | |
3031 | wave("Divide",rleg.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),3.5) | |
3032 | ring("Divide",rleg.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,25),1.5) | |
3033 | dashing = false | |
3034 | attack = false | |
3035 | hum.WalkSpeed = currentws | |
3036 | end | |
3037 | ||
3038 | -- Functions are ready. | |
3039 | ||
3040 | local attacktype = 1 | |
3041 | mouse.Button1Down:connect(function() | |
3042 | if attack == false and attacktype == 1 then | |
3043 | attacktype = 2 | |
3044 | attackone() | |
3045 | elseif attack == false and attacktype == 2 then | |
3046 | attacktype = 3 | |
3047 | attacktwo() | |
3048 | elseif attack == false and attacktype == 3 then | |
3049 | attacktype = 4 | |
3050 | attackthree() | |
3051 | elseif attack == false and attacktype == 4 then | |
3052 | attacktype = 1 | |
3053 | attackfour() | |
3054 | end | |
3055 | end) | |
3056 | mouse.KeyDown:connect(function(k) | |
3057 | if k == "z" and attack == false then | |
3058 | first() | |
3059 | end | |
3060 | if k == "x" and attack == false then | |
3061 | dash() | |
3062 | end | |
3063 | if k == "c" and attack == false then | |
3064 | Spiraling() | |
3065 | end | |
3066 | if k == "v" and attack == false then | |
3067 | SkyBeam() | |
3068 | end | |
3069 | end) | |
3070 | Humanoid.Animator.Parent = nil | |
3071 | idleanim=.4 | |
3072 | while true do | |
3073 | swait() | |
3074 | MagicBlock(origcolor,sorb.CFrame,1,1,1,0.1,0.1,0.1,0.25) | |
3075 | sine = sine + change | |
3076 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
3077 | local velderp=RootPart.Velocity.y | |
3078 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
3079 | if equipped==true or equipped==false then | |
3080 | if attack==false then | |
3081 | idle=idle+1 | |
3082 | else | |
3083 | idle=0 | |
3084 | end | |
3085 | if idle>=500 then | |
3086 | if attack==false then | |
3087 | --Sheath() | |
3088 | end | |
3089 | end | |
3090 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
3091 | Anim="Jump" | |
3092 | if attack==false then | |
3093 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
3094 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
3095 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3096 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
3097 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
3098 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
3099 | end | |
3100 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
3101 | Anim="Fall" | |
3102 | if attack==false then | |
3103 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
3104 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
3105 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3106 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3107 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
3108 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
3109 | end | |
3110 | elseif torvel<1 and hitfloor~=nil then | |
3111 | Anim="Idle" | |
3112 | if dashing == false then | |
3113 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
3114 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
3115 | end | |
3116 | if attack==false then | |
3117 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(40)),.1) | |
3118 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-40)),.1) | |
3119 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(2.5),math.rad(0),math.rad(20 - 0.5 * math.cos(sine / 25))),.1) | |
3120 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 1.5 * math.cos(sine / 25))),.1) | |
3121 | end | |
3122 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
3123 | Anim="Walk" | |
3124 | if dashing == false then | |
3125 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1) | |
3126 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1) | |
3127 | end | |
3128 | if attack==false then | |
3129 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0 - 10 * math.cos(sine / 12.5))),.1) | |
3130 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 12.5))),.1) | |
3131 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(10)),.1) | |
3132 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(-10)),.1) | |
3133 | end | |
3134 | elseif torvel>=22 and hitfloor~=nil then | |
3135 | Anim="Run" | |
3136 | if dashing == false then | |
3137 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
3138 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
3139 | end | |
3140 | if attack==false then | |
3141 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
3142 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
3143 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3) | |
3144 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3) | |
3145 | end | |
3146 | end | |
3147 | end | |
3148 | end |