SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end | |
5 | ||
6 | script.Name = "Burning Hope xd!11" | |
7 | --//====================================================\\-- | |
8 | --|| EDITED BY Penien23 | |
9 | --\\====================================================//-- | |
10 | local Player = game.Players.localPlayer | |
11 | local Character = Player.Character | |
12 | local red = 255 | |
13 | local green = 255 | |
14 | local blue = 255 | |
15 | local Humanoid = Character.Humanoid | |
16 | local mouse = Player:GetMouse() | |
17 | local m = Instance.new("Model", Character) | |
18 | m.Name = "WeaponModel" | |
19 | local LeftArm = Character["Left Arm"] | |
20 | local RightArm = Character["Right Arm"] | |
21 | local LeftLeg = Character["Left Leg"] | |
22 | local RightLeg = Character["Right Leg"] | |
23 | local Head = Character.Head | |
24 | local Torso = Character.Torso | |
25 | local cam = game.Workspace.CurrentCamera | |
26 | local RootPart = Character.HumanoidRootPart | |
27 | local RootJoint = RootPart.RootJoint | |
28 | local equipped = false | |
29 | local attack = false | |
30 | local Anim = "Idle" | |
31 | local idle = 0 | |
32 | local attacktype = 1 | |
33 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
34 | local velocity = RootPart.Velocity.y | |
35 | local sine = 0 | |
36 | local change = 1 | |
37 | local grabbed = false | |
38 | local cn = CFrame.new | |
39 | local mr = math.rad | |
40 | local angles = CFrame.Angles | |
41 | local ud = UDim2.new | |
42 | local c3 = Color3.new | |
43 | local lim = 0 | |
44 | local st = 0 | |
45 | local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
46 | local attacktype = 1 | |
47 | local ZTarget, RocketTarget = nil, nil | |
48 | local euler = CFrame.fromEulerAnglesXYZ | |
49 | function clerp(a,b,t) | |
50 | local qa = {QuaternionFromCFrame(a)} | |
51 | local qb = {QuaternionFromCFrame(b)} | |
52 | local ax, ay, az = a.x, a.y, a.z | |
53 | local bx, by, bz = b.x, b.y, b.z | |
54 | local _t = 1-t | |
55 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
56 | end | |
57 | ||
58 | function QuaternionFromCFrame(cf) | |
59 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
60 | local trace = m00 + m11 + m22 | |
61 | if trace > 0 then | |
62 | local s = math.sqrt(1 + trace) | |
63 | local recip = 0.5/s | |
64 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
65 | else | |
66 | local i = 0 | |
67 | if m11 > m00 then | |
68 | i = 1 | |
69 | end | |
70 | if m22 > (i == 0 and m00 or m11) then | |
71 | i = 2 | |
72 | end | |
73 | if i == 0 then | |
74 | local s = math.sqrt(m00-m11-m22+1) | |
75 | local recip = 0.5/s | |
76 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
77 | elseif i == 1 then | |
78 | local s = math.sqrt(m11-m22-m00+1) | |
79 | local recip = 0.5/s | |
80 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
81 | elseif i == 2 then | |
82 | local s = math.sqrt(m22-m00-m11+1) | |
83 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
84 | end | |
85 | end | |
86 | end | |
87 | ||
88 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
89 | local xs, ys, zs = x + x, y + y, z + z | |
90 | local wx, wy, wz = w*xs, w*ys, w*zs | |
91 | local xx = x*xs | |
92 | local xy = x*ys | |
93 | local xz = x*zs | |
94 | local yy = y*ys | |
95 | local yz = y*zs | |
96 | local zz = z*zs | |
97 | 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)) | |
98 | end | |
99 | ||
100 | function QuaternionSlerp(a, b, t) | |
101 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
102 | local startInterp, finishInterp; | |
103 | if cosTheta >= 0.0001 then | |
104 | if (1 - cosTheta) > 0.0001 then | |
105 | local theta = math.acos(cosTheta) | |
106 | local invSinTheta = 1/math.sin(theta) | |
107 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
108 | finishInterp = math.sin(t*theta)*invSinTheta | |
109 | else | |
110 | startInterp = 1-t | |
111 | finishInterp = t | |
112 | end | |
113 | else | |
114 | if (1+cosTheta) > 0.0001 then | |
115 | local theta = math.acos(-cosTheta) | |
116 | local invSinTheta = 1/math.sin(theta) | |
117 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
118 | finishInterp = math.sin(t*theta)*invSinTheta | |
119 | else | |
120 | startInterp = t-1 | |
121 | finishInterp = t | |
122 | end | |
123 | end | |
124 | 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 | |
125 | end | |
126 | rayCast = function(Position, Direction, Range, Ignore) | |
127 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
128 | end | |
129 | local v = game.Players.localPlayer | |
130 | local torso = v.Character.Torso | |
131 | wait(1) | |
132 | local p = Instance.new("Part", v.Character) | |
133 | p.Name = "kit" | |
134 | p.Anchored = true | |
135 | p.Transparency = 0 | |
136 | p.Material = "Plastic" | |
137 | p.CanCollide = false | |
138 | p.TopSurface = 0 | |
139 | p.BottomSurface = 0 | |
140 | p.Size = Vector3.new(0.2, 0.2, 0.2) | |
141 | p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
142 | local msh = Instance.new("SpecialMesh", p) | |
143 | msh.Scale = Vector3.new(-2, 2, 2) | |
144 | msh.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
145 | msh.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
146 | msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
147 | local pn = Instance.new("Part", v.Character.kit) | |
148 | pn.Name = "tail" | |
149 | pn.Anchored = true | |
150 | pn.Transparency = 0 | |
151 | pn.Material = "Plastic" | |
152 | pn.CanCollide = false | |
153 | pn.TopSurface = 0 | |
154 | pn.BottomSurface = 0 | |
155 | pn.Size = Vector3.new(5, 3, 3) | |
156 | pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
157 | local mshn = Instance.new("SpecialMesh", pn) | |
158 | mshn.Scale = Vector3.new(2, 2, 2) | |
159 | mshn.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
160 | mshn.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
161 | mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
162 | local pn3 = Instance.new("Part", v.Character.kit) | |
163 | pn3.Name = "tail" | |
164 | pn3.Anchored = true | |
165 | pn3.Transparency = 0 | |
166 | pn3.Material = "Plastic" | |
167 | pn3.CanCollide = false | |
168 | pn3.TopSurface = 0 | |
169 | pn3.BottomSurface = 0 | |
170 | pn3.Size = Vector3.new(0.2, 0.2, 0.2) | |
171 | pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
172 | local mshn3 = Instance.new("SpecialMesh", pn3) | |
173 | mshn3.Scale = Vector3.new(2, 2, 2) | |
174 | mshn3.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
175 | mshn3.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
176 | mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
177 | local pn4 = Instance.new("Part", v.Character.kit) | |
178 | pn4.Name = "tail" | |
179 | pn4.Anchored = true | |
180 | pn4.Transparency = 0 | |
181 | pn4.Material = "Plastic" | |
182 | pn4.CanCollide = false | |
183 | pn4.TopSurface = 0 | |
184 | pn4.BottomSurface = 0 | |
185 | pn4.Size = Vector3.new(0.2, 0.2, 0.2) | |
186 | pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
187 | local mshn4 = Instance.new("SpecialMesh", pn4) | |
188 | mshn4.Scale = Vector3.new(-2, 2, 2) | |
189 | mshn4.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
190 | mshn4.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
191 | mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
192 | local pn5 = Instance.new("Part", v.Character.kit) | |
193 | pn5.Name = "tail" | |
194 | pn5.Anchored = true | |
195 | pn5.Transparency = 0 | |
196 | pn5.Material = "Plastic" | |
197 | pn5.CanCollide = false | |
198 | pn5.TopSurface = 0 | |
199 | pn5.BottomSurface = 0 | |
200 | pn5.Size = Vector3.new(0.2, 0.2, 0.2) | |
201 | pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
202 | local mshn5 = Instance.new("SpecialMesh", pn5) | |
203 | mshn5.Scale = Vector3.new(2, 2, 2) | |
204 | mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
205 | mshn5.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
206 | mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
207 | local pn6 = Instance.new("Part", v.Character.kit) | |
208 | pn6.Name = "tail" | |
209 | pn6.Anchored = true | |
210 | pn6.Transparency = 0 | |
211 | pn6.Material = "Plastic" | |
212 | pn6.CanCollide = false | |
213 | pn6.TopSurface = 0 | |
214 | pn6.BottomSurface = 0 | |
215 | pn6.Size = Vector3.new(0.2, 0.2, 0.2) | |
216 | pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
217 | local mshn6 = Instance.new("SpecialMesh", pn6) | |
218 | mshn6.Scale = Vector3.new(2, 2, 2) | |
219 | mshn6.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
220 | mshn6.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
221 | mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
222 | local pn7 = Instance.new("Part", v.Character.kit) | |
223 | pn7.Name = "tail" | |
224 | pn7.Anchored = true | |
225 | pn7.Transparency = 0 | |
226 | pn7.Material = "Plastic" | |
227 | pn7.CanCollide = false | |
228 | pn7.TopSurface = 0 | |
229 | pn7.BottomSurface = 0 | |
230 | pn7.Size = Vector3.new(0.2, 0.2, 0.2) | |
231 | pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
232 | local mshn7 = Instance.new("SpecialMesh", pn7) | |
233 | mshn7.Scale = Vector3.new(2, 2, 2) | |
234 | mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
235 | mshn7.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
236 | mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
237 | local pn8 = Instance.new("Part", v.Character.kit) | |
238 | pn8.Name = "tail" | |
239 | pn8.Anchored = true | |
240 | pn8.Transparency = 0 | |
241 | pn8.Material = "Plastic" | |
242 | pn8.CanCollide = false | |
243 | pn8.TopSurface = 0 | |
244 | pn8.BottomSurface = 0 | |
245 | pn8.Size = Vector3.new(0.2, 0.2, 0.2) | |
246 | pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
247 | local mshn8 = Instance.new("SpecialMesh", pn8) | |
248 | mshn8.Scale = Vector3.new(-2, 2, 2) | |
249 | mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
250 | mshn8.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
251 | mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
252 | local pn9 = Instance.new("Part", v.Character.kit) | |
253 | pn9.Name = "tail" | |
254 | pn9.Anchored = true | |
255 | pn9.Transparency = 0 | |
256 | pn9.Material = "Plastic" | |
257 | pn9.CanCollide = false | |
258 | pn9.TopSurface = 0 | |
259 | pn9.BottomSurface = 0 | |
260 | pn9.Size = Vector3.new(0.2, 0.2, 0.2) | |
261 | pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
262 | local mshn9 = Instance.new("SpecialMesh", pn9) | |
263 | mshn9.Scale = Vector3.new(-2, 2, 2) | |
264 | mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
265 | mshn9.TextureId = "http://www.roblox.com/asset/?id=188539332" | |
266 | mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
267 | local pn0 = Instance.new("Part", v.Character.kit) | |
268 | pn0.Name = "ears" | |
269 | pn0.Anchored = true | |
270 | pn0.Transparency = 0 | |
271 | pn0.Material = "Plastic" | |
272 | pn0.CanCollide = false | |
273 | pn0.TopSurface = 0 | |
274 | pn0.BottomSurface = 0 | |
275 | pn0.Size = Vector3.new(0.2, 0.2, 0.2) | |
276 | pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
277 | local mshn0 = Instance.new("SpecialMesh", pn0) | |
278 | mshn0.Scale = Vector3.new(0.5, 0.5, 0.5) | |
279 | mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302" | |
280 | mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528" | |
281 | mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
282 | p.Anchored = false | |
283 | local motor1 = Instance.new("Weld", p) | |
284 | motor1.Part0 = p | |
285 | motor1.Part1 = torso | |
286 | motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
287 | motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
288 | pn.Anchored = false | |
289 | local motor2 = Instance.new("Weld", pn) | |
290 | motor2.Part0 = pn | |
291 | motor2.Part1 = torso | |
292 | motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
293 | motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
294 | pn3.Anchored = false | |
295 | local motor3 = Instance.new("Weld", pn3) | |
296 | motor3.Part0 = pn3 | |
297 | motor3.Part1 = torso | |
298 | motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
299 | motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
300 | pn4.Anchored = false | |
301 | local motor4 = Instance.new("Weld", pn4) | |
302 | motor4.Part0 = pn4 | |
303 | motor4.Part1 = torso | |
304 | motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
305 | motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
306 | pn5.Anchored = false | |
307 | local motor5 = Instance.new("Weld", pn5) | |
308 | motor5.Part0 = pn5 | |
309 | motor5.Part1 = torso | |
310 | motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
311 | motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
312 | pn6.Anchored = false | |
313 | local motor6 = Instance.new("Weld", pn6) | |
314 | motor6.Part0 = pn6 | |
315 | motor6.Part1 = torso | |
316 | motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
317 | motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
318 | pn7.Anchored = false | |
319 | local motor7 = Instance.new("Weld", pn7) | |
320 | motor7.Part0 = pn7 | |
321 | motor7.Part1 = torso | |
322 | motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
323 | motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
324 | pn8.Anchored = false | |
325 | local motor8 = Instance.new("Weld", pn8) | |
326 | motor8.Part0 = pn8 | |
327 | motor8.Part1 = torso | |
328 | motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
329 | motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
330 | pn9.Anchored = false | |
331 | local motor9 = Instance.new("Weld", pn9) | |
332 | motor9.Part0 = pn9 | |
333 | motor9.Part1 = torso | |
334 | motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
335 | motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
336 | pn0.Anchored = false | |
337 | local motor0 = Instance.new("Weld", pn0) | |
338 | motor0.Part0 = pn0 | |
339 | motor0.Part1 = v.Character.Head | |
340 | motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
341 | game:GetService("RunService").Stepped:connect(function() | |
342 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
343 | velocity = RootPart.Velocity.y | |
344 | sine = sine + change | |
345 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
346 | if equipped == true or equipped == false then | |
347 | if RootPart.Velocity.y > 1 and hit == nil then | |
348 | Anim = "Jump" | |
349 | if attack == false then | |
350 | motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1) | |
351 | motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1) | |
352 | motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-110 + 0 * math.cos(sine / 25))), 0.1) | |
353 | motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(110 + 0 * math.cos(sine / 25))), 0.1) | |
354 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1) | |
355 | motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1) | |
356 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1) | |
357 | motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1) | |
358 | motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1) | |
359 | end | |
360 | else | |
361 | if RootPart.Velocity.y < -1 and hit == nil then | |
362 | Anim = "Fall" | |
363 | if attack == false then | |
364 | motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1) | |
365 | motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
366 | motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
367 | motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1) | |
368 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
369 | motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
370 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
371 | motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1) | |
372 | motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1) | |
373 | end | |
374 | else | |
375 | if Torsovelocity < 1 and hit ~= nil then | |
376 | Anim = "Idle" | |
377 | if attack == false then | |
378 | change = 1 | |
379 | motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-5 + 5 * math.cos(sine / 50)), math.rad(0 + 5 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
380 | motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 70)), math.rad(0 + -5 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
381 | motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 80)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(-50 + 0 * math.cos(sine / 25))), 0.1) | |
382 | motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 40)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(-40 + 0 * math.cos(sine / 25))), 0.1) | |
383 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(40 + 0 * math.cos(sine / 25))), 0.1) | |
384 | motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 35)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
385 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1) | |
386 | motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-10 + 0 * math.cos(sine / 25))), 0.1) | |
387 | motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(35 + 0 * math.cos(sine / 25))), 0.1) | |
388 | end | |
389 | else | |
390 | if Torsovelocity > 2 and hit ~= nil then | |
391 | Anim = "Walk" | |
392 | if attack == false then | |
393 | motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1) | |
394 | motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
395 | motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
396 | motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1) | |
397 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
398 | motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
399 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
400 | motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1) | |
401 | motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1) | |
402 | end | |
403 | end | |
404 | end | |
405 | end | |
406 | end | |
407 | end | |
408 | end) | |
409 | ||
410 | script:ClearAllChildren() | |
411 | wait(0.2) | |
412 | ||
413 | Player = game:GetService("Players").LocalPlayer | |
414 | PlayerGui = Player.PlayerGui | |
415 | Cam = workspace.CurrentCamera | |
416 | Backpack = Player.Backpack | |
417 | Character = Player.Character | |
418 | Humanoid = Character.Humanoid | |
419 | Mouse = Player:GetMouse() | |
420 | RootPart = Character["HumanoidRootPart"] | |
421 | Torso = Character["Torso"] | |
422 | Head = Character["Head"] | |
423 | RightArm = Character["Right Arm"] | |
424 | LeftArm = Character["Left Arm"] | |
425 | RightLeg = Character["Right Leg"] | |
426 | LeftLeg = Character["Left Leg"] | |
427 | RootJoint = RootPart["RootJoint"] | |
428 | Neck = Torso["Neck"] | |
429 | RightShoulder = Torso["Right Shoulder"] | |
430 | LeftShoulder = Torso["Left Shoulder"] | |
431 | RightHip = Torso["Right Hip"] | |
432 | LeftHip = Torso["Left Hip"] | |
433 | local TIME = 0 | |
434 | local sick = Instance.new("Sound",Torso) | |
435 | ||
436 | IT = Instance.new | |
437 | CF = CFrame.new | |
438 | VT = Vector3.new | |
439 | RAD = math.rad | |
440 | C3 = Color3.new | |
441 | UD2 = UDim2.new | |
442 | BRICKC = BrickColor.new | |
443 | ANGLES = CFrame.Angles | |
444 | EULER = CFrame.fromEulerAnglesXYZ | |
445 | COS = math.cos | |
446 | ACOS = math.acos | |
447 | SIN = math.sin | |
448 | ASIN = math.asin | |
449 | ABS = math.abs | |
450 | MRANDOM = math.random | |
451 | FLOOR = math.floor | |
452 | local RWINGS = {} | |
453 | local LWINGS = {} | |
454 | local GunPoint | |
455 | Player_Size = 1 | |
456 | ||
457 | -- Thingy To Make Song Work | |
458 | ||
459 | p = game.Players.LocalPlayer | |
460 | char = p.Character | |
461 | ||
462 | ---------------------------[[[ LOOPED SONG ]]]-------------------------- | |
463 | local s = Instance.new("Sound",char) | |
464 | s.Name = "BGMusic" | |
465 | s.SoundId = "rbxassetid://795131462" | |
466 | s.Pitch = 1 | |
467 | s.Volume = 50 | |
468 | s.Looped = true | |
469 | s.archivable = false | |
470 | s.Parent = char.Head | |
471 | wait(0.1) | |
472 | s:play() | |
473 | ||
474 | -- Rest of Script | |
475 | -- Want To Use This For Scripts With No Songs? Go Ahead Copy This InfiniteOneWithdank created the looped song thing that is in here anyways. | |
476 | ||
477 | ||
478 | --//=================================\\ | |
479 | --|| PARTICLES N STUFF | |
480 | --\\=================================// | |
481 | ||
482 | local particleemitter = Instance.new('ParticleEmitter', LeftArm) | |
483 | particleemitter.VelocitySpread = 350 | |
484 | particleemitter.Lifetime = NumberRange.new(1) | |
485 | particleemitter.Speed = NumberRange.new(0) | |
486 | cringememe= {} | |
487 | for i=0, 19 do | |
488 | cringememe[#cringememe + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
489 | end | |
490 | particleemitter.Size = NumberSequence.new(cringememe) | |
491 | particleemitter.Rate = 20 | |
492 | particleemitter.LockedToPart = true | |
493 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
494 | particleemitter.LightEmission = 1 | |
495 | particleemitter.Texture = "rbxassetid://38727848" | |
496 | particleemitter.Color = ColorSequence.new(BrickColor.new("Lime green").Color) | |
497 | ||
498 | local particleemitter = Instance.new('ParticleEmitter', Torso) | |
499 | particleemitter.VelocitySpread = 250 | |
500 | particleemitter.Lifetime = NumberRange.new(3) | |
501 | particleemitter.Speed = NumberRange.new(1.5) | |
502 | youAreATHOT = {} | |
503 | for i=0, 19 do | |
504 | youAreATHOT[#youAreATHOT + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
505 | end | |
506 | particleemitter.Size = NumberSequence.new(youAreATHOT) | |
507 | particleemitter.Rate = 10 | |
508 | particleemitter.LockedToPart = false | |
509 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
510 | particleemitter.LightEmission = 1 | |
511 | particleemitter.Texture = "rbxassetid://253188763" | |
512 | particleemitter.Color = ColorSequence.new(BrickColor.new("Lime green").Color) | |
513 | ||
514 | local particleemitter = Instance.new('ParticleEmitter', RightArm) | |
515 | particleemitter.VelocitySpread = 350 | |
516 | particleemitter.Lifetime = NumberRange.new(1) | |
517 | particleemitter.Speed = NumberRange.new(0) | |
518 | cringememe2= {} | |
519 | for i=0, 19 do | |
520 | cringememe2[#cringememe2 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
521 | end | |
522 | particleemitter.Size = NumberSequence.new(cringememe2) | |
523 | particleemitter.Rate = 20 | |
524 | particleemitter.LockedToPart = true | |
525 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
526 | particleemitter.LightEmission = 1 | |
527 | particleemitter.Texture = "rbxassetid://38727848" | |
528 | particleemitter.Color = ColorSequence.new(BrickColor.new("Lime green").Color) | |
529 | ||
530 | local particleemitter = Instance.new('ParticleEmitter', RightLeg) | |
531 | particleemitter.VelocitySpread = 350 | |
532 | particleemitter.Lifetime = NumberRange.new(1) | |
533 | particleemitter.Speed = NumberRange.new(0) | |
534 | cringememe3= {} | |
535 | for i=0, 19 do | |
536 | cringememe3[#cringememe3 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
537 | end | |
538 | particleemitter.Size = NumberSequence.new(cringememe3) | |
539 | particleemitter.Rate = 30 | |
540 | particleemitter.LockedToPart = true | |
541 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
542 | particleemitter.LightEmission = 1 | |
543 | particleemitter.Texture = "rbxassetid://38727848" | |
544 | particleemitter.Color = ColorSequence.new(BrickColor.new("Lime green").Color) | |
545 | ||
546 | local particleemitter = Instance.new('ParticleEmitter', LeftLeg) | |
547 | particleemitter.VelocitySpread = 350 | |
548 | particleemitter.Lifetime = NumberRange.new(1) | |
549 | particleemitter.Speed = NumberRange.new(0) | |
550 | cringememe4= {} | |
551 | for i=0, 19 do | |
552 | cringememe4[#cringememe4 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
553 | end | |
554 | particleemitter.Size = NumberSequence.new(cringememe4) | |
555 | particleemitter.Rate = 30 | |
556 | particleemitter.LockedToPart = true | |
557 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
558 | particleemitter.LightEmission = 1 | |
559 | particleemitter.Texture = "rbxassetid://38727848" | |
560 | particleemitter.Color = ColorSequence.new(BrickColor.new("Lime green").Color) | |
561 | ||
562 | --//=================================\\ | |
563 | --|| USEFUL VALUES | |
564 | --\\=================================// | |
565 | ||
566 | Animation_Speed = 1.5 | |
567 | local FORCERESET = false | |
568 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
569 | local Speed = 16 | |
570 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
571 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
572 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
573 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
574 | local DAMAGEMULTIPLIER = 1 | |
575 | local ANIM = "Idle" | |
576 | local ATTACK = false | |
577 | local EQUIPPED = false | |
578 | local HOLD = false | |
579 | local COMBO = 1 | |
580 | local Rooted = false | |
581 | local SINE = 0 | |
582 | local KEYHOLD = false | |
583 | local CHANGE = 2 / Animation_Speed | |
584 | local WALKINGANIM = false | |
585 | local VALUE1 = false | |
586 | local VALUE2 = false | |
587 | local ROBLOXIDLEANIMATION = IT("Animation") | |
588 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
589 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
590 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
591 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
592 | WEAPONGUI.Name = "BanishV3Gui" | |
593 | local Weapon = IT("Model") | |
594 | Weapon.Name = "Adds" | |
595 | local Effects = IT("Folder", Weapon) | |
596 | Effects.Name = "Effects" | |
597 | local ANIMATOR = Humanoid.Animator | |
598 | local ANIMATE = Character:FindFirstChild("Animate") | |
599 | local UNANCHOR = true | |
600 | local TOBANISH = {} | |
601 | script.Parent = PlayerGui | |
602 | ||
603 | function StatLabel(CFRAME, TEXT, COLOR) | |
604 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
605 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
606 | local BODYGYRO = IT("BodyGyro", STATPART) | |
607 | game:GetService("Debris"):AddItem(STATPART ,5) | |
608 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
609 | BILLBOARDGUI.Adornee = STATPART | |
610 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
611 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
612 | BILLBOARDGUI.AlwaysOnTop = false | |
613 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
614 | TEXTLABEL.BackgroundTransparency = 1 | |
615 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
616 | TEXTLABEL.Text = TEXT | |
617 | TEXTLABEL.Font = SKILLFONT | |
618 | TEXTLABEL.FontSize="Size42" | |
619 | TEXTLABEL.TextColor3 = COLOR | |
620 | TEXTLABEL.TextStrokeTransparency = 0 | |
621 | TEXTLABEL.TextScaled = true | |
622 | TEXTLABEL.TextWrapped = true | |
623 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
624 | for i = 1, 50 do | |
625 | Swait() | |
626 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
627 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
628 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
629 | end | |
630 | THEPART.Parent = nil | |
631 | end),STATPART, TEXTLABEL) | |
632 | end | |
633 | ||
634 | --//=================================\\ | |
635 | --\\=================================// | |
636 | ||
637 | ||
638 | --//=================================\\ | |
639 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
640 | --\\=================================// | |
641 | ||
642 | ArtificialHB = Instance.new("BindableEvent", script) | |
643 | ArtificialHB.Name = "ArtificialHB" | |
644 | ||
645 | script:WaitForChild("ArtificialHB") | |
646 | ||
647 | frame = Frame_Speed | |
648 | tf = 0 | |
649 | allowframeloss = false | |
650 | tossremainder = false | |
651 | lastframe = tick() | |
652 | script.ArtificialHB:Fire() | |
653 | ||
654 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
655 | tf = tf + s | |
656 | if tf >= frame then | |
657 | if allowframeloss then | |
658 | script.ArtificialHB:Fire() | |
659 | lastframe = tick() | |
660 | else | |
661 | for i = 1, math.floor(tf / frame) do | |
662 | script.ArtificialHB:Fire() | |
663 | end | |
664 | lastframe = tick() | |
665 | end | |
666 | if tossremainder then | |
667 | tf = 0 | |
668 | else | |
669 | tf = tf - frame * math.floor(tf / frame) | |
670 | end | |
671 | end | |
672 | end) | |
673 | ||
674 | --//=================================\\ | |
675 | --\\=================================// | |
676 | ||
677 | --//=================================\\ | |
678 | --|| SOME TAG EDIT | |
679 | --\\=================================// | |
680 | ||
681 | m = game.Players.LocalPlayer | |
682 | char = m.Character | |
683 | local txt = Instance.new("BillboardGui", char) | |
684 | txt.Adornee = char.Head | |
685 | txt.Name = "_status" | |
686 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
687 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
688 | local text = Instance.new("TextLabel", txt) | |
689 | text.Size = UDim2.new(10, 0, 7, 0) | |
690 | text.FontSize = "Size24" | |
691 | text.TextScaled = true | |
692 | text.TextTransparency = 0 | |
693 | text.BackgroundTransparency = 1 | |
694 | text.TextTransparency = 0 | |
695 | text.TextStrokeTransparency = 0 | |
696 | text.Font = "Bodoni" | |
697 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
698 | v = Instance.new("Part") | |
699 | v.Name = "ColorBrick" | |
700 | v.Parent = m.Character | |
701 | v.FormFactor = "Symmetric" | |
702 | v.Anchored = true | |
703 | v.CanCollide = false | |
704 | v.BottomSurface = "Smooth" | |
705 | v.TopSurface = "Smooth" | |
706 | v.Size = Vector3.new(10, 5, 3) | |
707 | v.Transparency = 1 | |
708 | v.CFrame = char.Torso.CFrame | |
709 | v.BrickColor = BrickColor.new("Really black") | |
710 | v.Transparency = 1 | |
711 | v.Shape = "Block" | |
712 | spawn(function() | |
713 | local TweenService = game:GetService("TweenService") | |
714 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
715 | local Int = 0 | |
716 | while wait(0.5) do | |
717 | if Int == #Colours then Int = 0 end | |
718 | Int = Int+1 | |
719 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
720 | end | |
721 | end) | |
722 | text.Text = "am i depressed?" | |
723 | wait(2) | |
724 | text.Text = "hmmm" | |
725 | wait(3) | |
726 | text.Text = "we'll just see.." | |
727 | wait(2) | |
728 | text.Text = "TameDoNotClick" | |
729 | ||
730 | --//=================================\\ | |
731 | --\\=================================// | |
732 | ||
733 | --//=================================\\ | |
734 | --|| SOME FUNCTIONS | |
735 | --\\=================================// | |
736 | ||
737 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
738 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
739 | end | |
740 | ||
741 | function PositiveAngle(NUMBER) | |
742 | if NUMBER >= 0 then | |
743 | NUMBER = 0 | |
744 | end | |
745 | return NUMBER | |
746 | end | |
747 | ||
748 | function NegativeAngle(NUMBER) | |
749 | if NUMBER <= 0 then | |
750 | NUMBER = 0 | |
751 | end | |
752 | return NUMBER | |
753 | end | |
754 | ||
755 | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) | |
756 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
757 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
758 | wave.CFrame = CFRAME | |
759 | coroutine.resume(coroutine.create(function(PART) | |
760 | for i = 1, WAIT do | |
761 | Swait() | |
762 | mesh.Scale = mesh.Scale + GROW | |
763 | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) | |
764 | if DOESROT == true then | |
765 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
766 | end | |
767 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
768 | if wave.Transparency > 0.99 then | |
769 | wave:remove() | |
770 | end | |
771 | end | |
772 | end)) | |
773 | end | |
774 | ||
775 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
776 | for _, c in pairs(PARENT:GetChildren()) do | |
777 | if c.ClassName == "Model" then | |
778 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
779 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
780 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
781 | if DIST > (TORSO.Position - FROM).Magnitude then | |
782 | table.insert(TABLE, c) | |
783 | end | |
784 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
785 | elseif c.ClassName == "Folder" then | |
786 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
787 | end | |
788 | end | |
789 | end | |
790 | end | |
791 | ||
792 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
793 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
794 | local mesh | |
795 | if KIND == "Base" then | |
796 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) | |
797 | elseif KIND == "Thin" then | |
798 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
799 | elseif KIND == "Round" then | |
800 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
801 | end | |
802 | wave.CFrame = CFRAME | |
803 | coroutine.resume(coroutine.create(function(PART) | |
804 | for i = 1, WAIT do | |
805 | Swait() | |
806 | mesh.Scale = mesh.Scale + GROW / 10 | |
807 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
808 | if wave.Transparency > 0.99 then | |
809 | wave:remove() | |
810 | end | |
811 | end | |
812 | end)) | |
813 | end | |
814 | ||
815 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
816 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
817 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
818 | wave.CFrame = CFRAME | |
819 | coroutine.resume(coroutine.create(function(PART) | |
820 | for i = 1, WAIT do | |
821 | Swait() | |
822 | mesh.Scale = mesh.Scale + GROW | |
823 | wave.Transparency = wave.Transparency + 1 / WAIT | |
824 | if wave.Transparency > 0.99 then | |
825 | wave:remove() | |
826 | end | |
827 | end | |
828 | end)) | |
829 | end | |
830 | ||
831 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
832 | local TORSO = Torso | |
833 | local HUM = Humanoid | |
834 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
835 | coroutine.wrap(function() | |
836 | VT = Vector3.new | |
837 | MRANDOM = math.random | |
838 | local A = TIME | |
839 | local B = INTENSITY | |
840 | local C = true | |
841 | local HUMANOID = Humanoid | |
842 | local TIMER = A or 35 | |
843 | local SHAKE = B or 5 | |
844 | local FADE = C or true | |
845 | if HUMANOID then | |
846 | local FADER = SHAKE / TIMER | |
847 | for i = 1, TIMER do | |
848 | wait() | |
849 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
850 | end | |
851 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
852 | end | |
853 | ||
854 | end)() | |
855 | end | |
856 | end | |
857 | ||
858 | function Effect(data) | |
859 | local FX = data.Effect or 'ResizeAndFade' | |
860 | local Parent = data.Parent or Effects | |
861 | local Color = data.Color or C3.N(0,0,0) | |
862 | local Size = data.Size or V3.N(1,1,1) | |
863 | local MoveDir = data.MoveDirection or nil | |
864 | local MeshData = data.Mesh or nil | |
865 | local SndData = data.Sound or nil | |
866 | local Frames = data.Frames or 45 | |
867 | local Manual = data.Manual or nil | |
868 | local Material = data.Material or nil | |
869 | local CFra = data.CFrame or Torso.CFrame | |
870 | local Settings = data.FXSettings or {} | |
871 | local Snd,Prt,Msh; | |
872 | local Shape = data.Shape or Enum.PartType.Block | |
873 | coroutine.resume(coroutine.create(function() | |
874 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
875 | Prt = Manual | |
876 | else | |
877 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
878 | Prt.Shape = Shape | |
879 | end | |
880 | if(typeof(MeshData) == 'table')then | |
881 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
882 | elseif(typeof(MeshData) == 'Instance')then | |
883 | Msh = MeshData:Clone() | |
884 | Msh.Parent = Prt | |
885 | elseif(Shape == Enum.PartType.Block)then | |
886 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
887 | end | |
888 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
889 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
890 | end | |
891 | if(Snd)then | |
892 | repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
893 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
894 | end | |
895 | local MoveSpeed = nil; | |
896 | if(MoveDir)then | |
897 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
898 | end | |
899 | local Inc = M.RNG()-M.RNG() | |
900 | local Thingie = 0 | |
901 | local Thingie2 = M.RNG(50,100)/100 | |
902 | if(FX ~= 'Arc')then | |
903 | for i = 1, Frames do | |
904 | if(swait and typeof(swait) == 'function')then | |
905 | swait() | |
906 | else | |
907 | wait() | |
908 | end | |
909 | if(FX == 'ResizeAndFade')then | |
910 | if(not Settings.EndSize)then | |
911 | Settings.EndSize = V3.N(0,0,0) | |
912 | end | |
913 | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize+Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) | |
914 | if(Settings.EndIsIncrement)then | |
915 | Prt.Size = Prt.Size + Settings.EndSize | |
916 | else | |
917 | Prt.Size = Prt.Size - grow/Frames | |
918 | end | |
919 | Prt.Transparency = (i/Frames) | |
920 | elseif(FX == 'Fade')then | |
921 | Prt.Transparency = (i/Frames) | |
922 | end | |
923 | ||
924 | if(Settings.RandomizeCFrame)then | |
925 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
926 | end | |
927 | if(MoveDir and MoveSpeed)then | |
928 | local Orientation = Prt.Orientation | |
929 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
930 | Prt.Orientation = Orientation | |
931 | end | |
932 | end | |
933 | Prt:destroy() | |
934 | else | |
935 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
936 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
937 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
938 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
939 | assert(start ~= nil,"You need to specify a start point!") | |
940 | assert(endP ~= nil,"You need to specify an end point!") | |
941 | for i = 0, 1, Settings.Speed or 0.01 do | |
942 | if(swait and typeof(swait) == 'function')then | |
943 | swait() | |
944 | else | |
945 | wait() | |
946 | end | |
947 | if(Settings.Home)then | |
948 | endP = Settings.Home.CFrame | |
949 | end | |
950 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, i) | |
951 | end | |
952 | if(Settings.RemoveOnGoal)then | |
953 | Prt:destroy() | |
954 | end | |
955 | end | |
956 | end)) | |
957 | return Prt,Msh,Snd | |
958 | end | |
959 | ||
960 | function RightWing() | |
961 | for i = 1, 2 do | |
962 | local PART | |
963 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
964 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(-15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-30 * i)), CF(0, 0, 0)) | |
965 | table.insert(RWINGS, WingWeld) | |
966 | PART = Wing | |
967 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "LargeWing", VT(1, 1.7, 1), false) | |
968 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(25), RAD(0)), CF(0, -0.8, 0)) | |
969 | PART = Wing | |
970 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
971 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
972 | local Wing1 = CreatePart(3, Weapon, "Marble", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.2, 0.51), false) | |
973 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
974 | PART = Wing | |
975 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) | |
976 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
977 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.8, 0.15, 0.15), false) | |
978 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
979 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark orange", "WingPart", VT(0.25, 0.2, 0.25), false) | |
980 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
981 | PART = Wing | |
982 | table.insert(RWINGS, WingWeld) | |
983 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.4, 0.5, 0.4), false) | |
984 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
985 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark indigo", "WingPart", VT(0.45, 0.2, 0.45), false) | |
986 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
987 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.15, 0.15), false) | |
988 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
989 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) | |
990 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0, 0)) | |
991 | PART = Wing | |
992 | table.insert(RWINGS, WingWeld) | |
993 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) | |
994 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
995 | PART = Wing | |
996 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
997 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(15), RAD(15)), CF(0, 0, 0)) | |
998 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.3, 0.3), false) | |
999 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1000 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(1, 0.2, 0.2), false) | |
1001 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0.15, 0)) | |
1002 | PART = Wing | |
1003 | table.insert(RWINGS, WingWeld) | |
1004 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
1005 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1006 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(0.3, 0.3, 0.3), false) | |
1007 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1008 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.7, 0.7, 0.7), false) | |
1009 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1010 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Burgundy", "WingPart", VT(0.45, 0.45, 0.45), false) | |
1011 | table.insert(EYES, Wing1) | |
1012 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(-35)), CF(0, 0, 0)) | |
1013 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) | |
1014 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1015 | PART = Wing | |
1016 | table.insert(RWINGS, WingWeld) | |
1017 | end | |
1018 | BODY = {} | |
1019 | for _, c in pairs(Character:GetDescendants()) do | |
1020 | if c:IsA("BasePart") then | |
1021 | table.insert(BODY, { | |
1022 | c, | |
1023 | c.Parent, | |
1024 | c.Material, | |
1025 | c.Color | |
1026 | }) | |
1027 | elseif c:IsA("JointInstance") then | |
1028 | table.insert(BODY, { | |
1029 | c, | |
1030 | c.Parent, | |
1031 | nil, | |
1032 | nil | |
1033 | }) | |
1034 | end | |
1035 | end | |
1036 | end | |
1037 | function LeftWing() | |
1038 | for i = 1, 2 do | |
1039 | local PART | |
1040 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1041 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(-0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(30 * i)), CF(0, 0, 0)) | |
1042 | table.insert(LWINGS, WingWeld) | |
1043 | PART = Wing | |
1044 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "LargeWing", VT(1, 1.7, 1), false) | |
1045 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(-25), RAD(0)), CF(0, -0.8, 0)) | |
1046 | PART = Wing | |
1047 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1048 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1049 | local Wing1 = CreatePart(3, Weapon, "Marble", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.2, 0.51), false) | |
1050 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1051 | PART = Wing | |
1052 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1053 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1054 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.8, 0.15, 0.15), false) | |
1055 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1056 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark orange", "WingPart", VT(0.25, 0.2, 0.25), false) | |
1057 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1058 | PART = Wing | |
1059 | table.insert(LWINGS, WingWeld) | |
1060 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.4, 0.5, 0.4), false) | |
1061 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1062 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Dark indigo", "WingPart", VT(0.45, 0.2, 0.45), false) | |
1063 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1064 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.15, 0.15), false) | |
1065 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1066 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) | |
1067 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0, 0)) | |
1068 | PART = Wing | |
1069 | table.insert(LWINGS, WingWeld) | |
1070 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1071 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1072 | PART = Wing | |
1073 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1074 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(-15), RAD(-15)), CF(0, 0, 0)) | |
1075 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.3, 0.3), false) | |
1076 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1077 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(1, 0.2, 0.2), false) | |
1078 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0.15, 0)) | |
1079 | PART = Wing | |
1080 | table.insert(LWINGS, WingWeld) | |
1081 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
1082 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1083 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark orange", "WingPart", VT(0.3, 0.3, 0.3), false) | |
1084 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1085 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(0.7, 0.7, 0.7), false) | |
1086 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1087 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Burgundy", "WingPart", VT(0.45, 0.45, 0.45), false) | |
1088 | table.insert(EYES, Wing1) | |
1089 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(35)), CF(0, 0, 0)) | |
1090 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) | |
1091 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1092 | PART = Wing | |
1093 | table.insert(LWINGS, WingWeld) | |
1094 | end | |
1095 | BODY = {} | |
1096 | for _, c in pairs(Character:GetDescendants()) do | |
1097 | if c:IsA("BasePart") then | |
1098 | table.insert(BODY, { | |
1099 | c, | |
1100 | c.Parent, | |
1101 | c.Material, | |
1102 | c.Color | |
1103 | }) | |
1104 | elseif c:IsA("JointInstance") then | |
1105 | table.insert(BODY, { | |
1106 | c, | |
1107 | c.Parent, | |
1108 | nil, | |
1109 | nil | |
1110 | }) | |
1111 | end | |
1112 | end | |
1113 | end | |
1114 | ||
1115 | function Swait(NUMBER) | |
1116 | if NUMBER == 0 or NUMBER == nil then | |
1117 | ArtificialHB.Event:wait() | |
1118 | else | |
1119 | for i = 1, NUMBER do | |
1120 | ArtificialHB.Event:wait() | |
1121 | end | |
1122 | end | |
1123 | end | |
1124 | ||
1125 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1126 | local NEWMESH = IT(MESH) | |
1127 | if MESH == "SpecialMesh" then | |
1128 | NEWMESH.MeshType = MESHTYPE | |
1129 | if MESHID ~= "nil" and MESHID ~= "" then | |
1130 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1131 | end | |
1132 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1133 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1134 | end | |
1135 | end | |
1136 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1137 | NEWMESH.Scale = SCALE | |
1138 | NEWMESH.Parent = PARENT | |
1139 | return NEWMESH | |
1140 | end | |
1141 | ||
1142 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1143 | local NEWPART = IT("Part") | |
1144 | NEWPART.formFactor = FORMFACTOR | |
1145 | NEWPART.Reflectance = REFLECTANCE | |
1146 | NEWPART.Transparency = TRANSPARENCY | |
1147 | NEWPART.CanCollide = false | |
1148 | NEWPART.Locked = true | |
1149 | NEWPART.Anchored = true | |
1150 | if ANCHOR == false then | |
1151 | NEWPART.Anchored = false | |
1152 | end | |
1153 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1154 | NEWPART.Name = NAME | |
1155 | NEWPART.Size = SIZE | |
1156 | NEWPART.Position = Torso.Position | |
1157 | NEWPART.Material = MATERIAL | |
1158 | NEWPART:BreakJoints() | |
1159 | NEWPART.Parent = PARENT | |
1160 | return NEWPART | |
1161 | end | |
1162 | ||
1163 | local function weldBetween(a, b) | |
1164 | local weldd = Instance.new("ManualWeld") | |
1165 | weldd.Part0 = a | |
1166 | weldd.Part1 = b | |
1167 | weldd.C0 = CFrame.new() | |
1168 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1169 | weldd.Parent = a | |
1170 | return weldd | |
1171 | end | |
1172 | ||
1173 | ||
1174 | function QuaternionFromCFrame(cf) | |
1175 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1176 | local trace = m00 + m11 + m22 | |
1177 | if trace > 0 then | |
1178 | local s = math.sqrt(1 + trace) | |
1179 | local recip = 0.5 / s | |
1180 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1181 | else | |
1182 | local i = 0 | |
1183 | if m11 > m00 then | |
1184 | i = 1 | |
1185 | end | |
1186 | if m22 > (i == 0 and m00 or m11) then | |
1187 | i = 2 | |
1188 | end | |
1189 | if i == 0 then | |
1190 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1191 | local recip = 0.5 / s | |
1192 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1193 | elseif i == 1 then | |
1194 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1195 | local recip = 0.5 / s | |
1196 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1197 | elseif i == 2 then | |
1198 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1199 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1200 | end | |
1201 | end | |
1202 | end | |
1203 | ||
1204 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1205 | local xs, ys, zs = x + x, y + y, z + z | |
1206 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1207 | local xx = x * xs | |
1208 | local xy = x * ys | |
1209 | local xz = x * zs | |
1210 | local yy = y * ys | |
1211 | local yz = y * zs | |
1212 | local zz = z * zs | |
1213 | 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)) | |
1214 | end | |
1215 | ||
1216 | function QuaternionSlerp(a, b, t) | |
1217 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1218 | local startInterp, finishInterp; | |
1219 | if cosTheta >= 0.0001 then | |
1220 | if (1 - cosTheta) > 0.0001 then | |
1221 | local theta = ACOS(cosTheta) | |
1222 | local invSinTheta = 1 / SIN(theta) | |
1223 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1224 | finishInterp = SIN(t * theta) * invSinTheta | |
1225 | else | |
1226 | startInterp = 1 - t | |
1227 | finishInterp = t | |
1228 | end | |
1229 | else | |
1230 | if (1 + cosTheta) > 0.0001 then | |
1231 | local theta = ACOS(-cosTheta) | |
1232 | local invSinTheta = 1 / SIN(theta) | |
1233 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1234 | finishInterp = SIN(t * theta) * invSinTheta | |
1235 | else | |
1236 | startInterp = t - 1 | |
1237 | finishInterp = t | |
1238 | end | |
1239 | end | |
1240 | 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 | |
1241 | end | |
1242 | ||
1243 | function Clerp(a, b, t) | |
1244 | local qa = {QuaternionFromCFrame(a)} | |
1245 | local qb = {QuaternionFromCFrame(b)} | |
1246 | local ax, ay, az = a.x, a.y, a.z | |
1247 | local bx, by, bz = b.x, b.y, b.z | |
1248 | local _t = 1 - t | |
1249 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1250 | end | |
1251 | ||
1252 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1253 | local frame = IT("Frame") | |
1254 | frame.BackgroundTransparency = TRANSPARENCY | |
1255 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1256 | frame.Position = POSITION | |
1257 | frame.Size = SIZE | |
1258 | frame.BackgroundColor3 = COLOR | |
1259 | frame.BorderColor3 = BORDERCOLOR | |
1260 | frame.Name = NAME | |
1261 | frame.Parent = PARENT | |
1262 | return frame | |
1263 | end | |
1264 | ||
1265 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1266 | local label = IT("TextLabel") | |
1267 | label.BackgroundTransparency = 1 | |
1268 | label.Size = UD2(1, 0, 1, 0) | |
1269 | label.Position = UD2(0, 0, 0, 0) | |
1270 | label.TextColor3 = TEXTCOLOR | |
1271 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1272 | label.TextTransparency = TRANSPARENCY | |
1273 | label.FontSize = TEXTFONTSIZE | |
1274 | label.Font = TEXTFONT | |
1275 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1276 | label.TextScaled = false | |
1277 | label.Text = TEXT | |
1278 | label.Name = NAME | |
1279 | label.Parent = PARENT | |
1280 | return label | |
1281 | end | |
1282 | ||
1283 | function NoOutlines(PART) | |
1284 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1285 | end | |
1286 | ||
1287 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1288 | local NEWWELD = IT(TYPE) | |
1289 | NEWWELD.Part0 = PART0 | |
1290 | NEWWELD.Part1 = PART1 | |
1291 | NEWWELD.C0 = C0 | |
1292 | NEWWELD.C1 = C1 | |
1293 | NEWWELD.Parent = PARENT | |
1294 | return NEWWELD | |
1295 | end | |
1296 | ||
1297 | local S = IT("Sound") | |
1298 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1299 | local NEWSOUND = nil | |
1300 | coroutine.resume(coroutine.create(function() | |
1301 | NEWSOUND = S:Clone() | |
1302 | NEWSOUND.Parent = PARENT | |
1303 | NEWSOUND.Volume = VOLUME | |
1304 | NEWSOUND.Pitch = PITCH | |
1305 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1306 | NEWSOUND:play() | |
1307 | if DOESLOOP == true then | |
1308 | NEWSOUND.Looped = true | |
1309 | else | |
1310 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
1311 | NEWSOUND:remove() | |
1312 | end | |
1313 | end)) | |
1314 | return NEWSOUND | |
1315 | end | |
1316 | ||
1317 | function CFrameFromTopBack(at, top, back) | |
1318 | local right = top:Cross(back) | |
1319 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1320 | end | |
1321 | ||
1322 | --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false}) | |
1323 | function Lightning(Table) | |
1324 | local Color = Table.Color or C3(1,1,1) | |
1325 | local StartPos = Table.Start or Torso.Position | |
1326 | local EndPos = Table.End or Mouse.Hit.p | |
1327 | local SegmentLength = Table.SegmentL or 2 | |
1328 | local Thickness = Table.Thickness or 0.1 | |
1329 | local Dissapear = Table.DoesFade or false | |
1330 | local Parent = Table.Ignore or Character | |
1331 | local MaxDist = Table.MaxDist or 400 | |
1332 | local Branches = Table.Branches or false | |
1333 | local Thicken = Table.Thicken or false | |
1334 | local FadeTime = Table.FadeTime or 15 | |
1335 | local FadeIn = Table.FadeIn or false | |
1336 | local Material = Table.Material or "Neon" | |
1337 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
1338 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5)) | |
1339 | local LIGHTNINGMODEL = IT("Model",Effects) | |
1340 | LIGHTNINGMODEL.Name = "Lightning" | |
1341 | local LastBolt = nil | |
1342 | for E = 1, DISTANCE do | |
1343 | local ExtraSize = 0 | |
1344 | if Thicken == true then | |
1345 | ExtraSize = (DISTANCE-E)/15 | |
1346 | end | |
1347 | local TRANSPARENCY = 0 | |
1348 | if FadeIn == true then | |
1349 | TRANSPARENCY = 1-(E/(DISTANCE/1.5)) | |
1350 | if TRANSPARENCY < 0 then | |
1351 | TRANSPARENCY = 0 | |
1352 | end | |
1353 | end | |
1354 | local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
1355 | PART.Color = Color | |
1356 | MakeForm(PART,"Cyl") | |
1357 | if LastBolt == nil then | |
1358 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1359 | else | |
1360 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1361 | end | |
1362 | LastBolt = PART | |
1363 | if Branches == true and E < (DISTANCE-5) then | |
1364 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
1365 | if CHOICE == 1 then | |
1366 | local LASTBRANCH = nil | |
1367 | for i = 1, MRANDOM(2,5) do | |
1368 | local ExtraSize2 = 0 | |
1369 | if Thicken == true then | |
1370 | ExtraSize = ((DISTANCE-E)/25)/i | |
1371 | end | |
1372 | local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
1373 | PART.Color = Color | |
1374 | MakeForm(PART,"Cyl") | |
1375 | if LASTBRANCH == nil then | |
1376 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1377 | else | |
1378 | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1379 | end | |
1380 | LASTBRANCH = PART | |
1381 | end | |
1382 | end | |
1383 | end | |
1384 | end | |
1385 | if Dissapear == true then | |
1386 | coroutine.resume(coroutine.create(function() | |
1387 | for i = 1, FadeTime do | |
1388 | Swait() | |
1389 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
1390 | if c.ClassName == "Part" then | |
1391 | c.Transparency = c.Transparency + (i/FadeTime)/10 | |
1392 | end | |
1393 | end | |
1394 | end | |
1395 | LIGHTNINGMODEL:remove() | |
1396 | end)) | |
1397 | elseif Dissapear == false then | |
1398 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
1399 | end | |
1400 | return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
1401 | end | |
1402 | ||
1403 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1404 | local cR=255 | |
1405 | local cG=0 | |
1406 | local cB=0 | |
1407 | local flg5=1 local omgidk=1 | |
1408 | local add=15 | |
1409 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1410 | if omgidk>10000 then omgidk=0 end | |
1411 | omgidk=omgidk+1 | |
1412 | if cR>=255 then flg5=1 end | |
1413 | if cG>=255 then flg5=2 end | |
1414 | if cB>=255 then flg5=3 end | |
1415 | if flg5==1 then cR=cR-add cG=cG+add end | |
1416 | if flg5==2 then cG=cG-add cB=cB+add end | |
1417 | if flg5==3 then cB=cB-add cR=cR+add end | |
1418 | color=Color3.fromRGB(cR,cG,cB) | |
1419 | function WACKYEFFECT(Table) | |
1420 | local TYPE = (Table.EffectType or "Sphere") | |
1421 | local SIZE = (Table.Size or VT(6,6,6)) | |
1422 | local ENDSIZE = (Table.Size2 or VT(7,7,7)) | |
1423 | local TRANSPARENCY = (Table.Transparency or 0) | |
1424 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1425 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1426 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1427 | local ROTATION1 = (Table.RotationX or 0) | |
1428 | local ROTATION2 = (Table.RotationY or 0) | |
1429 | local ROTATION3 = (Table.RotationZ or 0) | |
1430 | local MATERIAL = "Neon" | |
1431 | local COLOR = color | |
1432 | local TIME = (Table.Time or 45) | |
1433 | local SOUNDID = (Table.SoundID or nil) | |
1434 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1435 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1436 | coroutine.resume(coroutine.create(function() | |
1437 | local PLAYSSOUND = false | |
1438 | local SOUND = nil | |
1439 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1440 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1441 | PLAYSSOUND = true | |
1442 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1443 | end | |
1444 | EFFECT.Color = color | |
1445 | local MSH = nil | |
1446 | if TYPE == "Sphere" then | |
1447 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1448 | elseif TYPE == "Block" then | |
1449 | MSH = IT("BlockMesh",EFFECT) | |
1450 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1451 | elseif TYPE == "Wave" then | |
1452 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1453 | elseif TYPE == "Ring" then | |
1454 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1455 | elseif TYPE == "Slash" then | |
1456 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1457 | elseif TYPE == "Round Slash" then | |
1458 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1459 | elseif TYPE == "Swirl" then | |
1460 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1461 | elseif TYPE == "Skull" then | |
1462 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1463 | elseif TYPE == "Crystal" then | |
1464 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1465 | end | |
1466 | if MSH ~= nil then | |
1467 | local MOVESPEED = nil | |
1468 | if MOVEDIRECTION ~= nil then | |
1469 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1470 | end | |
1471 | local GROWTH = SIZE - ENDSIZE | |
1472 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1473 | if TYPE == "Block" then | |
1474 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1475 | else | |
1476 | EFFECT.CFrame = CFRAME | |
1477 | end | |
1478 | for LOOP = 1, TIME+1 do | |
1479 | Swait() | |
1480 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1481 | if TYPE == "Wave" then | |
1482 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1483 | end | |
1484 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1485 | if TYPE == "Block" then | |
1486 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1487 | else | |
1488 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1489 | end | |
1490 | if MOVEDIRECTION ~= nil then | |
1491 | local ORI = EFFECT.Orientation | |
1492 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1493 | EFFECT.Orientation = ORI | |
1494 | end | |
1495 | end | |
1496 | if PLAYSSOUND == false then | |
1497 | EFFECT:remove() | |
1498 | else | |
1499 | SOUND.Stopped:Connect(function() | |
1500 | EFFECT:remove() | |
1501 | end) | |
1502 | end | |
1503 | else | |
1504 | if PLAYSSOUND == false then | |
1505 | EFFECT:remove() | |
1506 | else | |
1507 | repeat Swait() until SOUND.Playing == false | |
1508 | EFFECT:remove() | |
1509 | end | |
1510 | end | |
1511 | end)) | |
1512 | end | |
1513 | end) | |
1514 | function MakeForm(PART,TYPE) | |
1515 | if TYPE == "Cyl" then | |
1516 | local MSH = IT("CylinderMesh",PART) | |
1517 | elseif TYPE == "Ball" then | |
1518 | local MSH = IT("SpecialMesh",PART) | |
1519 | MSH.MeshType = "Sphere" | |
1520 | elseif TYPE == "Wedge" then | |
1521 | local MSH = IT("SpecialMesh",PART) | |
1522 | MSH.MeshType = "Wedge" | |
1523 | end | |
1524 | end | |
1525 | function SpawnTrail(FROM,TO,BIG) | |
1526 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10)) | |
1527 | MakeForm(TRAIL,"Cyl") | |
1528 | local cR=255 | |
1529 | local cG=0 | |
1530 | local cB=0 | |
1531 | local flg5=1 local omgidk=1 | |
1532 | local add=15 | |
1533 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1534 | if omgidk>10000 then omgidk=0 end | |
1535 | omgidk=omgidk+1 | |
1536 | if cR>=255 then flg5=1 end | |
1537 | if cG>=255 then flg5=2 end | |
1538 | if cB>=255 then flg5=3 end | |
1539 | if flg5==1 then cR=cR-add cG=cG+add end | |
1540 | if flg5==2 then cG=cG-add cB=cB+add end | |
1541 | if flg5==3 then cB=cB-add cR=cR+add end | |
1542 | color=Color3.fromRGB(cR,cG,cB) | |
1543 | TRAIL.Color = color | |
1544 | end) | |
1545 | local DIST = (FROM - TO).Magnitude | |
1546 | if BIG == true then | |
1547 | TRAIL.Size = VT(5,DIST,5) | |
1548 | else | |
1549 | TRAIL.Size = VT(5,DIST,5) | |
1550 | end | |
1551 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1552 | coroutine.resume(coroutine.create(function() | |
1553 | for i = 1, 55 do | |
1554 | Swait() | |
1555 | TRAIL.Transparency = TRAIL.Transparency + 0.01 | |
1556 | end | |
1557 | TRAIL:remove() | |
1558 | end)) | |
1559 | end | |
1560 | ||
1561 | Debris = game:GetService("Debris") | |
1562 | ||
1563 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1564 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1565 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1566 | end | |
1567 | ||
1568 | function turnto(position) | |
1569 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1570 | end | |
1571 | ||
1572 | --//=================================\\ | |
1573 | --|| WEAPON CREATION | |
1574 | --\\=================================// | |
1575 | ||
1576 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1577 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1578 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1579 | MakeForm(Part,"Wedge") | |
1580 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1581 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1582 | MakeForm(Part,"Wedge") | |
1583 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1584 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1585 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1586 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1587 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1588 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1589 | MakeForm(Part,"Cyl") | |
1590 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1591 | for i = 1, 8 do | |
1592 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1593 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1594 | end | |
1595 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1596 | MakeForm(Part,"Cyl") | |
1597 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1598 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1599 | MakeForm(Part,"Ball") | |
1600 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1601 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1602 | MakeForm(Part,"Wedge") | |
1603 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1604 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1605 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1606 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1607 | MakeForm(Part,"Cyl") | |
1608 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1609 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1610 | MakeForm(Part,"Cyl") | |
1611 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1612 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1613 | MakeForm(Part,"Cyl") | |
1614 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1615 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1616 | MakeForm(Part,"Wedge") | |
1617 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1618 | local LASTPART = Handle | |
1619 | for i = 1, 10 do | |
1620 | if LASTPART == Handle then | |
1621 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1622 | LASTPART = Part | |
1623 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1624 | else | |
1625 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1626 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1627 | LASTPART = Part | |
1628 | end | |
1629 | end | |
1630 | ||
1631 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1632 | MakeForm(Barrel,"Cyl") | |
1633 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1634 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1635 | MakeForm(Part,"Cyl") | |
1636 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1637 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1638 | MakeForm(Part,"Wedge") | |
1639 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1640 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1641 | MakeForm(Hole,"Cyl") | |
1642 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1643 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1644 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1645 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1646 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1647 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1648 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1649 | coroutine.resume(coroutine.create(function() | |
1650 | while wait() do | |
1651 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1652 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1653 | end | |
1654 | end)) | |
1655 | ||
1656 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1657 | local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1658 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1659 | MakeForm(Part,"Wedge") | |
1660 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1661 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1662 | MakeForm(Part,"Wedge") | |
1663 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1664 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1665 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1666 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1667 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1668 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1669 | MakeForm(Part,"Cyl") | |
1670 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1671 | for i = 1, 8 do | |
1672 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1673 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1674 | end | |
1675 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1676 | MakeForm(Part,"Cyl") | |
1677 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1678 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1679 | MakeForm(Part,"Ball") | |
1680 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1681 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1682 | MakeForm(Part,"Wedge") | |
1683 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1684 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1685 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1686 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1687 | MakeForm(Part,"Cyl") | |
1688 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1689 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1690 | MakeForm(Part,"Cyl") | |
1691 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1692 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1693 | MakeForm(Part,"Cyl") | |
1694 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1695 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1696 | MakeForm(Part,"Wedge") | |
1697 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1698 | local LASTPART = Handle | |
1699 | for i = 1, 10 do | |
1700 | if LASTPART == Handle then | |
1701 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1702 | LASTPART = Part | |
1703 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1704 | else | |
1705 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1706 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1707 | LASTPART = Part | |
1708 | end | |
1709 | end | |
1710 | ||
1711 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1712 | MakeForm(Barrel,"Cyl") | |
1713 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1714 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1715 | MakeForm(Part,"Cyl") | |
1716 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1717 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1718 | MakeForm(Part,"Wedge") | |
1719 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1720 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1721 | MakeForm(Hole,"Cyl") | |
1722 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1723 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1724 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1725 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1726 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1727 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1728 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1729 | coroutine.resume(coroutine.create(function() | |
1730 | while wait() do | |
1731 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1732 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1733 | end | |
1734 | end)) | |
1735 | ||
1736 | local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, LeftArm, HANDLE, CF(0,-1.1,-0.25)*ANGLES(RAD(-110),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(180)), CF(0,0,0)) | |
1737 | ||
1738 | for i = 1, 35 do | |
1739 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
1740 | FACE.Color = C3(0,0,0) | |
1741 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1742 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1743 | end | |
1744 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.6,0.1,1)/2,false) | |
1745 | MakeForm(Eye,"Ball") | |
1746 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1747 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.6,0.1,1)/2,false) | |
1748 | MakeForm(Eye,"Ball") | |
1749 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1750 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.1,1,1)/2,false) | |
1751 | MakeForm(Eye,"Ball") | |
1752 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1753 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.1,1,1)/2,false) | |
1754 | MakeForm(Eye,"Ball") | |
1755 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1756 | ||
1757 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", "Eon", VT(0.5,0.5,1.25),false) | |
1758 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1759 | ||
1760 | local Particle = IT("ParticleEmitter",nil) | |
1761 | Particle.Enabled = false | |
1762 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1763 | Particle.LightEmission = 0.5 | |
1764 | Particle.Rate = 150 | |
1765 | Particle.ZOffset = 0.2 | |
1766 | Particle.Rotation = NumberRange.new(-180, 180) | |
1767 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1768 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1769 | Particle.Color = ColorSequence.new(C3(255,128,0),C3(0,155,0),C3(255,255,0),C3(0,255,0),C3(0,255,255),C3(0,0,255),C3(191,0,255),C3(255,0,191)) | |
1770 | ||
1771 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1772 | function ParticleEmitter(Table) | |
1773 | local PRTCL = Particle:Clone() | |
1774 | local Speed = Table.Speed or 5 | |
1775 | local Drag = Table.Drag or 0 | |
1776 | local Size1 = Table.Size1 or 1 | |
1777 | local Size2 = Table.Size2 or 5 | |
1778 | local Lifetime1 = Table.Lifetime1 or 1 | |
1779 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1780 | local Parent = Table.Parent or Torso | |
1781 | local Emit = Table.Emit or 100 | |
1782 | local Offset = Table.Offset or 360 | |
1783 | local Acel = Table.Acel or VT(0,0,0) | |
1784 | local Enabled = Table.Enabled or false | |
1785 | PRTCL.Parent = Parent | |
1786 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1787 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1788 | PRTCL.Speed = NumberRange.new(Speed) | |
1789 | PRTCL.VelocitySpread = Offset | |
1790 | PRTCL.Drag = Drag | |
1791 | PRTCL.Acceleration = Acel | |
1792 | if Enabled == false then | |
1793 | PRTCL:Emit(Emit) | |
1794 | Debris:AddItem(PRTCL,Lifetime2) | |
1795 | else | |
1796 | PRTCL.Enabled = true | |
1797 | end | |
1798 | return PRTCL | |
1799 | end | |
1800 | ||
1801 | ||
1802 | for i = 1, 10 do | |
1803 | if LASTPART == Handle then | |
1804 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1805 | LASTPART = Part | |
1806 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1807 | else | |
1808 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1809 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1810 | LASTPART = Part | |
1811 | end | |
1812 | end | |
1813 | ||
1814 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)}) | |
1815 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 10, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)}) | |
1816 | ||
1817 | local cR=255 | |
1818 | local cG=0 | |
1819 | local cB=0 | |
1820 | local flg5=1 local omgidk=1 | |
1821 | local add=15 | |
1822 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1823 | if omgidk>10000 then omgidk=0 end | |
1824 | omgidk=omgidk+1 | |
1825 | if cR>=255 then flg5=1 end | |
1826 | if cG>=255 then flg5=2 end | |
1827 | if cB>=255 then flg5=3 end | |
1828 | if flg5==1 then cR=cR-add cG=cG+add end | |
1829 | if flg5==2 then cG=cG-add cB=cB+add end | |
1830 | if flg5==3 then cB=cB-add cR=cR+add end | |
1831 | color=Color3.fromRGB(cR,cG,cB) | |
1832 | for _, c in pairs(Weapon:GetDescendants()) do | |
1833 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1834 | c.Material = "Glass" | |
1835 | c.Color = C3(0,0,0) | |
1836 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1837 | c.Color = color | |
1838 | c.Material = "Neon" | |
1839 | end | |
1840 | end | |
1841 | end) | |
1842 | Weapon.Parent = Character | |
1843 | for _, c in pairs(Weapon:GetChildren()) do | |
1844 | if c.ClassName == "Part" then | |
1845 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1846 | end | |
1847 | end | |
1848 | ||
1849 | function swait(num) | |
1850 | if num == 0 or num == nil then | |
1851 | ArtificialHB.Event:wait() | |
1852 | else | |
1853 | for i = 0, num do | |
1854 | ArtificialHB.Event:wait() | |
1855 | end | |
1856 | end | |
1857 | end | |
1858 | ||
1859 | function chatfunc(text) | |
1860 | local chat = coroutine.wrap(function() | |
1861 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1862 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1863 | end | |
1864 | local Bill = Instance.new("BillboardGui",Character) | |
1865 | Bill.Size = UDim2.new(0,100,0,40) | |
1866 | Bill.StudsOffset = Vector3.new(0,3,0) | |
1867 | Bill.Adornee = Character.Head | |
1868 | Bill.Name = "TalkingBillBoard" | |
1869 | local Hehe = Instance.new("TextLabel",Bill) | |
1870 | Hehe.BackgroundTransparency = 1 | |
1871 | Hehe.BorderSizePixel = 0 | |
1872 | Hehe.Text = "" | |
1873 | Hehe.Font = "Bodoni" | |
1874 | Hehe.TextSize = 40 | |
1875 | Hehe.TextStrokeTransparency = 0 | |
1876 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1877 | coroutine.resume(coroutine.create(function() | |
1878 | while Hehe ~= nil do | |
1879 | swait() | |
1880 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1881 | Hehe.Rotation = math.random(-5,5) | |
1882 | Hehe.TextColor3 = Color3.new(0,255,0) | |
1883 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
1884 | end | |
1885 | end)) | |
1886 | for i = 1,string.len(text),1 do | |
1887 | swait() | |
1888 | Hehe.Text = string.sub(text,1,i) | |
1889 | end | |
1890 | swait(90)--Re[math.random(1, 93)] | |
1891 | for i = 0, 1, .025 do | |
1892 | swait() | |
1893 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1894 | Hehe.TextStrokeTransparency = i | |
1895 | Hehe.TextTransparency = i | |
1896 | end | |
1897 | Bill:Destroy() | |
1898 | end) | |
1899 | chat() | |
1900 | end | |
1901 | ||
1902 | function onChatted(msg) | |
1903 | chatfunc(msg) | |
1904 | end | |
1905 | ||
1906 | Player.Chatted:connect(onChatted) | |
1907 | ||
1908 | local BODY = {} | |
1909 | for _, c in pairs(Character:GetDescendants()) do | |
1910 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1911 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1912 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1913 | end | |
1914 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1915 | elseif c:IsA("JointInstance") then | |
1916 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1917 | end | |
1918 | end | |
1919 | ||
1920 | function refit() | |
1921 | Character.Parent = workspace | |
1922 | for e = 1, #BODY do | |
1923 | if BODY[e] ~= nil then | |
1924 | local STUFF = BODY[e] | |
1925 | local PART = STUFF[1] | |
1926 | local PARENT = STUFF[2] | |
1927 | local MATERIAL = STUFF[3] | |
1928 | local COLOR = STUFF[4] | |
1929 | local TRANSPARENCY = STUFF[5] | |
1930 | --local SIZE = STUFF[6] | |
1931 | local NAME = STUFF[7] | |
1932 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1933 | PART.Material = MATERIAL | |
1934 | PART.Transparency = TRANSPARENCY | |
1935 | PART.Name = NAME | |
1936 | end | |
1937 | if PART.Parent ~= PARENT then | |
1938 | Humanoid:remove() | |
1939 | PART.Parent = PARENT | |
1940 | Humanoid = IT("Humanoid",Character) | |
1941 | end | |
1942 | end | |
1943 | end | |
1944 | end | |
1945 | ||
1946 | local SKILLTEXTCOLOR = C3(0,255,0) | |
1947 | local SKILLFONT = "Code" | |
1948 | local SKILLTEXTSIZE = 7 | |
1949 | ||
1950 | Humanoid.Died:connect(function() | |
1951 | refit() | |
1952 | end) | |
1953 | ||
1954 | function printbye(Name) | |
1955 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1956 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1957 | end | |
1958 | ||
1959 | workspace.ChildAdded:connect(function(instance) | |
1960 | for BANISH = 1, #TOBANISH do | |
1961 | if TOBANISH[BANISH] ~= nil then | |
1962 | if instance.Name == TOBANISH[BANISH] then | |
1963 | coroutine.resume(coroutine.create(function() | |
1964 | printbye(instance.Name) | |
1965 | instance:ClearAllChildren() | |
1966 | Debris:AddItem(instance,0.0005) | |
1967 | end)) | |
1968 | end | |
1969 | end | |
1970 | end | |
1971 | end) | |
1972 | ||
1973 | --//=================================\\ | |
1974 | --|| DAMAGING | |
1975 | --\\=================================// | |
1976 | ||
1977 | function Banish(Foe) | |
1978 | if Foe then | |
1979 | coroutine.resume(coroutine.create(function() | |
1980 | --if game.Players:FindFirstChild(Foe.Name) then | |
1981 | table.insert(TOBANISH,Foe.Name) | |
1982 | printbye(Foe.Name) | |
1983 | --end | |
1984 | Foe.Archivable = true | |
1985 | local CLONE = Foe:Clone() | |
1986 | Foe:Destroy() | |
1987 | CLONE.Parent = Effects | |
1988 | CLONE:BreakJoints() | |
1989 | local MATERIALS = {"Glass","Neon"} | |
1990 | for _, c in pairs(CLONE:GetDescendants()) do | |
1991 | if c:IsA("BasePart") then | |
1992 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1993 | CreateSound(340722848, c, 10, 1, false) | |
1994 | end | |
1995 | c.Anchored = true | |
1996 | c.Transparency = c.Transparency + 0.2 | |
1997 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1998 | c.Color = C3(0,255,0) | |
1999 | if c.ClassName == "MeshPart" then | |
2000 | c.TextureID = "" | |
2001 | end | |
2002 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2003 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2004 | end | |
2005 | if c:FindFirstChildOfClass("Decal") then | |
2006 | c:FindFirstChildOfClass("Decal"):remove() | |
2007 | end | |
2008 | c.Name = "Banished" | |
2009 | c.CanCollide = false | |
2010 | else | |
2011 | c:remove() | |
2012 | end | |
2013 | end | |
2014 | local A = false | |
2015 | for i = 1, 35 do | |
2016 | if A == false then | |
2017 | A = true | |
2018 | elseif A == true then | |
2019 | A = false | |
2020 | end | |
2021 | for _, c in pairs(CLONE:GetDescendants()) do | |
2022 | if c:IsA("BasePart") then | |
2023 | c.Anchored = true | |
2024 | c.Material = MATERIALS[MRANDOM(1,2)] | |
2025 | c.Transparency = c.Transparency + 0.8/35 | |
2026 | if A == false then | |
2027 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
2028 | elseif A == true then | |
2029 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
2030 | end | |
2031 | end | |
2032 | end | |
2033 | Swait() | |
2034 | end | |
2035 | CLONE:remove() | |
2036 | end)) | |
2037 | end | |
2038 | end | |
2039 | ||
2040 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
2041 | local CHILDREN = workspace:GetDescendants() | |
2042 | for index, CHILD in pairs(CHILDREN) do | |
2043 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2044 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2045 | if HUM then | |
2046 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2047 | if TORSO then | |
2048 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2049 | if ISBANISH == true then | |
2050 | Banish(CHILD) | |
2051 | else | |
2052 | if ISBANISH == "Gravity" then | |
2053 | HUM.PlatformStand = true | |
2054 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2055 | local grav = Instance.new("BodyPosition",TORSO) | |
2056 | grav.D = 15 | |
2057 | grav.P = 20000 | |
2058 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2059 | grav.position = TORSO.Position | |
2060 | grav.Name = "V3BanishForce"..Player.Name | |
2061 | else | |
2062 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
2063 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
2064 | end | |
2065 | else | |
2066 | HUM.PlatformStand = false | |
2067 | end | |
2068 | end | |
2069 | elseif ISBANISH == "Gravity" then | |
2070 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2071 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
2072 | HUM.PlatformStand = false | |
2073 | end | |
2074 | end | |
2075 | end | |
2076 | end | |
2077 | end | |
2078 | end | |
2079 | end | |
2080 | ||
2081 | UnBanishTaunts = {"You Are Released.", "If You Do The Same Thing Twice You Shall Not Be Given Mercy.", "Your Actions Have Been Forgiven.", "I shall set you free.", "I have let you go.", "Don't do that again.", "As A Person, i have the emotion of forgiving.", "Its Only Fair To Show You Mercy."} | |
2082 | --//=================================\\ | |
2083 | --|| ATTACK FUNCTIONS AND STUFF | |
2084 | --\\=================================// | |
2085 | ||
2086 | local LAUGHS = {"907329532", "907329893", "865772398", "907333294"} | |
2087 | ||
2088 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
2089 | MakeForm(RightHole,"Cyl") | |
2090 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
2091 | MakeForm(LeftHole,"Cyl") | |
2092 | ||
2093 | function getbloody(victim,amount) | |
2094 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
2095 | PART.CFrame = victim.CFrame | |
2096 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
2097 | Debris:AddItem(PART,5) | |
2098 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
2099 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
2100 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
2101 | local prtcl = asd:Clone() | |
2102 | prtcl.Parent = PART | |
2103 | prtcl:Emit(amount*10) | |
2104 | end | |
2105 | ||
2106 | GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false) | |
2107 | ||
2108 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
2109 | if DoesCourontine == false then | |
2110 | local Direction = CF(Part.Position, ToLocation) | |
2111 | local Distance = (Part.Position - ToLocation).magnitude | |
2112 | for i = 1, AmountOfTime do | |
2113 | Swait() | |
2114 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
2115 | Direction = Part.CFrame | |
2116 | end | |
2117 | Part:remove() | |
2118 | elseif DoesCourontine == true then | |
2119 | coroutine.resume(coroutine.create(function() | |
2120 | local Direction = CF(Part.Position, ToLocation) | |
2121 | local Distance = (Part.Position - ToLocation).magnitude | |
2122 | for i = 1, AmountOfTime do | |
2123 | Swait() | |
2124 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
2125 | Direction = Part.CFrame | |
2126 | end | |
2127 | Part:remove() | |
2128 | end)) | |
2129 | end | |
2130 | end | |
2131 | ||
2132 | function AttackTemplate() | |
2133 | ATTACK = true | |
2134 | Rooted = false | |
2135 | for i=0, 0, 0.1 / Animation_Speed do | |
2136 | Swait() | |
2137 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2138 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2139 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2140 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2141 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2142 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2143 | end | |
2144 | ATTACK = false | |
2145 | Rooted = false | |
2146 | end | |
2147 | ||
2148 | function Nova_Blast() | |
2149 | local HITBODIES = {} | |
2150 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "White", "CenterPart", VT(0,0,0)) | |
2151 | local HITFLOOR,ECH,NORMAL = Raycast(Mouse.Hit.p+VT(0,2,0), (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 10000000, Character) | |
2152 | CENTER.CFrame = CF(ECH) | |
2153 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Laser01", VT(25,99999,25)) | |
2154 | RAY.Color = C3(0.05,0.05,0.15) | |
2155 | MakeForm(RAY,"Cyl") | |
2156 | RAY.CFrame = CF(ECH) | |
2157 | for i = 1, 75 do | |
2158 | Swait() | |
2159 | RAY.Transparency = RAY.Transparency - 1/75 | |
2160 | RAY.Size = RAY.Size - VT(25/75,0,25/75) | |
2161 | MagicSphere(VT(1,1,1),15,CF(ECH)*CF(MRANDOM(-15,15),MRANDOM(0,100),MRANDOM(-15,15)),C3(1,1,1),VT(0,0,0)) | |
2162 | end | |
2163 | killnearest(ECH,25,25) | |
2164 | MagicSphere(VT(0,0,0),55,CF(ECH),C3(0.05,0.05,0.15),VT(2,2,2)) | |
2165 | for i = 1, 25 do | |
2166 | MagicSphere(VT(1,1,1),i*3,CF(ECH)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0)) | |
2167 | end | |
2168 | CreateSound("168586621", CENTER, 10, 0.8) | |
2169 | RAY:remove() | |
2170 | Debris:AddItem(CENTER,5) | |
2171 | end | |
2172 | ||
2173 | function Morning_Star() | |
2174 | ATTACK = true | |
2175 | Rooted = true | |
2176 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
2177 | for i=0, 0, 0.1 / Animation_Speed do | |
2178 | Swait() | |
2179 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2180 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2181 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2182 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2183 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2184 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2185 | end | |
2186 | coroutine.resume(coroutine.create(function() | |
2187 | local POS = Mouse.Hit.p | |
2188 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "White", "Eye", VT(0,2000,0)) | |
2189 | MakeForm(RAY,"Cyl") | |
2190 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Eye", VT(0,0,0)) | |
2191 | MakeForm(SPHERE,"Ball") | |
2192 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Eye", VT(0,0,0)) | |
2193 | MakeForm(SHIELD,"Ball") | |
2194 | SHIELD.CFrame = CF(POS) | |
2195 | RAY.CFrame = CF(POS) | |
2196 | SPHERE.CFrame = CF(POS) | |
2197 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
2198 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
2199 | for i = 1, 200 do | |
2200 | Swait() | |
2201 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2202 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
2203 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
2204 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
2205 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
2206 | end | |
2207 | for i = 1, 45 do | |
2208 | Swait() | |
2209 | RAY.Transparency = RAY.Transparency + 1/45 | |
2210 | SPHERE.Transparency = RAY.Transparency | |
2211 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
2212 | end | |
2213 | RAY:remove() | |
2214 | SHIELD:remove() | |
2215 | SPHERE:remove() | |
2216 | end)) | |
2217 | for i=0, 0, 0.1 / Animation_Speed do | |
2218 | Swait() | |
2219 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2220 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2221 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2222 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2223 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2224 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2225 | end | |
2226 | ATTACK = false | |
2227 | Rooted = false | |
2228 | end | |
2229 | ||
2230 | function Deathbound() | |
2231 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
2232 | ATTACK = true | |
2233 | Rooted = true | |
2234 | for i=0, 0, 0.1 / Animation_Speed do | |
2235 | Swait() | |
2236 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2237 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2238 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2239 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2240 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2241 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2242 | end | |
2243 | local DONE = false | |
2244 | local GATE = nil | |
2245 | local GATESPIN = true | |
2246 | coroutine.resume(coroutine.create(function() | |
2247 | repeat | |
2248 | Swait() | |
2249 | if GATE ~= nil then | |
2250 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
2251 | end | |
2252 | until GATESPIN == false | |
2253 | end)) | |
2254 | coroutine.resume(coroutine.create(function() | |
2255 | repeat | |
2256 | Swait() | |
2257 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2258 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2259 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2260 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2261 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2262 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2263 | until DONE == true | |
2264 | Swait(50) | |
2265 | for i = 1, 35 do | |
2266 | Swait(4) | |
2267 | local FIRED = false | |
2268 | local CHILDREN = workspace:GetDescendants() | |
2269 | for index, CHILD in pairs(CHILDREN) do | |
2270 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2271 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2272 | if HUM then | |
2273 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2274 | if TORSO then | |
2275 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2276 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2277 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2278 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
2279 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2280 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2281 | Kill(CHILD) | |
2282 | FIRED = true | |
2283 | break | |
2284 | end | |
2285 | end | |
2286 | end | |
2287 | end | |
2288 | end | |
2289 | if FIRED == false then | |
2290 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2291 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
2292 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2293 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2294 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2295 | if HITBOD ~= nil then | |
2296 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2297 | Kill(HITBOD.Parent) | |
2298 | end | |
2299 | end | |
2300 | end | |
2301 | end | |
2302 | for i = 1, 45 do | |
2303 | Swait() | |
2304 | GATE.Size = GATE.Size - VT(30,0,30) | |
2305 | end | |
2306 | GATESPIN = false | |
2307 | GATE:remove() | |
2308 | end)) | |
2309 | Swait(15) | |
2310 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2311 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Eye", VT(0,0,0)) | |
2312 | local DECAL = IT("Decal",GATE) | |
2313 | DECAL.Texture = "http://www.roblox.com/asset/?id=647661410" | |
2314 | DECAL.Face = "Top" | |
2315 | GATE.CFrame = CF(HITPOS) | |
2316 | CreateSound(160772554, GATE, 7, 1.3, false) | |
2317 | for i = 1, 45 do | |
2318 | Swait() | |
2319 | GATE.Size = GATE.Size + VT(30,0,30) | |
2320 | end | |
2321 | CreateSound(145080998, RightHole, 7, 1, false) | |
2322 | CreateSound(145080998, LeftHole, 7, 1, false) | |
2323 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2324 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2325 | ATTACK = false | |
2326 | Rooted = false | |
2327 | DONE = true | |
2328 | end | |
2329 | ||
2330 | function Nuke() | |
2331 | ATTACK = true | |
2332 | Rooted = true | |
2333 | local CHARGE = false | |
2334 | local BLASTS = {468991944, 468991990} | |
2335 | coroutine.resume(coroutine.create(function() | |
2336 | repeat | |
2337 | Swait() | |
2338 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
2339 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
2340 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
2341 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
2342 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2343 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2344 | until CHARGE == true | |
2345 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
2346 | Swait() | |
2347 | WACKYEFFECT({ | |
2348 | Time = 15, | |
2349 | EffectType = "Sphere", | |
2350 | Size = VT(60, 60, 60), | |
2351 | Size2 = VT(0, 0, 0), | |
2352 | Transparency = 1, | |
2353 | Transparency2 = 0.7, | |
2354 | CFrame = CF(RootPart.Position), | |
2355 | MoveToPos = nil, | |
2356 | RotationX = 0, | |
2357 | RotationY = 0, | |
2358 | RotationZ = 0, | |
2359 | Material = "Neon", | |
2360 | Color = C3(1, 1, 1), | |
2361 | SoundID = nil, | |
2362 | SoundPitch = nil, | |
2363 | SoundVolume = nil | |
2364 | }) | |
2365 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2366 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2367 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-50 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2368 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(50 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2369 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2370 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2371 | end | |
2372 | coroutine.resume(coroutine.create(function() | |
2373 | local POS = RootPart.Position | |
2374 | wait(0.2) | |
2375 | for i = 1, 5 do | |
2376 | WACKYEFFECT({ | |
2377 | Time = 65, | |
2378 | EffectType = "Sphere", | |
2379 | Size = VT(2, 2, 2), | |
2380 | Size2 = VT(0, 0, 500), | |
2381 | Transparency = 1, | |
2382 | Transparency2 = 0, | |
2383 | CFrame = CF(POS), | |
2384 | MoveToPos = nil, | |
2385 | RotationX = MRANDOM(-2, 2), | |
2386 | RotationY = MRANDOM(-12, 12), | |
2387 | RotationZ = MRANDOM(-2, 2), | |
2388 | Material = "Neon", | |
2389 | Color = C3(1, 1, 1), | |
2390 | SoundID = nil, | |
2391 | SoundPitch = nil, | |
2392 | SoundVolume = nil | |
2393 | }) | |
2394 | end | |
2395 | wait(1) | |
2396 | SHAKECAM(POS, 9999999999, 25, 25) | |
2397 | ApplyAoE(POS, 450) | |
2398 | WACKYEFFECT({ | |
2399 | Time = 85, | |
2400 | EffectType = "Sphere", | |
2401 | Size = VT(120, 120, 120), | |
2402 | Size2 = VT(350, 350, 350), | |
2403 | Transparency = 0, | |
2404 | Transparency2 = 1, | |
2405 | CFrame = CF(POS), | |
2406 | MoveToPos = nil, | |
2407 | RotationX = 0, | |
2408 | RotationY = 0, | |
2409 | RotationZ = 0, | |
2410 | Material = "Neon", | |
2411 | Color = C3(1, 1, 1), | |
2412 | SoundID = nil, | |
2413 | SoundPitch = 1, | |
2414 | SoundVolume = 10 | |
2415 | }) | |
2416 | for i = 1, 20 do | |
2417 | WACKYEFFECT({ | |
2418 | Time = 85, | |
2419 | EffectType = "Sphere", | |
2420 | Size = VT(120, 120, 120), | |
2421 | Size2 = VT(120, 120, 144) + VT(i * 3, i * 3, i * 3), | |
2422 | Transparency = 0.8, | |
2423 | Transparency2 = 1, | |
2424 | CFrame = CF(POS), | |
2425 | MoveToPos = nil, | |
2426 | RotationX = 0, | |
2427 | RotationY = 0, | |
2428 | RotationZ = 0, | |
2429 | Material = "Neon", | |
2430 | Color = C3(1, 1, 1), | |
2431 | SoundID = nil, | |
2432 | SoundPitch = 1, | |
2433 | SoundVolume = 10 | |
2434 | }) | |
2435 | WACKYEFFECT({ | |
2436 | Time = 100, | |
2437 | EffectType = "Wave", | |
2438 | Size = VT(25, 2, 25), | |
2439 | Size2 = VT(400, 0, 400) * 1.2, | |
2440 | Transparency = 0, | |
2441 | Transparency2 = 1, | |
2442 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2443 | MoveToPos = nil, | |
2444 | RotationX = 0, | |
2445 | RotationY = 0, | |
2446 | RotationZ = 0, | |
2447 | Material = "Neon", | |
2448 | Color = C3(1, 1, 1), | |
2449 | SoundID = nil, | |
2450 | SoundPitch = nil, | |
2451 | SoundVolume = nil | |
2452 | }) | |
2453 | end | |
2454 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2455 | for i = 1, 5 do | |
2456 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
2457 | WACKYEFFECT({ | |
2458 | Time = 120, | |
2459 | EffectType = "Wave", | |
2460 | Size = VT(150, 2, 150), | |
2461 | Size2 = VT(300 + i * 170, 0, 300 + i * 170) * 1.2, | |
2462 | Transparency = 0, | |
2463 | Transparency2 = 1, | |
2464 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
2465 | MoveToPos = nil, | |
2466 | RotationX = 0, | |
2467 | RotationY = 0, | |
2468 | RotationZ = 0, | |
2469 | Material = "Neon", | |
2470 | Color = C3(1, 1, 1), | |
2471 | SoundID = nil, | |
2472 | SoundPitch = nil, | |
2473 | SoundVolume = nil | |
2474 | }) | |
2475 | end | |
2476 | end)) | |
2477 | for i = 0, 1, 0.1 / Animation_Speed do | |
2478 | Swait() | |
2479 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2480 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2481 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2482 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2483 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2484 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2485 | end | |
2486 | ATTACK = false | |
2487 | Rooted = false | |
2488 | end)) | |
2489 | for i = 1, 30 do | |
2490 | wait(0.01) | |
2491 | local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150)) | |
2492 | local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2493 | if HITFLOOR then | |
2494 | ApplyAoE(HITPOS, 65, true) | |
2495 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
2496 | WACKYEFFECT({ | |
2497 | Time = 25, | |
2498 | EffectType = "Sphere", | |
2499 | Size = VT(22, 22, 22), | |
2500 | Size2 = VT(85, 85, 85), | |
2501 | Transparency = 0, | |
2502 | Transparency2 = 1, | |
2503 | CFrame = CF(HITPOS), | |
2504 | MoveToPos = nil, | |
2505 | RotationX = 0, | |
2506 | RotationY = 0, | |
2507 | RotationZ = 0, | |
2508 | Material = "Neon", | |
2509 | Color = C3(1, 1, 1), | |
2510 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
2511 | SoundPitch = MRANDOM(9, 12) / 10, | |
2512 | SoundVolume = 10 | |
2513 | }) | |
2514 | for e = 1, 3 do | |
2515 | WACKYEFFECT({ | |
2516 | EffectType = "Wave", | |
2517 | Size = VT(25, 0, 25), | |
2518 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
2519 | Transparency = 0, | |
2520 | Transparency2 = 1, | |
2521 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2522 | MoveToPos = nil, | |
2523 | RotationX = 0, | |
2524 | RotationY = 3, | |
2525 | RotationZ = 0, | |
2526 | Material = "Neon", | |
2527 | Color = C3(1, 1, 1), | |
2528 | SoundID = nil, | |
2529 | SoundPitch = nil, | |
2530 | SoundVolume = nil | |
2531 | }) | |
2532 | WACKYEFFECT({ | |
2533 | Time = 35, | |
2534 | EffectType = "Sphere", | |
2535 | Size = VT(22, 45, 22), | |
2536 | Size2 = VT(25, 45 + e * 75, 25), | |
2537 | Transparency = 0, | |
2538 | Transparency2 = 1, | |
2539 | CFrame = CF(HITPOS) * TURN, | |
2540 | MoveToPos = nil, | |
2541 | RotationX = 0, | |
2542 | RotationY = 0, | |
2543 | RotationZ = 0, | |
2544 | Material = "Neon", | |
2545 | Color = C3(1, 1, 1), | |
2546 | SoundID = nil, | |
2547 | SoundPitch = MRANDOM(9, 12) / 10, | |
2548 | SoundVolume = 10 | |
2549 | }) | |
2550 | end | |
2551 | end | |
2552 | end | |
2553 | CHARGE = true | |
2554 | end | |
2555 | ||
2556 | function oofBeam() | |
2557 | ATTACK = true | |
2558 | Rooted = false | |
2559 | VALUE2 = true | |
2560 | local GYRO = IT("BodyGyro", RootPart) | |
2561 | GYRO.D = 20 | |
2562 | GYRO.P = 4000 | |
2563 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2564 | local POS = RootPart.Position + VT(0, 25, 0) | |
2565 | CreateSound("1371567007", Effects, 35, MRANDOM(9, 10) / 10) | |
2566 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2567 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2568 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2569 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2570 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2571 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2572 | coroutine.resume(coroutine.create(function() | |
2573 | local E = 0 | |
2574 | repeat | |
2575 | E = E + 5 | |
2576 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2577 | Swait() | |
2578 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2579 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2580 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2581 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2582 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2583 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2584 | until ATTACK == false | |
2585 | GYRO:remove() | |
2586 | end)) | |
2587 | for i = 1, 50 do | |
2588 | Swait() | |
2589 | end | |
2590 | for i = 1, 25 do | |
2591 | Swait() | |
2592 | WACKYEFFECT({ | |
2593 | Time = 15, | |
2594 | EffectType = "Ball", | |
2595 | Size = VT(4, 4, 4), | |
2596 | Size2 = VT(0, 0, 0), | |
2597 | Transparency = 1, | |
2598 | Transparency2 = 0, | |
2599 | CFrame = CF(Eon.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
2600 | MoveToPos = Eon.Position, | |
2601 | RotationX = 0, | |
2602 | RotationY = 0, | |
2603 | RotationZ = 0, | |
2604 | Material = "Neon", | |
2605 | Color = C3(1, 0, 0), | |
2606 | SoundID = nil, | |
2607 | SoundPitch = nil, | |
2608 | SoundVolume = nil | |
2609 | }) | |
2610 | end | |
2611 | local LOOP = 0 | |
2612 | local BEAMO = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lime green"), "Beamo", VT(0,0,0)) | |
2613 | MakeForm(BEAMO, "Ball") | |
2614 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Really red"), "Beam", VT(0, 0, 0), true) | |
2615 | MakeForm(BEAM, "Cyl") | |
2616 | repeat | |
2617 | local DISTANCE = (Eon.Position - Mouse.Hit.p).Magnitude | |
2618 | if DISTANCE < 2000 then | |
2619 | BEAMO.Size = VT(3 + 1 * COS(SINE / 4), 3 + 1 * COS(SINE / 4), 3 + 1 * COS(SINE / 4)) | |
2620 | BEAMO.CFrame = CF(Eon.Position) | |
2621 | BEAM.Size = VT(2 + 1 * COS(SINE / 4), DISTANCE, 2 + 1 * COS(SINE / 4)) | |
2622 | BEAM.CFrame = CF(Eon.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2623 | ApplyAoE(Mouse.Hit.p, 14,true,false) | |
2624 | WACKYEFFECT({ | |
2625 | Time = 35, | |
2626 | EffectType = "Sphere", | |
2627 | Size = VT(6 + 2 * COS(SINE / 4), 6 + 2 * COS(SINE / 4), 6 + 2 * COS(SINE / 4)) * 2, | |
2628 | Size2 = VT(5, 75, 5), | |
2629 | Transparency = 0, | |
2630 | Transparency2 = 1, | |
2631 | CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2632 | MoveToPos = nil, | |
2633 | RotationX = 0, | |
2634 | RotationY = 0, | |
2635 | RotationZ = 0, | |
2636 | Material = "Neon", | |
2637 | Color = C3(1, 0, 0), | |
2638 | SoundID = nil, | |
2639 | SoundPitch = MRANDOM(9, 12) / 10, | |
2640 | SoundVolume = 10 | |
2641 | }) | |
2642 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.5,1.5,1.5), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = Eon.CFrame, MoveToPos = Eon.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-6).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2643 | Swait() | |
2644 | LOOP = LOOP + 1 | |
2645 | end | |
2646 | until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000 | |
2647 | coroutine.resume(coroutine.create(function() | |
2648 | for i = 1, 15 do | |
2649 | Swait() | |
2650 | BEAM.Size = BEAM.Size - VT(0.1, 0, 0.1) | |
2651 | BEAMO.Size = BEAMO.Size - VT(0.1, 0.1, 0.1) | |
2652 | BEAM.Transparency = BEAM.Transparency + 0.06666666666666667 | |
2653 | BEAMO.Transparency = BEAMO.Transparency + 0.06666666666666667 | |
2654 | end | |
2655 | BEAM:remove() | |
2656 | BEAMO:remove() | |
2657 | end)) | |
2658 | ATTACK = false | |
2659 | Rooted = false | |
2660 | VALUE2 = false | |
2661 | end | |
2662 | ||
2663 | function Absoluteum() | |
2664 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2665 | if HITFLOOR ~= nil then | |
2666 | do | |
2667 | local HITBODIES = {} | |
2668 | ATTACK = true | |
2669 | Rooted = true | |
2670 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "ABSOLUTEUM", VT(0, 0, 0)) | |
2671 | MakeForm(ABSOLUTE, "Ball") | |
2672 | CreateSound("416200578", RootPart, 10, 1) | |
2673 | for i = 0, 8, 0.1 / Animation_Speed do | |
2674 | Swait() | |
2675 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) | |
2676 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
2677 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
2678 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Black", "ABSOLUTEUM", VT(2, 2, 2)) | |
2679 | MakeForm(CHARGE, "Ball") | |
2680 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
2681 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
2682 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2683 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2684 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2685 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2686 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2687 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2688 | end | |
2689 | CreateSound(LAUGHS[MRANDOM(1, #LAUGHS)], Head, 10, 0.9) | |
2690 | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10) | |
2691 | for i = 1, 45 do | |
2692 | Swait() | |
2693 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2694 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2695 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2696 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2697 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2698 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2699 | end | |
2700 | coroutine.resume(coroutine.create(function() | |
2701 | local IMPACT = false | |
2702 | local BULLET = ABSOLUTE | |
2703 | MakeForm(BULLET, "Ball") | |
2704 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
2705 | for i = 1, 500 do | |
2706 | Swait() | |
2707 | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) | |
2708 | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) | |
2709 | MagicSphere(VT(10, 10, 10), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-10, -10, -10) / 55) | |
2710 | if HIT ~= nil then | |
2711 | IMPACT = true | |
2712 | break | |
2713 | end | |
2714 | end | |
2715 | if IMPACT == false then | |
2716 | for i = 1, 40 do | |
2717 | Swait() | |
2718 | BULLET.Size = BULLET.Size * 0.9 | |
2719 | end | |
2720 | BULLET:remove() | |
2721 | else | |
2722 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10) | |
2723 | for i = 1, 175 do | |
2724 | Swait() | |
2725 | BULLET.Size = BULLET.Size * 0.99 | |
2726 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Black", VT(i, 0, i) / 85) | |
2727 | end | |
2728 | CreateSound("438666001", BULLET, 10, 3) | |
2729 | Swait(35) | |
2730 | BULLET.Transparency = 1 | |
2731 | for i = 1, 20 do | |
2732 | for e = 1, 5 do | |
2733 | MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "White", VT(1, 1, i * 4), 0) | |
2734 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Black", VT(i, 0, i) / 3) | |
2735 | end | |
2736 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
2737 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10) | |
2738 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10) | |
2739 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) | |
2740 | Swait(5) | |
2741 | for e = 1, #HITBODIES do | |
2742 | if HITBODIES[e] ~= nil then | |
2743 | local BOD = HITBODIES[e] | |
2744 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
2745 | if TORS then | |
2746 | BOD:BreakJoints() | |
2747 | for _, c in pairs(BOD:GetChildren()) do | |
2748 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
2749 | local bv = Instance.new("BodyVelocity") | |
2750 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2751 | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 | |
2752 | bv.Parent = c | |
2753 | Debris:AddItem(bv, 0.2) | |
2754 | end | |
2755 | end | |
2756 | end | |
2757 | end | |
2758 | end | |
2759 | CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, "Black", VT(i, 0, i) * 2) | |
2760 | end | |
2761 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(12, 12, 12)) | |
2762 | Debris:AddItem(BULLET, 10) | |
2763 | end | |
2764 | end)) | |
2765 | ATTACK = false | |
2766 | Rooted = false | |
2767 | end | |
2768 | end | |
2769 | end | |
2770 | --//=================================\\ | |
2771 | --|| ASSIGN THINGS TO KEYS | |
2772 | --\\=================================// | |
2773 | ||
2774 | function MouseDown(Mouse) | |
2775 | if ATTACK == false then | |
2776 | end | |
2777 | end | |
2778 | ||
2779 | function MouseUp(Mouse) | |
2780 | HOLD = false | |
2781 | end | |
2782 | ||
2783 | function KeyDown(Key) | |
2784 | KEYHOLD = true | |
2785 | ||
2786 | if Key == "q" and ATTACK == false then | |
2787 | Nova_Blast() | |
2788 | end | |
2789 | ||
2790 | if Key == "z" and ATTACK == false then | |
2791 | oofBeam() | |
2792 | end | |
2793 | ||
2794 | if Key == "f" and ATTACK == false then | |
2795 | Nuke() | |
2796 | end | |
2797 | ||
2798 | if Key == "v" and ATTACK == false then | |
2799 | Morning_Star() | |
2800 | end | |
2801 | ||
2802 | if Key == "x" and ATTACK == false then | |
2803 | Deathbound() | |
2804 | end | |
2805 | ||
2806 | if Key == "c" and ATTACK == false then | |
2807 | Absoluteum() | |
2808 | end | |
2809 | ||
2810 | if Key == "p" and ATTACK == false then | |
2811 | if Speed == 16 then | |
2812 | Speed = 150 | |
2813 | elseif Speed == 150 then | |
2814 | Speed = 16 | |
2815 | end | |
2816 | end | |
2817 | end | |
2818 | ||
2819 | function KeyUp(Key) | |
2820 | KEYHOLD = false | |
2821 | end | |
2822 | ||
2823 | Mouse.Button1Down:connect(function(NEWKEY) | |
2824 | MouseDown(NEWKEY) | |
2825 | end) | |
2826 | Mouse.Button1Up:connect(function(NEWKEY) | |
2827 | MouseUp(NEWKEY) | |
2828 | end) | |
2829 | Mouse.KeyDown:connect(function(NEWKEY) | |
2830 | KeyDown(NEWKEY) | |
2831 | end) | |
2832 | Mouse.KeyUp:connect(function(NEWKEY) | |
2833 | KeyUp(NEWKEY) | |
2834 | end) | |
2835 | ||
2836 | --//=================================\\ | |
2837 | --\\=================================// | |
2838 | ||
2839 | ||
2840 | function unanchor() | |
2841 | if UNANCHOR == true then | |
2842 | g = Character:GetChildren() | |
2843 | for i = 1, #g do | |
2844 | if g[i].ClassName == "Part" then | |
2845 | g[i].Anchored = false | |
2846 | end | |
2847 | end | |
2848 | end | |
2849 | end | |
2850 | ||
2851 | ||
2852 | --//=================================\\ | |
2853 | --|| WRAP THE WHOLE SCRIPT UP | |
2854 | --\\=================================// | |
2855 | ||
2856 | Humanoid.Changed:connect(function(Jump) | |
2857 | if Jump == "Jump" and (Disable_Jump == true) then | |
2858 | Humanoid.Jump = false | |
2859 | end | |
2860 | end) | |
2861 | ||
2862 | local CONNECT = nil | |
2863 | ||
2864 | while true do | |
2865 | Swait() | |
2866 | ANIMATE.Parent = nil | |
2867 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2868 | Humanoid = IT("Humanoid",Character) | |
2869 | end | |
2870 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2871 | v:Stop(); | |
2872 | end | |
2873 | SINE = SINE + CHANGE | |
2874 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2875 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2876 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2877 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2878 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2879 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2880 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2881 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2882 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2883 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2884 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2885 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2886 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2887 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2888 | end | |
2889 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2890 | ANIM = "Jump" | |
2891 | if ATTACK == false then | |
2892 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2893 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2894 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2895 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2896 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2897 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2898 | end | |
2899 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2900 | ANIM = "Fall" | |
2901 | if ATTACK == false then | |
2902 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2903 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2904 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2905 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2906 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2907 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2908 | end | |
2909 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2910 | ANIM = "Idle" | |
2911 | if ATTACK == false then | |
2912 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2913 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2914 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2915 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2916 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2917 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2918 | end | |
2919 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2920 | ANIM = "Walk" | |
2921 | if ATTACK == false then | |
2922 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2923 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2924 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2925 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2926 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2927 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2928 | end | |
2929 | end | |
2930 | unanchor() | |
2931 | Humanoid.MaxHealth = "inf" | |
2932 | Humanoid.Health = "inf" | |
2933 | if Rooted == false then | |
2934 | Disable_Jump = false | |
2935 | Humanoid.WalkSpeed = Speed | |
2936 | elseif Rooted == true then | |
2937 | Disable_Jump = true | |
2938 | Humanoid.WalkSpeed = 0 | |
2939 | end | |
2940 | sick.Parent = Torso | |
2941 | sick:resume() | |
2942 | sick.Volume = 0 | |
2943 | sick.Pitch = 1 | |
2944 | sick.SoundId = "rbxassetid://933032912" | |
2945 | sick.Name = "BanishV3Music" | |
2946 | end | |
2947 | ||
2948 | --//=================================\\ | |
2949 | --\\=================================// | |
2950 | ||
2951 | ||
2952 | ||
2953 | ||
2954 | ||
2955 | --//====================================================\\-- | |
2956 | --|| END OF SCRIPT | |
2957 | --\\====================================================//-- |