SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| Templates BY Aom[WCR] | |
3 | --\\====================================================//-- | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,game,owner = owner,game | |
6 | local RealPlayer = Player | |
7 | do | |
8 | print("FE Compatibility code by Mokiros") | |
9 | local rp = RealPlayer | |
10 | script.Parent = rp.Character | |
11 | ||
12 | --RemoteEvent for communicating | |
13 | local Event = Instance.new("RemoteEvent") | |
14 | Event.Name = "UserInput_Event" | |
15 | ||
16 | --Fake event to make stuff like Mouse.KeyDown work | |
17 | local function fakeEvent() | |
18 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
19 | t.connect = t.Connect | |
20 | return t | |
21 | end | |
22 | ||
23 | --Creating fake input objects with fake variables | |
24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
27 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
28 | end} | |
29 | --Merged 2 functions into one by checking amount of arguments | |
30 | CAS.UnbindAction = CAS.BindAction | |
31 | ||
32 | --This function will trigger the events that have been :Connect()'ed | |
33 | local function te(self,ev,...) | |
34 | local t = m[ev] | |
35 | if t and t._fakeEvent then | |
36 | for _,f in pairs(t.Functions) do | |
37 | f(...) | |
38 | end | |
39 | end | |
40 | end | |
41 | m.TrigEvent = te | |
42 | UIS.TrigEvent = te | |
43 | ||
44 | Event.OnServerEvent:Connect(function(plr,io) | |
45 | if plr~=rp then return end | |
46 | m.Target = io.Target | |
47 | m.Hit = io.Hit | |
48 | if not io.isMouse then | |
49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | ||
68 | local Mouse = Player:GetMouse() | |
69 | local UIS = game:GetService("UserInputService") | |
70 | local input = function(io,a) | |
71 | if a then return end | |
72 | --Since InputObject is a client-side instance, we create and pass table instead | |
73 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
74 | end | |
75 | UIS.InputBegan:Connect(input) | |
76 | UIS.InputEnded:Connect(input) | |
77 | ||
78 | local h,t | |
79 | --Give the server mouse data 30 times every second, but only if the values changed | |
80 | --If player is not moving their mouse, client won't fire events | |
81 | while wait(1/30) do | |
82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
83 | h,t=Mouse.Hit,Mouse.Target | |
84 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
85 | end | |
86 | end]==],Player.Character) | |
87 | ||
88 | ----Sandboxed game object that allows the usage of client-side methods and services | |
89 | --Real game object | |
90 | local _rg = game | |
91 | ||
92 | --Metatable for fake service | |
93 | local fsmt = { | |
94 | __index = function(self,k) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then return s[k] end | |
97 | end, | |
98 | __newindex = function(self,k,v) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then s[k]=v end | |
101 | end, | |
102 | __call = function(self,...) | |
103 | local s = rawget(self,"_RealService") | |
104 | if s then return s(...) end | |
105 | end | |
106 | } | |
107 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
109 | return setmetatable(t,fsmt) | |
110 | end | |
111 | ||
112 | --Fake game object | |
113 | local g = { | |
114 | GetService = function(self,s) | |
115 | return self[s] | |
116 | end, | |
117 | Players = FakeService({ | |
118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
119 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
122 | } | |
123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
124 | g.service = g.GetService | |
125 | ||
126 | g.RunService = FakeService({ | |
127 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
128 | BindToRenderStep = function(self,name,_,fun) | |
129 | ||
130 | end, | |
131 | UnbindFromRenderStep = function(self,name) | |
132 | self._btrs[name]:Disconnect() | |
133 | end, | |
134 | },"RunService") | |
135 | ||
136 | setmetatable(g,{ | |
137 | __index=function(self,s) | |
138 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
139 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
140 | end, | |
141 | __newindex = fsmt.__newindex, | |
142 | __call = fsmt.__call | |
143 | }) | |
144 | --Changing owner to fake player object to support owner:GetMouse() | |
145 | game,owner = g,g.Players.LocalPlayer | |
146 | end | |
147 | ||
148 | --//====================================================\\-- | |
149 | --|| Templates BY Aom[WCR] | |
150 | --\\====================================================//-- | |
151 | Player = game:GetService("Players").LocalPlayer | |
152 | PlayerGui = Player.PlayerGui | |
153 | Cam = workspace.CurrentCamera | |
154 | Backpack = Player.Backpack | |
155 | Character = Player.Character | |
156 | Humanoid = Character.Humanoid | |
157 | Mouse = Player:GetMouse() | |
158 | RootPart = Character["HumanoidRootPart"] | |
159 | Torso = Character["Torso"] | |
160 | Head = Character["Head"] | |
161 | RightArm = Character["Right Arm"] | |
162 | LeftArm = Character["Left Arm"] | |
163 | RightLeg = Character["Right Leg"] | |
164 | LeftLeg = Character["Left Leg"] | |
165 | RootJoint = RootPart["RootJoint"] | |
166 | Neck = Torso["Neck"] | |
167 | RightShoulder = Torso["Right Shoulder"] | |
168 | LeftShoulder = Torso["Left Shoulder"] | |
169 | RightHip = Torso["Right Hip"] | |
170 | LeftHip = Torso["Left Hip"] | |
171 | local sick = Instance.new("Sound",Torso) | |
172 | sick.SoundId = "rbxassetid://318812395" | |
173 | sick.Looped = true | |
174 | sick.Pitch = 1 | |
175 | sick.Volume = 3 | |
176 | sick.TimePosition = 0 | |
177 | Character.Archivable = true | |
178 | Humanoid.DisplayDistanceType = "None" | |
179 | Character:WaitForChild("Animate") | |
180 | ||
181 | local naeeym2 = Instance.new("BillboardGui",Character) | |
182 | naeeym2.AlwaysOnTop = true | |
183 | naeeym2.Size = UDim2.new(5,35,2,35) | |
184 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
185 | naeeym2.Adornee = Character.Head | |
186 | naeeym2.Name = "Name" | |
187 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
188 | tecks2.BackgroundTransparency = 1 | |
189 | tecks2.TextScaled = true | |
190 | tecks2.BorderSizePixel = 0 | |
191 | tecks2.Text = "Dead Gun" | |
192 | tecks2.Font = "Code" | |
193 | tecks2.TextSize = 30 | |
194 | tecks2.TextTransparency = 1 | |
195 | tecks2.TextStrokeTransparency = 1 | |
196 | tecks2.TextColor3 = Color3.new(255/255,0/255,0/255) | |
197 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
198 | tecks2.Parent = naeeym2 | |
199 | ||
200 | IT = Instance.new | |
201 | CF = CFrame.new | |
202 | VT = Vector3.new | |
203 | RAD = math.rad | |
204 | C3 = Color3.new | |
205 | UD2 = UDim2.new | |
206 | BRICKC = BrickColor.new | |
207 | ANGLES = CFrame.Angles | |
208 | EULER = CFrame.fromEulerAnglesXYZ | |
209 | COS = math.cos | |
210 | ACOS = math.acos | |
211 | SIN = math.sin | |
212 | ASIN = math.asin | |
213 | ABS = math.abs | |
214 | - | local NEWMESH = IT(MESH) |
214 | + | |
215 | - | if MESH == "SpecialMesh" then |
215 | + | |
216 | - | NEWMESH.MeshType = MESHTYPE |
216 | + | |
217 | - | if MESHID ~= "nil" and MESHID ~= "" then |
217 | + | |
218 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
218 | + | local NEWMESH = IT(MESH) |
219 | - | end |
219 | + | if MESH == "SpecialMesh" then |
220 | - | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
220 | + | NEWMESH.MeshType = MESHTYPE |
221 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
221 | + | if MESHID ~= "nil" and MESHID ~= "" then |
222 | - | end |
222 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
223 | - | end |
223 | + | |
224 | - | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
224 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
225 | - | NEWMESH.Scale = SCALE |
225 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
226 | - | NEWMESH.Parent = PARENT |
226 | + | |
227 | - | return NEWMESH |
227 | + | |
228 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
229 | NEWMESH.Scale = SCALE | |
230 | NEWMESH.Parent = PARENT | |
231 | - | local NEWPART = IT("Part") |
231 | + | return NEWMESH |
232 | - | NEWPART.formFactor = FORMFACTOR |
232 | + | |
233 | - | NEWPART.Reflectance = REFLECTANCE |
233 | + | |
234 | - | NEWPART.Transparency = TRANSPARENCY |
234 | + | |
235 | - | NEWPART.CanCollide = false |
235 | + | local NEWPART = IT("Part") |
236 | - | NEWPART.Locked = true |
236 | + | NEWPART.formFactor = FORMFACTOR |
237 | - | NEWPART.Anchored = true |
237 | + | NEWPART.Reflectance = REFLECTANCE |
238 | - | if ANCHOR == false then |
238 | + | NEWPART.Transparency = TRANSPARENCY |
239 | - | NEWPART.Anchored = false |
239 | + | NEWPART.CanCollide = false |
240 | - | end |
240 | + | NEWPART.Locked = true |
241 | - | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
241 | + | NEWPART.Anchored = true |
242 | - | NEWPART.Name = NAME |
242 | + | if ANCHOR == false then |
243 | - | NEWPART.Size = SIZE |
243 | + | NEWPART.Anchored = false |
244 | - | NEWPART.Position = Torso.Position |
244 | + | |
245 | - | NEWPART.Material = MATERIAL |
245 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
246 | - | NEWPART:BreakJoints() |
246 | + | NEWPART.Name = NAME |
247 | - | NEWPART.Parent = PARENT |
247 | + | NEWPART.Size = SIZE |
248 | - | return NEWPART |
248 | + | NEWPART.Position = Torso.Position |
249 | NEWPART.Material = MATERIAL | |
250 | NEWPART:BreakJoints() | |
251 | NEWPART.Parent = PARENT | |
252 | - | --|| CUSTOMIZATION |
252 | + | return NEWPART |
253 | end | |
254 | ||
255 | --//=================================\\ | |
256 | - | Animation_Speed = 3 |
256 | + | --|| CUSTOMIZATION |
257 | --\\=================================// | |
258 | ||
259 | Player_Size = 1 --Size of the player. | |
260 | Animation_Speed = 1 --1 --def 3 | |
261 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
262 | ||
263 | - | --|| END OF CUSTOMIZATION |
263 | + | |
264 | local Effects2 = {} | |
265 | ||
266 | - | local function weldBetween(a, b) |
266 | + | |
267 | - | local weldd = Instance.new("ManualWeld") |
267 | + | --|| END OF CUSTOMIZATION |
268 | - | weldd.Part0 = a |
268 | + | |
269 | - | weldd.Part1 = b |
269 | + | |
270 | - | weldd.C0 = CFrame.new() |
270 | + | local function weldBetween(a, b) |
271 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
271 | + | local weldd = Instance.new("ManualWeld") |
272 | - | weldd.Parent = a |
272 | + | weldd.Part0 = a |
273 | - | return weldd |
273 | + | weldd.Part1 = b |
274 | - | end |
274 | + | weldd.C0 = CFrame.new() |
275 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
276 | weldd.Parent = a | |
277 | - | --|| USEFUL VALUES |
277 | + | return weldd |
278 | end | |
279 | ||
280 | --//=================================\\ | |
281 | --|| USEFUL VALUES | |
282 | --\\=================================// | |
283 | ||
284 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
285 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
286 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
287 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
288 | local CHANGEDEFENSE = 0 | |
289 | local CHANGEDAMAGE = 0 | |
290 | local CHANGEMOVEMENT = 0 | |
291 | local ANIM = "Idle" | |
292 | local ATTACK = false | |
293 | local EQUIPPED = false | |
294 | local HOLD = false | |
295 | local COMBO = 1 | |
296 | local Rooted = false | |
297 | local SINE = 0 | |
298 | local KEYHOLD = false | |
299 | local CHANGE = 2 / Animation_Speed | |
300 | local WALKINGANIM = false | |
301 | local WALK = 0 | |
302 | local VALUE1 = false | |
303 | local VALUE2 = false | |
304 | local ROBLOXIDLEANIMATION = IT("Animation") | |
305 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
306 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
307 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
308 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
309 | WEAPONGUI.Name = "Weapon GUI" | |
310 | local Weapon = IT("Folder", Character) | |
311 | Weapon.Name = "Weapon" | |
312 | local Effects = IT("Folder", Character) | |
313 | Effects.Name = "Effects" | |
314 | local Weapon2 = IT("Folder",Character) | |
315 | Weapon2.Name = "Weapon2" | |
316 | local ANIMATOR = Humanoid.Animator | |
317 | local ANIMATE = Character.Animate | |
318 | local UNANCHOR = true | |
319 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
320 | local SONGS = {534861083,530959353,1534958855,0} | |
321 | local CHOICE = MRANDOM(1,4) | |
322 | local PLAYMAINANIM = true | |
323 | local INTRO = false | |
324 | local TRANSFORMED = false | |
325 | local INSTANT = false | |
326 | local MODE = "GoodCop" | |
327 | ||
328 | --//=================================\\ | |
329 | --\\=================================// | |
330 | ||
331 | ||
332 | --//=================================\\ | |
333 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
334 | --\\=================================// | |
335 | ||
336 | ArtificialHB = Instance.new("BindableEvent", script) | |
337 | ArtificialHB.Name = "ArtificialHB" | |
338 | ||
339 | script:WaitForChild("ArtificialHB") | |
340 | ||
341 | frame = Frame_Speed | |
342 | tf = 0 | |
343 | allowframeloss = false | |
344 | tossremainder = false | |
345 | - | tf = tf + s |
345 | + | |
346 | - | if tf >= frame then |
346 | + | |
347 | - | if allowframeloss then |
347 | + | |
348 | - | script.ArtificialHB:Fire() |
348 | + | |
349 | - | lastframe = tick() |
349 | + | tf = tf + s |
350 | - | else |
350 | + | if tf >= frame then |
351 | - | for i = 1, math.floor(tf / frame) do |
351 | + | if allowframeloss then |
352 | - | script.ArtificialHB:Fire() |
352 | + | script.ArtificialHB:Fire() |
353 | - | end |
353 | + | lastframe = tick() |
354 | - | lastframe = tick() |
354 | + | else |
355 | - | end |
355 | + | for i = 1, math.floor(tf / frame) do |
356 | - | if tossremainder then |
356 | + | script.ArtificialHB:Fire() |
357 | - | tf = 0 |
357 | + | |
358 | - | else |
358 | + | lastframe = tick() |
359 | - | tf = tf - frame * math.floor(tf / frame) |
359 | + | |
360 | - | end |
360 | + | if tossremainder then |
361 | - | end |
361 | + | tf = 0 |
362 | else | |
363 | tf = tf - frame * math.floor(tf / frame) | |
364 | end | |
365 | end | |
366 | end) | |
367 | ||
368 | --//=================================\\ | |
369 | --\\=================================// | |
370 | ||
371 | ||
372 | - | --|| SOME FUNCTIONS |
372 | + | |
373 | ||
374 | ||
375 | --//=================================\\ | |
376 | - | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
376 | + | --|| SOME FUNCTIONS |
377 | --\\=================================// | |
378 | ||
379 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
380 | - | if NUMBER >= 0 then |
380 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
381 | - | NUMBER = 0 |
381 | + | |
382 | - | end |
382 | + | |
383 | - | return NUMBER |
383 | + | |
384 | if NUMBER >= 0 then | |
385 | NUMBER = 0 | |
386 | end | |
387 | - | if NUMBER <= 0 then |
387 | + | return NUMBER |
388 | - | NUMBER = 0 |
388 | + | |
389 | - | end |
389 | + | |
390 | - | return NUMBER |
390 | + | |
391 | if NUMBER <= 0 then | |
392 | NUMBER = 0 | |
393 | end | |
394 | - | if NUMBER == 0 or NUMBER == nil then |
394 | + | return NUMBER |
395 | - | ArtificialHB.Event:wait() |
395 | + | |
396 | - | else |
396 | + | |
397 | - | for i = 1, NUMBER do |
397 | + | |
398 | - | ArtificialHB.Event:wait() |
398 | + | if NUMBER == 0 or NUMBER == nil then |
399 | - | end |
399 | + | ArtificialHB.Event:wait() |
400 | - | end |
400 | + | else |
401 | for i = 1, NUMBER do | |
402 | ArtificialHB.Event:wait() | |
403 | end | |
404 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
404 | + | |
405 | - | local trace = m00 + m11 + m22 |
405 | + | |
406 | - | if trace > 0 then |
406 | + | |
407 | - | local s = math.sqrt(1 + trace) |
407 | + | |
408 | - | local recip = 0.5 / s |
408 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
409 | - | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
409 | + | local trace = m00 + m11 + m22 |
410 | - | else |
410 | + | if trace > 0 then |
411 | - | local i = 0 |
411 | + | local s = math.sqrt(1 + trace) |
412 | - | if m11 > m00 then |
412 | + | local recip = 0.5 / s |
413 | - | i = 1 |
413 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
414 | - | end |
414 | + | else |
415 | - | if m22 > (i == 0 and m00 or m11) then |
415 | + | local i = 0 |
416 | - | i = 2 |
416 | + | if m11 > m00 then |
417 | - | end |
417 | + | i = 1 |
418 | - | if i == 0 then |
418 | + | |
419 | - | local s = math.sqrt(m00 - m11 - m22 + 1) |
419 | + | if m22 > (i == 0 and m00 or m11) then |
420 | - | local recip = 0.5 / s |
420 | + | i = 2 |
421 | - | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
421 | + | |
422 | - | elseif i == 1 then |
422 | + | if i == 0 then |
423 | - | local s = math.sqrt(m11 - m22 - m00 + 1) |
423 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
424 | - | local recip = 0.5 / s |
424 | + | local recip = 0.5 / s |
425 | - | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
425 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
426 | - | elseif i == 2 then |
426 | + | elseif i == 1 then |
427 | - | local s = math.sqrt(m22 - m00 - m11 + 1) |
427 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
428 | - | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
428 | + | local recip = 0.5 / s |
429 | - | end |
429 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
430 | - | end |
430 | + | elseif i == 2 then |
431 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
432 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
433 | end | |
434 | - | local xs, ys, zs = x + x, y + y, z + z |
434 | + | |
435 | - | local wx, wy, wz = w * xs, w * ys, w * zs |
435 | + | |
436 | - | local xx = x * xs |
436 | + | |
437 | - | local xy = x * ys |
437 | + | |
438 | - | local xz = x * zs |
438 | + | local xs, ys, zs = x + x, y + y, z + z |
439 | - | local yy = y * ys |
439 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
440 | - | local yz = y * zs |
440 | + | local xx = x * xs |
441 | - | local zz = z * zs |
441 | + | local xy = x * ys |
442 | - | 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)) |
442 | + | local xz = x * zs |
443 | local yy = y * ys | |
444 | local yz = y * zs | |
445 | local zz = z * zs | |
446 | - | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
446 | + | 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)) |
447 | - | local startInterp, finishInterp; |
447 | + | |
448 | - | if cosTheta >= 0.0001 then |
448 | + | |
449 | - | if (1 - cosTheta) > 0.0001 then |
449 | + | |
450 | - | local theta = ACOS(cosTheta) |
450 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
451 | - | local invSinTheta = 1 / SIN(theta) |
451 | + | local startInterp, finishInterp; |
452 | - | startInterp = SIN((1 - t) * theta) * invSinTheta |
452 | + | if cosTheta >= 0.0001 then |
453 | - | finishInterp = SIN(t * theta) * invSinTheta |
453 | + | if (1 - cosTheta) > 0.0001 then |
454 | - | else |
454 | + | local theta = ACOS(cosTheta) |
455 | - | startInterp = 1 - t |
455 | + | local invSinTheta = 1 / SIN(theta) |
456 | - | finishInterp = t |
456 | + | startInterp = SIN((1 - t) * theta) * invSinTheta |
457 | - | end |
457 | + | finishInterp = SIN(t * theta) * invSinTheta |
458 | - | else |
458 | + | else |
459 | - | if (1 + cosTheta) > 0.0001 then |
459 | + | startInterp = 1 - t |
460 | - | local theta = ACOS(-cosTheta) |
460 | + | finishInterp = t |
461 | - | local invSinTheta = 1 / SIN(theta) |
461 | + | |
462 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
462 | + | else |
463 | - | finishInterp = SIN(t * theta) * invSinTheta |
463 | + | if (1 + cosTheta) > 0.0001 then |
464 | - | else |
464 | + | local theta = ACOS(-cosTheta) |
465 | - | startInterp = t - 1 |
465 | + | local invSinTheta = 1 / SIN(theta) |
466 | - | finishInterp = t |
466 | + | startInterp = SIN((t - 1) * theta) * invSinTheta |
467 | - | end |
467 | + | finishInterp = SIN(t * theta) * invSinTheta |
468 | - | end |
468 | + | else |
469 | - | 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 |
469 | + | startInterp = t - 1 |
470 | finishInterp = t | |
471 | end | |
472 | end | |
473 | - | local qa = {QuaternionFromCFrame(a)} |
473 | + | 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 |
474 | - | local qb = {QuaternionFromCFrame(b)} |
474 | + | |
475 | - | local ax, ay, az = a.x, a.y, a.z |
475 | + | |
476 | - | local bx, by, bz = b.x, b.y, b.z |
476 | + | |
477 | - | local _t = 1 - t |
477 | + | local qa = {QuaternionFromCFrame(a)} |
478 | - | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
478 | + | local qb = {QuaternionFromCFrame(b)} |
479 | local ax, ay, az = a.x, a.y, a.z | |
480 | local bx, by, bz = b.x, b.y, b.z | |
481 | local _t = 1 - t | |
482 | - | local frame = IT("Frame") |
482 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
483 | - | frame.BackgroundTransparency = TRANSPARENCY |
483 | + | |
484 | - | frame.BorderSizePixel = BORDERSIZEPIXEL |
484 | + | |
485 | - | frame.Position = POSITION |
485 | + | |
486 | - | frame.Size = SIZE |
486 | + | local frame = IT("Frame") |
487 | - | frame.BackgroundColor3 = COLOR |
487 | + | frame.BackgroundTransparency = TRANSPARENCY |
488 | - | frame.BorderColor3 = BORDERCOLOR |
488 | + | frame.BorderSizePixel = BORDERSIZEPIXEL |
489 | - | frame.Name = NAME |
489 | + | frame.Position = POSITION |
490 | - | frame.Parent = PARENT |
490 | + | frame.Size = SIZE |
491 | - | return frame |
491 | + | frame.BackgroundColor3 = COLOR |
492 | frame.BorderColor3 = BORDERCOLOR | |
493 | frame.Name = NAME | |
494 | frame.Parent = PARENT | |
495 | - | local label = IT("TextLabel") |
495 | + | return frame |
496 | - | label.BackgroundTransparency = 1 |
496 | + | |
497 | - | label.Size = UD2(1, 0, 1, 0) |
497 | + | |
498 | - | label.Position = UD2(0, 0, 0, 0) |
498 | + | |
499 | - | label.TextColor3 = TEXTCOLOR |
499 | + | local label = IT("TextLabel") |
500 | - | label.TextStrokeTransparency = STROKETRANSPARENCY |
500 | + | label.BackgroundTransparency = 1 |
501 | - | label.TextTransparency = TRANSPARENCY |
501 | + | label.Size = UD2(1, 0, 1, 0) |
502 | - | label.FontSize = TEXTFONTSIZE |
502 | + | label.Position = UD2(0, 0, 0, 0) |
503 | - | label.Font = TEXTFONT |
503 | + | label.TextColor3 = TEXTCOLOR |
504 | - | label.BorderSizePixel = BORDERSIZEPIXEL |
504 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
505 | - | label.TextScaled = false |
505 | + | label.TextTransparency = TRANSPARENCY |
506 | - | label.Text = TEXT |
506 | + | label.FontSize = TEXTFONTSIZE |
507 | - | label.Name = NAME |
507 | + | label.Font = TEXTFONT |
508 | - | label.Parent = PARENT |
508 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
509 | - | return label |
509 | + | label.TextScaled = false |
510 | label.Text = TEXT | |
511 | label.Name = NAME | |
512 | label.Parent = PARENT | |
513 | - | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
513 | + | return label |
514 | end | |
515 | ||
516 | function NoOutlines(PART) | |
517 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
518 | - | local NEWWELD = IT(TYPE) |
518 | + | |
519 | - | NEWWELD.Part0 = PART0 |
519 | + | |
520 | - | NEWWELD.Part1 = PART1 |
520 | + | |
521 | - | NEWWELD.C0 = C0 |
521 | + | |
522 | - | NEWWELD.C1 = C1 |
522 | + | local NEWWELD = IT(TYPE) |
523 | - | NEWWELD.Parent = PARENT |
523 | + | NEWWELD.Part0 = PART0 |
524 | - | return NEWWELD |
524 | + | NEWWELD.Part1 = PART1 |
525 | NEWWELD.C0 = C0 | |
526 | NEWWELD.C1 = C1 | |
527 | NEWWELD.Parent = PARENT | |
528 | - | local NEWSOUND = nil |
528 | + | return NEWWELD |
529 | - | coroutine.resume(coroutine.create(function() |
529 | + | |
530 | - | NEWSOUND = IT("Sound", PARENT) |
530 | + | |
531 | - | NEWSOUND.Volume = VOLUME |
531 | + | |
532 | - | NEWSOUND.Pitch = PITCH |
532 | + | local NEWSOUND = nil |
533 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
533 | + | coroutine.resume(coroutine.create(function() |
534 | - | Swait() |
534 | + | NEWSOUND = IT("Sound", PARENT) |
535 | - | NEWSOUND:play() |
535 | + | NEWSOUND.Volume = VOLUME |
536 | - | game:GetService("Debris"):AddItem(NEWSOUND, 10) |
536 | + | NEWSOUND.Pitch = PITCH |
537 | - | end)) |
537 | + | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
538 | - | return NEWSOUND |
538 | + | Swait() |
539 | NEWSOUND:play() | |
540 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
541 | end)) | |
542 | - | local right = top:Cross(back) |
542 | + | return NEWSOUND |
543 | - | 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) |
543 | + | |
544 | ||
545 | function CFrameFromTopBack(at, top, back) | |
546 | local right = top:Cross(back) | |
547 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) |
547 | + | 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) |
548 | - | local mesh = IT("SpecialMesh",wave) |
548 | + | |
549 | - | mesh.MeshType = "FileMesh" |
549 | + | |
550 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" |
550 | + | |
551 | - | mesh.Scale = SIZE |
551 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) |
552 | - | mesh.Offset = VT(0,0,0) |
552 | + | local mesh = IT("SpecialMesh",wave) |
553 | - | wave.CFrame = CFRAME |
553 | + | mesh.MeshType = "FileMesh" |
554 | - | coroutine.resume(coroutine.create(function(PART) |
554 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" |
555 | - | for i = 1, WAIT do |
555 | + | mesh.Scale = SIZE |
556 | - | Swait() |
556 | + | mesh.Offset = VT(0,0,0) |
557 | - | mesh.Scale = mesh.Scale + GROW |
557 | + | wave.CFrame = CFRAME |
558 | - | if DOESROT == true then |
558 | + | coroutine.resume(coroutine.create(function(PART) |
559 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
559 | + | for i = 1, WAIT do |
560 | - | end |
560 | + | Swait() |
561 | - | wave.Transparency = wave.Transparency + (0.5/WAIT) |
561 | + | mesh.Scale = mesh.Scale + GROW |
562 | - | if wave.Transparency > 0.99 then |
562 | + | if DOESROT == true then |
563 | - | wave:remove() |
563 | + | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
564 | - | end |
564 | + | |
565 | - | end |
565 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
566 | - | end)) |
566 | + | if wave.Transparency > 0.99 then |
567 | wave:remove() | |
568 | end | |
569 | end | |
570 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) |
570 | + | end)) |
571 | - | local mesh = IT("SpecialMesh",wave) |
571 | + | |
572 | - | mesh.MeshType = "Sphere" |
572 | + | |
573 | - | mesh.Scale = SIZE |
573 | + | |
574 | - | mesh.Offset = VT(0,0,0) |
574 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) |
575 | - | wave.CFrame = CFRAME |
575 | + | local mesh = IT("SpecialMesh",wave) |
576 | - | coroutine.resume(coroutine.create(function(PART) |
576 | + | mesh.MeshType = "Sphere" |
577 | - | for i = 1, WAIT do |
577 | + | mesh.Scale = SIZE |
578 | - | Swait() |
578 | + | mesh.Offset = VT(0,0,0) |
579 | - | mesh.Scale = mesh.Scale + GROW |
579 | + | wave.CFrame = CFRAME |
580 | - | wave.Transparency = wave.Transparency + (1/WAIT) |
580 | + | coroutine.resume(coroutine.create(function(PART) |
581 | - | if wave.Transparency > 0.99 then |
581 | + | for i = 1, WAIT do |
582 | - | wave:remove() |
582 | + | Swait() |
583 | - | end |
583 | + | mesh.Scale = mesh.Scale + GROW |
584 | - | end |
584 | + | wave.Transparency = wave.Transparency + (1/WAIT) |
585 | - | end)) |
585 | + | if wave.Transparency > 0.99 then |
586 | wave:remove() | |
587 | end | |
588 | end | |
589 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) |
589 | + | end)) |
590 | - | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) |
590 | + | |
591 | - | wave.CFrame = CFRAME |
591 | + | |
592 | - | coroutine.resume(coroutine.create(function(PART) |
592 | + | |
593 | - | for i = 1, WAIT do |
593 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) |
594 | - | Swait() |
594 | + | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) |
595 | - | mesh.Scale = mesh.Scale * GROW |
595 | + | wave.CFrame = CFRAME |
596 | - | wave.Transparency = wave.Transparency + (0.5/WAIT) |
596 | + | coroutine.resume(coroutine.create(function(PART) |
597 | - | if wave.Transparency > 0.99 then |
597 | + | for i = 1, WAIT do |
598 | - | wave:remove() |
598 | + | Swait() |
599 | - | end |
599 | + | mesh.Scale = mesh.Scale * GROW |
600 | - | end |
600 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
601 | - | end)) |
601 | + | if wave.Transparency > 0.99 then |
602 | wave:remove() | |
603 | end | |
604 | end | |
605 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) |
605 | + | end)) |
606 | - | local mesh = IT("BlockMesh",wave) |
606 | + | |
607 | - | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) |
607 | + | |
608 | - | coroutine.resume(coroutine.create(function(PART) |
608 | + | |
609 | - | for i = 1, WAIT do |
609 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) |
610 | - | Swait() |
610 | + | local mesh = IT("BlockMesh",wave) |
611 | - | mesh.Scale = mesh.Scale + GROW |
611 | + | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) |
612 | - | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) |
612 | + | coroutine.resume(coroutine.create(function(PART) |
613 | - | wave.Transparency = wave.Transparency + (1/WAIT) |
613 | + | for i = 1, WAIT do |
614 | - | if wave.Transparency > 0.99 then |
614 | + | Swait() |
615 | - | wave:remove() |
615 | + | mesh.Scale = mesh.Scale + GROW |
616 | - | end |
616 | + | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) |
617 | - | end |
617 | + | wave.Transparency = wave.Transparency + (1/WAIT) |
618 | - | end)) |
618 | + | if wave.Transparency > 0.99 then |
619 | wave:remove() | |
620 | end | |
621 | end | |
622 | - | if TYPE == "Cyl" then |
622 | + | end)) |
623 | - | local MSH = IT("CylinderMesh",PART) |
623 | + | |
624 | - | elseif TYPE == "Ball" then |
624 | + | |
625 | - | local MSH = IT("SpecialMesh",PART) |
625 | + | |
626 | - | MSH.MeshType = "Sphere" |
626 | + | if TYPE == "Cyl" then |
627 | - | elseif TYPE == "Wedge" then |
627 | + | local MSH = IT("CylinderMesh",PART) |
628 | - | local MSH = IT("SpecialMesh",PART) |
628 | + | elseif TYPE == "Ball" then |
629 | - | MSH.MeshType = "Wedge" |
629 | + | local MSH = IT("SpecialMesh",PART) |
630 | - | end |
630 | + | MSH.MeshType = "Sphere" |
631 | elseif TYPE == "Wedge" then | |
632 | local MSH = IT("SpecialMesh",PART) | |
633 | MSH.MeshType = "Wedge" | |
634 | - | for i, v in pairs(Table) do |
634 | + | |
635 | - | if string.find(string.lower(String), string.lower(v)) then |
635 | + | |
636 | - | return true |
636 | + | |
637 | - | end |
637 | + | |
638 | - | end |
638 | + | for i, v in pairs(Table) do |
639 | - | return false |
639 | + | if string.find(string.lower(String), string.lower(v)) then |
640 | return true | |
641 | end | |
642 | end | |
643 | return false | |
644 | end | |
645 | ||
646 | ||
647 | - | local Direction = CFrame.new(StartPos, Vec).lookVector |
647 | + | |
648 | - | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) |
648 | + | |
649 | - | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) |
649 | + | |
650 | - | if RayHit and CheckIntangible(RayHit) then |
650 | + | |
651 | - | if DelayIfHit then |
651 | + | local Direction = CFrame.new(StartPos, Vec).lookVector |
652 | - | wait() |
652 | + | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) |
653 | - | end |
653 | + | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) |
654 | - | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) |
654 | + | if RayHit and CheckIntangible(RayHit) then |
655 | - | end |
655 | + | if DelayIfHit then |
656 | - | return RayHit, RayPos, RayNormal |
656 | + | wait() |
657 | end | |
658 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
659 | end | |
660 | - | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) |
660 | + | return RayHit, RayPos, RayNormal |
661 | end | |
662 | ||
663 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
664 | - | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
664 | + | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) |
665 | end | |
666 | ||
667 | function turnto(position) | |
668 | - | PLAYMAINANIM = false |
668 | + | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
669 | - | if WhichPose == "Cast1" then |
669 | + | |
670 | - | for i=0, Time, 0.1 / Animation_Speed do |
670 | + | |
671 | - | Swait() |
671 | + | |
672 | - | if Magic == true then |
672 | + | PLAYMAINANIM = false |
673 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
673 | + | if WhichPose == "Cast1" then |
674 | - | end |
674 | + | for i=0, Time, 0.1 / Animation_Speed do |
675 | - | if Gyro ~= nil and Gyro ~= false then |
675 | + | Swait() |
676 | - | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
676 | + | if Magic == true then |
677 | - | end |
677 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
678 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) |
678 | + | |
679 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) |
679 | + | if Gyro ~= nil and Gyro ~= false then |
680 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
680 | + | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
681 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
681 | + | |
682 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
682 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) |
683 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
683 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) |
684 | - | end |
684 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
685 | - | elseif WhichPose == "Cast2" then |
685 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
686 | - | for i=0, Time, 0.1 / Animation_Speed do |
686 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
687 | - | Swait() |
687 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
688 | - | if Magic == true then |
688 | + | |
689 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
689 | + | elseif WhichPose == "Cast2" then |
690 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
690 | + | for i=0, Time, 0.1 / Animation_Speed do |
691 | - | end |
691 | + | Swait() |
692 | - | if Gyro ~= nil and Gyro ~= false then |
692 | + | if Magic == true then |
693 | - | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
693 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
694 | - | end |
694 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
695 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
695 | + | |
696 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
696 | + | if Gyro ~= nil and Gyro ~= false then |
697 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
697 | + | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
698 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
698 | + | |
699 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
699 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
700 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
700 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
701 | - | end |
701 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
702 | - | elseif WhichPose == "RightArmUp" then |
702 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
703 | - | for i=0, Time, 0.1 / Animation_Speed do |
703 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
704 | - | Swait() |
704 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
705 | - | if Magic == true then |
705 | + | |
706 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
706 | + | elseif WhichPose == "RightArmUp" then |
707 | - | end |
707 | + | for i=0, Time, 0.1 / Animation_Speed do |
708 | - | if Gyro ~= nil and Gyro ~= false then |
708 | + | Swait() |
709 | - | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
709 | + | if Magic == true then |
710 | - | end |
710 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
711 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) |
711 | + | |
712 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) |
712 | + | if Gyro ~= nil and Gyro ~= false then |
713 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
713 | + | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
714 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
714 | + | |
715 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
715 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) |
716 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
716 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) |
717 | - | end |
717 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
718 | - | elseif WhichPose == "Taunt" then |
718 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
719 | - | for i=0, Time, 0.1 / Animation_Speed do |
719 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
720 | - | Swait() |
720 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
721 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
721 | + | |
722 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
722 | + | elseif WhichPose == "Taunt" then |
723 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
723 | + | for i=0, Time, 0.1 / Animation_Speed do |
724 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
724 | + | Swait() |
725 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
725 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
726 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
726 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
727 | - | end |
727 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
728 | - | CreateSound(221057812,Torso,10,1,false) |
728 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
729 | - | for i=0, Time*2, 0.1 / Animation_Speed do |
729 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
730 | - | Swait() |
730 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
731 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
731 | + | |
732 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
732 | + | CreateSound(221057812,Torso,10,1,false) |
733 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
733 | + | for i=0, Time*2, 0.1 / Animation_Speed do |
734 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
734 | + | Swait() |
735 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
735 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
736 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
736 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
737 | - | end |
737 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
738 | - | for i=0, Time, 0.1 / Animation_Speed do |
738 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
739 | - | Swait() |
739 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
740 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
740 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
741 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) |
741 | + | |
742 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
742 | + | for i=0, Time, 0.1 / Animation_Speed do |
743 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
743 | + | Swait() |
744 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
744 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
745 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
745 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) |
746 | - | end |
746 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
747 | - | elseif WhichPose == "Prepare key" then |
747 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
748 | - | for i=0, Time, 0.1 / Animation_Speed do |
748 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
749 | - | Swait() |
749 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
750 | - | if Gyro ~= nil and Gyro ~= false then |
750 | + | |
751 | - | Gyro.cframe = CF(RootPart.Position,Tors.Position) |
751 | + | elseif WhichPose == "Prepare key" then |
752 | - | end |
752 | + | for i=0, Time, 0.1 / Animation_Speed do |
753 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) |
753 | + | Swait() |
754 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) |
754 | + | if Gyro ~= nil and Gyro ~= false then |
755 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
755 | + | Gyro.cframe = CF(RootPart.Position,Tors.Position) |
756 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
756 | + | |
757 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
757 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) |
758 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
758 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) |
759 | - | end |
759 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
760 | - | elseif WhichPose == "Turn key" then |
760 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
761 | - | for i=0, Time, 0.1 / Animation_Speed do |
761 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
762 | - | Swait() |
762 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
763 | - | if Gyro ~= nil and Gyro ~= false then |
763 | + | |
764 | - | Gyro.cframe = CF(RootPart.Position,Tors.Position) |
764 | + | elseif WhichPose == "Turn key" then |
765 | - | end |
765 | + | for i=0, Time, 0.1 / Animation_Speed do |
766 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) |
766 | + | Swait() |
767 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) |
767 | + | if Gyro ~= nil and Gyro ~= false then |
768 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
768 | + | Gyro.cframe = CF(RootPart.Position,Tors.Position) |
769 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
769 | + | |
770 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
770 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) |
771 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
771 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) |
772 | - | end |
772 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
773 | - | end |
773 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
774 | - | PLAYMAINANIM = true |
774 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
775 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
776 | end | |
777 | end | |
778 | - | --|| SPEECH |
778 | + | PLAYMAINANIM = true |
779 | end | |
780 | ||
781 | --//=================================\\ | |
782 | - | local chat = coroutine.wrap(function() |
782 | + | --|| SPEECH |
783 | - | if Character:FindFirstChild("SpeechBoard")~= nil then |
783 | + | |
784 | - | Character:FindFirstChild("SpeechBoard"):destroy() |
784 | + | |
785 | - | end |
785 | + | |
786 | - | local naeeym2 = IT("BillboardGui",Character) |
786 | + | local chat = coroutine.wrap(function() |
787 | - | naeeym2.Size = UD2(0,100,0,40) |
787 | + | if Character:FindFirstChild("SpeechBoard")~= nil then |
788 | - | naeeym2.StudsOffset = Vector3.new(0,2,0) |
788 | + | Character:FindFirstChild("SpeechBoard"):destroy() |
789 | - | naeeym2.Adornee = Character.Head |
789 | + | |
790 | - | naeeym2.Name = "SpeechBoard" |
790 | + | local naeeym2 = IT("BillboardGui",Character) |
791 | - | naeeym2.AlwaysOnTop = true |
791 | + | naeeym2.Size = UD2(0,100,0,40) |
792 | - | local tecks2 = IT("TextLabel",naeeym2) |
792 | + | naeeym2.StudsOffset = Vector3.new(0,2,0) |
793 | - | tecks2.BackgroundTransparency = 1 |
793 | + | naeeym2.Adornee = Character.Head |
794 | - | tecks2.BorderSizePixel = 0 |
794 | + | naeeym2.Name = "SpeechBoard" |
795 | - | tecks2.Text = "" |
795 | + | naeeym2.AlwaysOnTop = true |
796 | - | tecks2.Font = "Legacy" |
796 | + | local tecks2 = IT("TextLabel",naeeym2) |
797 | - | tecks2.TextSize = 15 |
797 | + | tecks2.BackgroundTransparency = 1 |
798 | - | tecks2.TextStrokeTransparency = 1 |
798 | + | tecks2.BorderSizePixel = 0 |
799 | - | tecks2.TextColor3 = Color3.new(255,0,0) |
799 | + | tecks2.Text = "" |
800 | - | tecks2.TextStrokeColor3 = Color3.new(255,0,0) |
800 | + | tecks2.Font = "Legacy" |
801 | - | tecks2.Size = UDim2.new(1,0,0.5,0) |
801 | + | tecks2.TextSize = 15 |
802 | - | for i = 1,string.len(Text),1 do |
802 | + | tecks2.TextStrokeTransparency = 1 |
803 | - | CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false) |
803 | + | tecks2.TextColor3 = Color3.new(255,0,0) |
804 | - | tecks2.Text = string.sub(Text,1,i) |
804 | + | tecks2.TextStrokeColor3 = Color3.new(255,0,0) |
805 | - | wait(Timer) |
805 | + | tecks2.Size = UDim2.new(1,0,0.5,0) |
806 | - | end |
806 | + | for i = 1,string.len(Text),1 do |
807 | - | wait(1) |
807 | + | CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false) |
808 | - | naeeym2:Destroy() |
808 | + | tecks2.Text = string.sub(Text,1,i) |
809 | - | end) |
809 | + | wait(Timer) |
810 | - | chat() |
810 | + | |
811 | wait(1) | |
812 | naeeym2:Destroy() | |
813 | end) | |
814 | chat() | |
815 | end | |
816 | ||
817 | function chatfunc(text,waitt) | |
818 | local chat = coroutine.wrap(function() | |
819 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
820 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
821 | end | |
822 | local naeeym2 = Instance.new("BillboardGui",Character) | |
823 | naeeym2.Size = UDim2.new(0,100,0,40) | |
824 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
825 | naeeym2.Adornee = Character.Head | |
826 | naeeym2.Name = "TalkingBillBoard" | |
827 | naeeym2.AlwaysOnTop = true | |
828 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
829 | tecks2.BackgroundTransparency = 1 | |
830 | tecks2.BorderSizePixel = 0 | |
831 | tecks2.Text = "" | |
832 | tecks2.Font = "SciFi" | |
833 | tecks2.TextSize = 30 | |
834 | tecks2.TextStrokeTransparency = 1 | |
835 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
836 | tecks2.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
837 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
838 | for i = 1,string.len(text),1 do | |
839 | tecks2.Text = string.sub(text,1,i) | |
840 | - | for i = 1, 10 do |
840 | + | |
841 | - | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 |
841 | + | |
842 | - | Swait() |
842 | + | |
843 | - | end |
843 | + | |
844 | - | naeeym2:Destroy() |
844 | + | for i = 1, 10 do |
845 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
846 | Swait() | |
847 | end | |
848 | naeeym2:Destroy() | |
849 | end)) | |
850 | end) | |
851 | chat() | |
852 | end | |
853 | ||
854 | --// Start Stuff for Banishing \\-- | |
855 | - | local DIRECTION = CF(StartPos,EndPos).lookVector |
855 | + | |
856 | - | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
856 | + | |
857 | ||
858 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
859 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
860 | - | 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 life 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, "} |
860 | + | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
861 | - | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") |
861 | + | |
862 | ||
863 | function printbye(Name) | |
864 | 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 life 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, "} | |
865 | - | if Foe then |
865 | + | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") |
866 | - | coroutine.resume(coroutine.create(function() |
866 | + | |
867 | - | --if game.Players:FindFirstChild(Foe.Name) then |
867 | + | |
868 | - | table.insert(TOBANISH,Foe.Name) |
868 | + | |
869 | - | printbye(Foe.Name) |
869 | + | if Foe then |
870 | - | --end |
870 | + | coroutine.resume(coroutine.create(function() |
871 | - | Foe.Archivable = true |
871 | + | --if game.Players:FindFirstChild(Foe.Name) then |
872 | - | local CLONE = Foe:Clone() |
872 | + | table.insert(TOBANISH,Foe.Name) |
873 | - | Foe:Destroy() |
873 | + | printbye(Foe.Name) |
874 | - | CLONE.Parent = Effects |
874 | + | --end |
875 | - | CLONE:BreakJoints() |
875 | + | Foe.Archivable = true |
876 | - | local MATERIALS = {"Glass","Neon"} |
876 | + | local CLONE = Foe:Clone() |
877 | - | for _, c in pairs(CLONE:GetDescendants()) do |
877 | + | Foe:Destroy() |
878 | - | if c:IsA("BasePart") then |
878 | + | CLONE.Parent = Effects |
879 | - | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then |
879 | + | CLONE:BreakJoints() |
880 | - | CreateSound(340722848, c, 10, 1, false) |
880 | + | local MATERIALS = {"Glass","Neon"} |
881 | - | end |
881 | + | for _, c in pairs(CLONE:GetDescendants()) do |
882 | - | c.Anchored = true |
882 | + | if c:IsA("BasePart") then |
883 | - | c.Transparency = c.Transparency + 0.2 |
883 | + | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then |
884 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
884 | + | CreateSound(340722848, c, 10, 1, false) |
885 | - | c.Color = C3(0,255,0) |
885 | + | |
886 | - | if c.ClassName == "MeshPart" then |
886 | + | c.Anchored = true |
887 | - | c.TextureID = "" |
887 | + | c.Transparency = c.Transparency + 0.2 |
888 | - | end |
888 | + | c.Material = MATERIALS[MRANDOM(1,2)] |
889 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
889 | + | c.Color = C3(0,255,0) |
890 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
890 | + | if c.ClassName == "MeshPart" then |
891 | - | end |
891 | + | c.TextureID = "" |
892 | - | if c:FindFirstChildOfClass("Decal") then |
892 | + | |
893 | - | c:FindFirstChildOfClass("Decal"):remove() |
893 | + | if c:FindFirstChildOfClass("SpecialMesh") then |
894 | - | end |
894 | + | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
895 | - | c.Name = "Banished" |
895 | + | |
896 | - | c.CanCollide = false |
896 | + | if c:FindFirstChildOfClass("Decal") then |
897 | - | else |
897 | + | c:FindFirstChildOfClass("Decal"):remove() |
898 | - | c:remove() |
898 | + | |
899 | - | end |
899 | + | c.Name = "Banished" |
900 | - | end |
900 | + | c.CanCollide = false |
901 | - | local A = false |
901 | + | else |
902 | - | for i = 1, 35 do |
902 | + | c:remove() |
903 | - | if A == false then |
903 | + | |
904 | - | A = true |
904 | + | |
905 | - | elseif A == true then |
905 | + | local A = false |
906 | - | A = false |
906 | + | for i = 1, 35 do |
907 | - | end |
907 | + | if A == false then |
908 | - | for _, c in pairs(CLONE:GetDescendants()) do |
908 | + | A = true |
909 | - | if c:IsA("BasePart") then |
909 | + | elseif A == true then |
910 | - | c.Anchored = true |
910 | + | A = false |
911 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
911 | + | |
912 | - | c.Transparency = c.Transparency + 0.8/35 |
912 | + | for _, c in pairs(CLONE:GetDescendants()) do |
913 | - | if A == false then |
913 | + | if c:IsA("BasePart") then |
914 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
914 | + | c.Anchored = true |
915 | - | elseif A == true then |
915 | + | c.Material = MATERIALS[MRANDOM(1,2)] |
916 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
916 | + | c.Transparency = c.Transparency + 0.8/35 |
917 | - | end |
917 | + | if A == false then |
918 | - | end |
918 | + | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
919 | - | end |
919 | + | elseif A == true then |
920 | - | Swait() |
920 | + | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
921 | - | end |
921 | + | end |
922 | - | CLONE:remove() |
922 | + | |
923 | - | end)) |
923 | + | |
924 | - | end |
924 | + | Swait() |
925 | end | |
926 | CLONE:remove() | |
927 | end)) | |
928 | - | for i,v in ipairs(workspace:GetChildren()) do |
928 | + | |
929 | - | local body = v:GetChildren() |
929 | + | |
930 | - | for part = 1, #body do |
930 | + | |
931 | - | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then |
931 | + | |
932 | - | if(body[part].Position - POS).Magnitude < RANGE then |
932 | + | for i,v in ipairs(workspace:GetChildren()) do |
933 | - | if v:FindFirstChildOfClass("Humanoid") then |
933 | + | local body = v:GetChildren() |
934 | - | Banish(v) |
934 | + | for part = 1, #body do |
935 | - | if game.Players:FindFirstChild(v.Name) then |
935 | + | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then |
936 | - | local Value = IT("BoolValue",Delete) |
936 | + | if(body[part].Position - POS).Magnitude < RANGE then |
937 | - | Value.Name = v.Name |
937 | + | if v:FindFirstChildOfClass("Humanoid") then |
938 | - | end |
938 | + | Banish(v) |
939 | - | end |
939 | + | if game.Players:FindFirstChild(v.Name) then |
940 | - | end |
940 | + | local Value = IT("BoolValue",Delete) |
941 | - | end |
941 | + | Value.Name = v.Name |
942 | - | end |
942 | + | end |
943 | - | end |
943 | + | |
944 | end | |
945 | end | |
946 | end | |
947 | end | |
948 | - | if TOBANISH[BANISH] ~= nil then |
948 | + | |
949 | - | if instance.Name == TOBANISH[BANISH] then |
949 | + | |
950 | - | coroutine.resume(coroutine.create(function() |
950 | + | |
951 | - | printbye(instance.Name) |
951 | + | |
952 | - | instance:ClearAllChildren() |
952 | + | if TOBANISH[BANISH] ~= nil then |
953 | - | Debris:AddItem(instance,0.0005) |
953 | + | if instance.Name == TOBANISH[BANISH] then |
954 | - | end)) |
954 | + | coroutine.resume(coroutine.create(function() |
955 | - | end |
955 | + | printbye(instance.Name) |
956 | - | end |
956 | + | instance:ClearAllChildren() |
957 | - | end |
957 | + | Debris:AddItem(instance,0.0005) |
958 | end)) | |
959 | end | |
960 | end | |
961 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) |
961 | + | |
962 | - | MakeForm(TRAIL,"Cyl") |
962 | + | |
963 | - | local DIST = (FROM - TO).Magnitude |
963 | + | |
964 | - | if BIG == true then |
964 | + | |
965 | - | TRAIL.Size = VT(10,DIST,10) |
965 | + | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) |
966 | - | else |
966 | + | MakeForm(TRAIL,"Cyl") |
967 | - | TRAIL.Size = VT(0.25,DIST,0.25) |
967 | + | local DIST = (FROM - TO).Magnitude |
968 | - | end |
968 | + | if BIG == true then |
969 | - | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) |
969 | + | TRAIL.Size = VT(10,DIST,10) |
970 | - | coroutine.resume(coroutine.create(function() |
970 | + | else |
971 | - | for i = 1, 5 do |
971 | + | TRAIL.Size = VT(0.25,DIST,0.25) |
972 | - | Swait() |
972 | + | |
973 | - | TRAIL.Transparency = TRAIL.Transparency + 0.1 |
973 | + | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) |
974 | - | end |
974 | + | coroutine.resume(coroutine.create(function() |
975 | - | TRAIL:remove() |
975 | + | for i = 1, 5 do |
976 | - | end)) |
976 | + | Swait() |
977 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
978 | end | |
979 | TRAIL:remove() | |
980 | - | local TYPE = (Table.EffectType or "Sphere") |
980 | + | end)) |
981 | - | local SIZE = (Table.Size or VT(1,1,1)) |
981 | + | |
982 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
982 | + | |
983 | - | local TRANSPARENCY = (Table.Transparency or 0) |
983 | + | |
984 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
984 | + | local TYPE = (Table.EffectType or "Sphere") |
985 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
985 | + | local SIZE = (Table.Size or VT(1,1,1)) |
986 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
986 | + | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
987 | - | local ROTATION1 = (Table.RotationX or 0) |
987 | + | local TRANSPARENCY = (Table.Transparency or 0) |
988 | - | local ROTATION2 = (Table.RotationY or 0) |
988 | + | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
989 | - | local ROTATION3 = (Table.RotationZ or 0) |
989 | + | local CFRAME = (Table.CFrame or Torso.CFrame) |
990 | - | local MATERIAL = (Table.Material or "Neon") |
990 | + | local MOVEDIRECTION = (Table.MoveToPos or nil) |
991 | - | local COLOR = (Table.Color or C3(0,255,0)) |
991 | + | local ROTATION1 = (Table.RotationX or 0) |
992 | - | local TIME = (Table.Time or 45) |
992 | + | local ROTATION2 = (Table.RotationY or 0) |
993 | - | local SOUNDID = (Table.SoundID or nil) |
993 | + | local ROTATION3 = (Table.RotationZ or 0) |
994 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
994 | + | local MATERIAL = (Table.Material or "Neon") |
995 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
995 | + | local COLOR = (Table.Color or C3(0,255,0)) |
996 | - | coroutine.resume(coroutine.create(function() |
996 | + | local TIME = (Table.Time or 45) |
997 | - | local PLAYSSOUND = false |
997 | + | local SOUNDID = (Table.SoundID or nil) |
998 | - | local SOUND = nil |
998 | + | local SOUNDPITCH = (Table.SoundPitch or nil) |
999 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
999 | + | local SOUNDVOLUME = (Table.SoundVolume or nil) |
1000 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
1000 | + | coroutine.resume(coroutine.create(function() |
1001 | - | PLAYSSOUND = true |
1001 | + | local PLAYSSOUND = false |
1002 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
1002 | + | local SOUND = nil |
1003 | - | end |
1003 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
1004 | - | EFFECT.Color = COLOR |
1004 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
1005 | - | local MSH = nil |
1005 | + | PLAYSSOUND = true |
1006 | - | if TYPE == "Sphere" then |
1006 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
1007 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
1007 | + | |
1008 | - | elseif TYPE == "Block" then |
1008 | + | EFFECT.Color = COLOR |
1009 | - | MSH = IT("BlockMesh",EFFECT) |
1009 | + | local MSH = nil |
1010 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
1010 | + | if TYPE == "Sphere" then |
1011 | - | elseif TYPE == "Wave" then |
1011 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
1012 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
1012 | + | elseif TYPE == "Block" then |
1013 | - | elseif TYPE == "Ring" then |
1013 | + | MSH = IT("BlockMesh",EFFECT) |
1014 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
1014 | + | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
1015 | - | elseif TYPE == "Slash" then |
1015 | + | elseif TYPE == "Wave" then |
1016 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
1016 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
1017 | - | elseif TYPE == "Round Slash" then |
1017 | + | elseif TYPE == "Ring" then |
1018 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
1018 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
1019 | - | elseif TYPE == "Swirl" then |
1019 | + | elseif TYPE == "Slash" then |
1020 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
1020 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
1021 | - | elseif TYPE == "Skull" then |
1021 | + | elseif TYPE == "Round Slash" then |
1022 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
1022 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
1023 | - | elseif TYPE == "Crystal" then |
1023 | + | elseif TYPE == "Swirl" then |
1024 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
1024 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
1025 | - | end |
1025 | + | elseif TYPE == "Skull" then |
1026 | - | if MSH ~= nil then |
1026 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
1027 | - | local MOVESPEED = nil |
1027 | + | elseif TYPE == "Crystal" then |
1028 | - | if MOVEDIRECTION ~= nil then |
1028 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
1029 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
1029 | + | |
1030 | - | end |
1030 | + | if MSH ~= nil then |
1031 | - | local GROWTH = SIZE - ENDSIZE |
1031 | + | local MOVESPEED = nil |
1032 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
1032 | + | if MOVEDIRECTION ~= nil then |
1033 | - | if TYPE == "Block" then |
1033 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
1034 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1034 | + | |
1035 | - | else |
1035 | + | local GROWTH = SIZE - ENDSIZE |
1036 | - | EFFECT.CFrame = CFRAME |
1036 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
1037 | - | end |
1037 | + | if TYPE == "Block" then |
1038 | - | for LOOP = 1, TIME+1 do |
1038 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1039 | - | Swait() |
1039 | + | else |
1040 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
1040 | + | EFFECT.CFrame = CFRAME |
1041 | - | if TYPE == "Wave" then |
1041 | + | |
1042 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
1042 | + | for LOOP = 1, TIME+1 do |
1043 | - | end |
1043 | + | Swait() |
1044 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
1044 | + | MSH.Scale = MSH.Scale - GROWTH/TIME |
1045 | - | if TYPE == "Block" then |
1045 | + | if TYPE == "Wave" then |
1046 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1046 | + | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
1047 | - | else |
1047 | + | |
1048 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
1048 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
1049 | - | end |
1049 | + | if TYPE == "Block" then |
1050 | - | if MOVEDIRECTION ~= nil then |
1050 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1051 | - | local ORI = EFFECT.Orientation |
1051 | + | else |
1052 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
1052 | + | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
1053 | - | EFFECT.Orientation = ORI |
1053 | + | |
1054 | - | end |
1054 | + | if MOVEDIRECTION ~= nil then |
1055 | - | end |
1055 | + | local ORI = EFFECT.Orientation |
1056 | - | if PLAYSSOUND == false then |
1056 | + | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
1057 | - | EFFECT:remove() |
1057 | + | EFFECT.Orientation = ORI |
1058 | - | else |
1058 | + | |
1059 | - | SOUND.Stopped:Connect(function() |
1059 | + | |
1060 | - | EFFECT:remove() |
1060 | + | if PLAYSSOUND == false then |
1061 | - | end) |
1061 | + | EFFECT:remove() |
1062 | - | end |
1062 | + | else |
1063 | - | else |
1063 | + | SOUND.Stopped:Connect(function() |
1064 | - | if PLAYSSOUND == false then |
1064 | + | EFFECT:remove() |
1065 | - | EFFECT:remove() |
1065 | + | end) |
1066 | - | else |
1066 | + | |
1067 | - | repeat Swait() until SOUND.Playing == false |
1067 | + | else |
1068 | - | EFFECT:remove() |
1068 | + | if PLAYSSOUND == false then |
1069 | - | end |
1069 | + | EFFECT:remove() |
1070 | - | end |
1070 | + | else |
1071 | - | end)) |
1071 | + | repeat Swait() until SOUND.Playing == false |
1072 | EFFECT:remove() | |
1073 | end | |
1074 | end | |
1075 | end)) | |
1076 | end | |
1077 | - | --|| WEAPON CREATION |
1077 | + | |
1078 | -- \\ End Stuff for Banishing //-- | |
1079 | ||
1080 | --//=================================\\ | |
1081 | --|| WEAPON CREATION | |
1082 | --\\=================================// | |
1083 | local Particle = IT("ParticleEmitter",nil) | |
1084 | Particle.Enabled = false | |
1085 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1086 | Particle.LightEmission = 0.5 | |
1087 | Particle.Rate = 150 | |
1088 | Particle.ZOffset = 0.2 | |
1089 | Particle.Rotation = NumberRange.new(-180, 180) | |
1090 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1091 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1092 | - | local PRTCL = Particle:Clone() |
1092 | + | |
1093 | - | local Speed = Table.Speed or 5 |
1093 | + | |
1094 | - | local Drag = Table.Drag or 0 |
1094 | + | |
1095 | - | local Size1 = Table.Size1 or 1 |
1095 | + | |
1096 | - | local Size2 = Table.Size2 or 5 |
1096 | + | local PRTCL = Particle:Clone() |
1097 | - | local Lifetime1 = Table.Lifetime1 or 1 |
1097 | + | local Speed = Table.Speed or 5 |
1098 | - | local Lifetime2 = Table.Lifetime2 or 1.5 |
1098 | + | local Drag = Table.Drag or 0 |
1099 | - | local Parent = Table.Parent or Torso |
1099 | + | local Size1 = Table.Size1 or 1 |
1100 | - | local Emit = Table.Emit or 100 |
1100 | + | local Size2 = Table.Size2 or 5 |
1101 | - | local Offset = Table.Offset or 360 |
1101 | + | local Lifetime1 = Table.Lifetime1 or 1 |
1102 | - | local Acel = Table.Acel or VT(0,0,0) |
1102 | + | local Lifetime2 = Table.Lifetime2 or 1.5 |
1103 | - | local Enabled = Table.Enabled or false |
1103 | + | local Parent = Table.Parent or Torso |
1104 | - | PRTCL.Parent = Parent |
1104 | + | local Emit = Table.Emit or 100 |
1105 | - | PRTCL.Size = NumberSequence.new(Size1,Size2) |
1105 | + | local Offset = Table.Offset or 360 |
1106 | - | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
1106 | + | local Acel = Table.Acel or VT(0,0,0) |
1107 | - | PRTCL.Speed = NumberRange.new(Speed) |
1107 | + | local Enabled = Table.Enabled or false |
1108 | - | PRTCL.VelocitySpread = Offset |
1108 | + | PRTCL.Parent = Parent |
1109 | - | PRTCL.Drag = Drag |
1109 | + | PRTCL.Size = NumberSequence.new(Size1,Size2) |
1110 | - | PRTCL.Acceleration = Acel |
1110 | + | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
1111 | - | if Enabled == false then |
1111 | + | PRTCL.Speed = NumberRange.new(Speed) |
1112 | - | PRTCL:Emit(Emit) |
1112 | + | PRTCL.VelocitySpread = Offset |
1113 | - | Debris:AddItem(PRTCL,Lifetime2) |
1113 | + | PRTCL.Drag = Drag |
1114 | - | else |
1114 | + | PRTCL.Acceleration = Acel |
1115 | - | PRTCL.Enabled = true |
1115 | + | if Enabled == false then |
1116 | - | end |
1116 | + | PRTCL:Emit(Emit) |
1117 | - | return PRTCL |
1117 | + | Debris:AddItem(PRTCL,Lifetime2) |
1118 | else | |
1119 | PRTCL.Enabled = true | |
1120 | end | |
1121 | return PRTCL | |
1122 | end | |
1123 | ||
1124 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1125 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1126 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1127 | MakeForm(Part,"Wedge") | |
1128 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1129 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1130 | MakeForm(Part,"Wedge") | |
1131 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1132 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1133 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1134 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1135 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1136 | - | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
1136 | + | |
1137 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) |
1137 | + | |
1138 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1139 | for i = 1, 8 do | |
1140 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1141 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1142 | end | |
1143 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1144 | MakeForm(Part,"Cyl") | |
1145 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1146 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1147 | MakeForm(Part,"Ball") | |
1148 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1149 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1150 | MakeForm(Part,"Wedge") | |
1151 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1152 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1153 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1154 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1155 | MakeForm(Part,"Cyl") | |
1156 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1157 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1158 | MakeForm(Part,"Cyl") | |
1159 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1160 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1161 | MakeForm(Part,"Cyl") | |
1162 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1163 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1164 | - | if LASTPART == Handle then |
1164 | + | |
1165 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
1165 | + | |
1166 | - | LASTPART = Part |
1166 | + | |
1167 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1167 | + | |
1168 | - | else |
1168 | + | if LASTPART == Handle then |
1169 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) |
1169 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
1170 | - | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) |
1170 | + | LASTPART = Part |
1171 | - | LASTPART = Part |
1171 | + | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1172 | - | end |
1172 | + | else |
1173 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1174 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1175 | LASTPART = Part | |
1176 | end | |
1177 | end | |
1178 | ||
1179 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1180 | MakeForm(Barrel,"Cyl") | |
1181 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1182 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1183 | MakeForm(Part,"Cyl") | |
1184 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1185 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1186 | MakeForm(Part,"Wedge") | |
1187 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1188 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1189 | MakeForm(Hole,"Cyl") | |
1190 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1191 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1192 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1193 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1194 | - | while wait() do |
1194 | + | |
1195 | - | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) |
1195 | + | |
1196 | - | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) |
1196 | + | |
1197 | - | end |
1197 | + | |
1198 | while wait() do | |
1199 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1200 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1201 | end | |
1202 | end)) | |
1203 | ||
1204 | --W2-- | |
1205 | ||
1206 | local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1207 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1208 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1209 | MakeForm(Part,"Wedge") | |
1210 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1211 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1212 | MakeForm(Part,"Wedge") | |
1213 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1214 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1215 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1216 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1217 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1218 | - | local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
1218 | + | |
1219 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) |
1219 | + | |
1220 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1221 | for i = 1, 8 do | |
1222 | local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1223 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1224 | end | |
1225 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1226 | MakeForm(Part,"Cyl") | |
1227 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1228 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1229 | MakeForm(Part,"Ball") | |
1230 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1231 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1232 | MakeForm(Part,"Wedge") | |
1233 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1234 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1235 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1236 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1237 | MakeForm(Part,"Cyl") | |
1238 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1239 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1240 | MakeForm(Part,"Cyl") | |
1241 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1242 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1243 | MakeForm(Part,"Cyl") | |
1244 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1245 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1246 | MakeForm(Part,"Wedge") | |
1247 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(135), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
1248 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1249 | MakeForm(Part,"Cyl") | |
1250 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1251 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1252 | - | if LASTPART == Handle then |
1252 | + | |
1253 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
1253 | + | |
1254 | - | LASTPART = Part |
1254 | + | |
1255 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1255 | + | |
1256 | - | else |
1256 | + | if LASTPART == Handle then |
1257 | - | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) |
1257 | + | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
1258 | - | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) |
1258 | + | LASTPART = Part |
1259 | - | LASTPART = Part |
1259 | + | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1260 | - | end |
1260 | + | else |
1261 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1262 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1263 | LASTPART = Part | |
1264 | end | |
1265 | end | |
1266 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe", VT(0.2,0.5,0.2),false) | |
1267 | MakeForm(Part,"Wedge") | |
1268 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-125), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1269 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe2", VT(0.2,0.5,0.2),false) | |
1270 | MakeForm(Part,"Wedge") | |
1271 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(125), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
1272 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe3", VT(0.2,0.5,0.2),false) | |
1273 | MakeForm(Part,"Wedge") | |
1274 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-145), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1275 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe4", VT(0.2,0.5,0.2),false) | |
1276 | MakeForm(Part,"Wedge") | |
1277 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(145), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
1278 | ||
1279 | local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,5,0.15),false) | |
1280 | MakeForm(Barrel,"Cyl") | |
1281 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1282 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1283 | MakeForm(Part,"Cyl") | |
1284 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1285 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1286 | MakeForm(Part,"Wedge") | |
1287 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 2.4, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1288 | local RHole = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1289 | MakeForm(RHole,"Cyl") | |
1290 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, RHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1291 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1292 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1293 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1294 | - | while wait() do |
1294 | + | |
1295 | - | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) |
1295 | + | |
1296 | - | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) |
1296 | + | |
1297 | - | end |
1297 | + | |
1298 | while wait() do | |
1299 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1300 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1301 | end | |
1302 | end)) | |
1303 | - | if c:IsA("BasePart") and c.Name ~= "Handle" then |
1303 | + | |
1304 | - | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then |
1304 | + | |
1305 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1305 | + | |
1306 | - | end |
1306 | + | |
1307 | - | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) |
1307 | + | if c:IsA("BasePart") and c.Name ~= "Handle" then |
1308 | - | elseif c:IsA("JointInstance") then |
1308 | + | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then |
1309 | - | table.insert(BODY,{c,c.Parent,nil,nil,nil}) |
1309 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1310 | - | end |
1310 | + | |
1311 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
1312 | elseif c:IsA("JointInstance") then | |
1313 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
1314 | - | if BODY[e] ~= nil then |
1314 | + | |
1315 | - | local STUFF = BODY[e] |
1315 | + | |
1316 | - | local PART = STUFF[1] |
1316 | + | |
1317 | - | local PARENT = STUFF[2] |
1317 | + | |
1318 | - | local MATERIAL = STUFF[3] |
1318 | + | if BODY[e] ~= nil then |
1319 | - | local COLOR = STUFF[4] |
1319 | + | local STUFF = BODY[e] |
1320 | - | local TRANSPARENCY = STUFF[5] |
1320 | + | local PART = STUFF[1] |
1321 | - | if PART.ClassName == "Part" and PART ~= RootPart then |
1321 | + | local PARENT = STUFF[2] |
1322 | - | PART.Material = MATERIAL |
1322 | + | local MATERIAL = STUFF[3] |
1323 | - | PART.Color = COLOR |
1323 | + | local COLOR = STUFF[4] |
1324 | - | PART.Transparency = TRANSPARENCY |
1324 | + | local TRANSPARENCY = STUFF[5] |
1325 | - | end |
1325 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
1326 | - | PART.AncestryChanged:Connect(function() |
1326 | + | PART.Material = MATERIAL |
1327 | - | PART.Parent = PARENT |
1327 | + | PART.Color = COLOR |
1328 | - | end) |
1328 | + | PART.Transparency = TRANSPARENCY |
1329 | - | end |
1329 | + | |
1330 | PART.AncestryChanged:Connect(function() | |
1331 | PART.Parent = PARENT | |
1332 | end) | |
1333 | - | Character.Parent = workspace |
1333 | + | |
1334 | - | for e = 1, #BODY do |
1334 | + | |
1335 | - | if BODY[e] ~= nil then |
1335 | + | |
1336 | - | local STUFF = BODY[e] |
1336 | + | |
1337 | - | local PART = STUFF[1] |
1337 | + | Character.Parent = workspace |
1338 | - | local PARENT = STUFF[2] |
1338 | + | for e = 1, #BODY do |
1339 | - | local MATERIAL = STUFF[3] |
1339 | + | if BODY[e] ~= nil then |
1340 | - | local COLOR = STUFF[4] |
1340 | + | local STUFF = BODY[e] |
1341 | - | local TRANSPARENCY = STUFF[5] |
1341 | + | local PART = STUFF[1] |
1342 | - | if PART.ClassName == "Part" and PART ~= RootPart then |
1342 | + | local PARENT = STUFF[2] |
1343 | - | PART.Material = MATERIAL |
1343 | + | local MATERIAL = STUFF[3] |
1344 | - | PART.Color = COLOR |
1344 | + | local COLOR = STUFF[4] |
1345 | - | PART.Transparency = TRANSPARENCY |
1345 | + | local TRANSPARENCY = STUFF[5] |
1346 | - | end |
1346 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
1347 | - | if PART.Parent ~= PARENT then |
1347 | + | PART.Material = MATERIAL |
1348 | - | Humanoid:remove() |
1348 | + | PART.Color = COLOR |
1349 | - | PART.Parent = PARENT |
1349 | + | PART.Transparency = TRANSPARENCY |
1350 | - | Humanoid = IT("Humanoid",Character) |
1350 | + | |
1351 | - | end |
1351 | + | if PART.Parent ~= PARENT then |
1352 | - | end |
1352 | + | Humanoid:remove() |
1353 | - | end |
1353 | + | PART.Parent = PARENT |
1354 | Humanoid = IT("Humanoid",Character) | |
1355 | end | |
1356 | end | |
1357 | - | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1357 | + | |
1358 | - | c.Material = "Glass" |
1358 | + | |
1359 | - | c.Color = C3(0,0,0) |
1359 | + | |
1360 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
1360 | + | |
1361 | - | c.Color = C3(0,0,0) |
1361 | + | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1362 | - | c.Material = "Neon" |
1362 | + | c.Material = "Glass" |
1363 | - | end |
1363 | + | c.Color = C3(0,0,0) |
1364 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1365 | c.Color = C3(0,0,0) | |
1366 | c.Material = "Neon" | |
1367 | - | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1367 | + | |
1368 | - | c.Material = "Glass" |
1368 | + | |
1369 | - | c.Color = C3(0,0,0) |
1369 | + | |
1370 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
1370 | + | |
1371 | - | c.Color = C3(1,0,0) |
1371 | + | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1372 | - | c.Material = "Neon" |
1372 | + | c.Material = "Glass" |
1373 | - | end |
1373 | + | c.Color = C3(0,0,0) |
1374 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1375 | c.Color = C3(1,0,0) | |
1376 | c.Material = "Neon" | |
1377 | end | |
1378 | end | |
1379 | - | if c.ClassName == "Part" then |
1379 | + | |
1380 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1380 | + | |
1381 | - | end |
1381 | + | |
1382 | for _, c in pairs(Weapon:GetChildren()) do | |
1383 | if c.ClassName == "Part" then | |
1384 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1385 | end | |
1386 | end | |
1387 | ||
1388 | local SKILLTEXTCOLOR = C3(0,0,0) | |
1389 | - | ATTACK = true |
1389 | + | |
1390 | local SKILLTEXTSIZE = 7 | |
1391 | ||
1392 | Humanoid.Died:connect(function() | |
1393 | ATTACK = true | |
1394 | end) | |
1395 | ||
1396 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1397 | - | 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, "} |
1397 | + | |
1398 | - | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") |
1398 | + | |
1399 | ||
1400 | function printbye(Name) | |
1401 | 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, "} | |
1402 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1403 | - | if TOBANISH[BANISH] ~= nil then |
1403 | + | |
1404 | - | if instance.Name == TOBANISH[BANISH] then |
1404 | + | |
1405 | - | coroutine.resume(coroutine.create(function() |
1405 | + | |
1406 | - | printbye(instance.Name) |
1406 | + | |
1407 | - | instance:ClearAllChildren() |
1407 | + | if TOBANISH[BANISH] ~= nil then |
1408 | - | Debris:AddItem(instance,0.0005) |
1408 | + | if instance.Name == TOBANISH[BANISH] then |
1409 | - | end)) |
1409 | + | coroutine.resume(coroutine.create(function() |
1410 | - | end |
1410 | + | printbye(instance.Name) |
1411 | - | end |
1411 | + | instance:ClearAllChildren() |
1412 | - | end |
1412 | + | Debris:AddItem(instance,0.0005) |
1413 | end)) | |
1414 | end | |
1415 | - | --|| DAMAGING |
1415 | + | |
1416 | end | |
1417 | end) | |
1418 | --//=================================\\ | |
1419 | - | Damage = Damage * DAMAGEMULTIPLIER |
1419 | + | --|| DAMAGING |
1420 | - | local DEAD = false |
1420 | + | |
1421 | - | if Humanoid.Health < 2000 and OneShot == false then |
1421 | + | |
1422 | - | if Humanoid.Health - Damage > 0 then |
1422 | + | |
1423 | - | Humanoid.Health = Humanoid.Health - Damage |
1423 | + | Damage = Damage * DAMAGEMULTIPLIER |
1424 | - | else |
1424 | + | local DEAD = false |
1425 | - | Humanoid.Parent:BreakJoints() |
1425 | + | if Humanoid.Health < 2000 and OneShot == false then |
1426 | - | DEAD = true |
1426 | + | if Humanoid.Health - Damage > 0 then |
1427 | - | end |
1427 | + | Humanoid.Health = Humanoid.Health - Damage |
1428 | - | else |
1428 | + | else |
1429 | - | DEAD = true |
1429 | + | Humanoid.Parent:BreakJoints() |
1430 | - | Humanoid.Parent:BreakJoints() |
1430 | + | DEAD = true |
1431 | - | end |
1431 | + | |
1432 | - | if DEAD == true then |
1432 | + | else |
1433 | - | local PARTS = {} |
1433 | + | DEAD = true |
1434 | - | for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do |
1434 | + | Humanoid.Parent:BreakJoints() |
1435 | - | if CHILD:IsA("BasePart") then |
1435 | + | |
1436 | - | table.insert(PARTS,CHILD) |
1436 | + | if DEAD == true then |
1437 | - | end |
1437 | + | local PARTS = {} |
1438 | - | end |
1438 | + | for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do |
1439 | - | coroutine.resume(coroutine.create(function() |
1439 | + | if CHILD:IsA("BasePart") then |
1440 | - | wait(2) |
1440 | + | table.insert(PARTS,CHILD) |
1441 | - | repeat |
1441 | + | |
1442 | - | Swait() |
1442 | + | |
1443 | - | local PIECE = nil |
1443 | + | coroutine.resume(coroutine.create(function() |
1444 | - | if MRANDOM(1,5) == 1 then |
1444 | + | wait(2) |
1445 | - | for E = 1, #PARTS do |
1445 | + | repeat |
1446 | - | if MRANDOM(1,5) == 1 then |
1446 | + | Swait() |
1447 | - | PIECE = PARTS[E] |
1447 | + | local PIECE = nil |
1448 | - | table.remove(PARTS,E) |
1448 | + | if MRANDOM(1,5) == 1 then |
1449 | - | break |
1449 | + | for E = 1, #PARTS do |
1450 | - | end |
1450 | + | if MRANDOM(1,5) == 1 then |
1451 | - | end |
1451 | + | PIECE = PARTS[E] |
1452 | - | end |
1452 | + | table.remove(PARTS,E) |
1453 | - | if PIECE ~= nil then |
1453 | + | break |
1454 | - | if PIECE.Name == "Head" then |
1454 | + | end |
1455 | - | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) |
1455 | + | |
1456 | - | else |
1456 | + | |
1457 | - | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) |
1457 | + | if PIECE ~= nil then |
1458 | - | end |
1458 | + | if PIECE.Name == "Head" then |
1459 | - | PIECE:remove() |
1459 | + | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) |
1460 | - | end |
1460 | + | else |
1461 | - | until #PARTS == 0 |
1461 | + | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) |
1462 | - | end)) |
1462 | + | |
1463 | - | end |
1463 | + | PIECE:remove() |
1464 | end | |
1465 | until #PARTS == 0 | |
1466 | end)) | |
1467 | end | |
1468 | - | local defence = Instance.new("BoolValue",Humanoid.Parent) |
1468 | + | |
1469 | - | defence.Name = ("HitBy"..Player.Name) |
1469 | + | |
1470 | - | game:GetService("Debris"):AddItem(defence, 0.001) |
1470 | + | |
1471 | - | Damage = Damage * DAMAGEMULTIPLIER |
1471 | + | |
1472 | - | if Humanoid.Health ~= 0 then |
1472 | + | local defence = Instance.new("BoolValue",Humanoid.Parent) |
1473 | - | local CritChance = MRANDOM(1,100) |
1473 | + | defence.Name = ("HitBy"..Player.Name) |
1474 | - | if Damage > Humanoid.Health then |
1474 | + | game:GetService("Debris"):AddItem(defence, 0.001) |
1475 | - | Damage = math.ceil(Humanoid.Health) |
1475 | + | Damage = Damage * DAMAGEMULTIPLIER |
1476 | - | if Damage == 0 then |
1476 | + | if Humanoid.Health ~= 0 then |
1477 | - | Damage = 0.1 |
1477 | + | local CritChance = MRANDOM(1,100) |
1478 | - | end |
1478 | + | if Damage > Humanoid.Health then |
1479 | - | end |
1479 | + | Damage = math.ceil(Humanoid.Health) |
1480 | - | Humanoid.Health = Humanoid.Health - Damage |
1480 | + | if Damage == 0 then |
1481 | - | end |
1481 | + | Damage = 0.1 |
1482 | end | |
1483 | end | |
1484 | Humanoid.Health = Humanoid.Health - Damage | |
1485 | - | local defence = Instance.new("BoolValue",Humanoid.Parent) |
1485 | + | |
1486 | - | defence.Name = ("HitBy"..Player.Name) |
1486 | + | |
1487 | - | game:GetService("Debris"):AddItem(defence, 0.001) |
1487 | + | |
1488 | - | Damage = Damage * DAMAGEMULTIPLIER |
1488 | + | |
1489 | - | if Humanoid.Health ~= 0 then |
1489 | + | local defence = Instance.new("BoolValue",Humanoid.Parent) |
1490 | - | local CritChance = MRANDOM(1,100) |
1490 | + | defence.Name = ("HitBy"..Player.Name) |
1491 | - | if Damage > Humanoid.Health then |
1491 | + | game:GetService("Debris"):AddItem(defence, 0.001) |
1492 | - | Damage = math.ceil(Humanoid.Health) |
1492 | + | Damage = Damage * DAMAGEMULTIPLIER |
1493 | - | if Damage == 0 then |
1493 | + | if Humanoid.Health ~= 0 then |
1494 | - | Damage = 0.1 |
1494 | + | local CritChance = MRANDOM(1,100) |
1495 | - | end |
1495 | + | if Damage > Humanoid.Health then |
1496 | - | end |
1496 | + | Damage = math.ceil(Humanoid.Health) |
1497 | - | Humanoid.Health = Humanoid.Health - Damage |
1497 | + | if Damage == 0 then |
1498 | - | end |
1498 | + | Damage = 0.1 |
1499 | end | |
1500 | end | |
1501 | Humanoid.Health = Humanoid.Health - Damage | |
1502 | - | local CHILDREN = workspace:GetDescendants() |
1502 | + | |
1503 | - | for index, CHILD in pairs(CHILDREN) do |
1503 | + | |
1504 | - | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then |
1504 | + | |
1505 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1505 | + | |
1506 | - | if HUM then |
1506 | + | local CHILDREN = workspace:GetDescendants() |
1507 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1507 | + | for index, CHILD in pairs(CHILDREN) do |
1508 | - | if TORSO then |
1508 | + | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then |
1509 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1509 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1510 | - | if INSTAKILL == true then |
1510 | + | if HUM then |
1511 | - | CHILD:BreakJoints() |
1511 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1512 | - | else |
1512 | + | if TORSO then |
1513 | - | local DMG = MRANDOM(MINDMG,MAXDMG) |
1513 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1514 | - | ApplyDamage(HUM,DMG,TORSO) |
1514 | + | if INSTAKILL == true then |
1515 | - | end |
1515 | + | CHILD:BreakJoints() |
1516 | - | if FLING > 0 then |
1516 | + | else |
1517 | - | for _, c in pairs(CHILD:GetChildren()) do |
1517 | + | local DMG = MRANDOM(MINDMG,MAXDMG) |
1518 | - | if c:IsA("BasePart") then |
1518 | + | ApplyDamage(HUM,DMG,TORSO) |
1519 | - | local bv = Instance.new("BodyVelocity") |
1519 | + | end |
1520 | - | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
1520 | + | if FLING > 0 then |
1521 | - | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING |
1521 | + | for _, c in pairs(CHILD:GetChildren()) do |
1522 | - | bv.Parent = c |
1522 | + | if c:IsA("BasePart") then |
1523 | - | Debris:AddItem(bv,0.05) |
1523 | + | local bv = Instance.new("BodyVelocity") |
1524 | - | end |
1524 | + | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
1525 | - | end |
1525 | + | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING |
1526 | - | end |
1526 | + | bv.Parent = c |
1527 | - | end |
1527 | + | Debris:AddItem(bv,0.05) |
1528 | - | end |
1528 | + | end |
1529 | - | end |
1529 | + | end |
1530 | - | end |
1530 | + | end |
1531 | - | end |
1531 | + | |
1532 | end | |
1533 | end | |
1534 | end | |
1535 | - | coroutine.resume(coroutine.create(function() |
1535 | + | |
1536 | - | local intensity = 1 * Intensity |
1536 | + | |
1537 | - | local rotM = 0.01 * Intensity |
1537 | + | |
1538 | - | for i = 0, Length, 0.1 do |
1538 | + | |
1539 | - | Swait() |
1539 | + | coroutine.resume(coroutine.create(function() |
1540 | - | intensity = intensity - 0.05 * Intensity / Length |
1540 | + | local intensity = 1 * Intensity |
1541 | - | rotM = rotM - 5.0E-4 * Intensity / Length |
1541 | + | local rotM = 0.01 * Intensity |
1542 | - | Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) |
1542 | + | for i = 0, Length, 0.1 do |
1543 | - | Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM) |
1543 | + | Swait() |
1544 | - | end |
1544 | + | intensity = intensity - 0.05 * Intensity / Length |
1545 | - | Humanoid.CameraOffset = Vector3.new(0, 0, 0) |
1545 | + | rotM = rotM - 5.0E-4 * Intensity / Length |
1546 | - | end)) |
1546 | + | Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) |
1547 | Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM) | |
1548 | end | |
1549 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
1550 | - | v:BreakJoints() |
1550 | + | end)) |
1551 | - | for _, c in pairs(v:GetChildren()) do |
1551 | + | |
1552 | - | if c:IsA("BasePart") then |
1552 | + | |
1553 | - | if c.Transparency < 1 then |
1553 | + | |
1554 | - | if c:FindFirstChildOfClass("Decal") then |
1554 | + | v:BreakJoints() |
1555 | - | c:FindFirstChildOfClass("Decal"):remove() |
1555 | + | for _, c in pairs(v:GetChildren()) do |
1556 | - | end |
1556 | + | if c:IsA("BasePart") then |
1557 | - | particles(c) |
1557 | + | if c.Transparency < 1 then |
1558 | - | c.PE.Enabled = true |
1558 | + | if c:FindFirstChildOfClass("Decal") then |
1559 | - | c.Parent = Effects |
1559 | + | c:FindFirstChildOfClass("Decal"):remove() |
1560 | - | c.CanCollide = false |
1560 | + | |
1561 | - | c.Material = "Neon" |
1561 | + | particles(c) |
1562 | - | c.Color = C3(1,0,0) |
1562 | + | c.PE.Enabled = true |
1563 | - | c.Transparency = 1 |
1563 | + | c.Parent = Effects |
1564 | - | local grav = Instance.new("BodyPosition",c) |
1564 | + | c.CanCollide = false |
1565 | - | grav.P = 20000 |
1565 | + | c.Material = "Neon" |
1566 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1566 | + | c.Color = C3(1,0,0) |
1567 | - | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) |
1567 | + | c.Transparency = 1 |
1568 | - | grav.Name = "GravityForce" |
1568 | + | local grav = Instance.new("BodyPosition",c) |
1569 | - | coroutine.resume(coroutine.create(function() |
1569 | + | grav.P = 20000 |
1570 | - | for i = 1, 20 do |
1570 | + | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1571 | - | Swait() |
1571 | + | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) |
1572 | - | c.Transparency = c.Transparency + 1/20 |
1572 | + | grav.Name = "GravityForce" |
1573 | - | end |
1573 | + | coroutine.resume(coroutine.create(function() |
1574 | - | c.PE.Enabled = false |
1574 | + | for i = 1, 20 do |
1575 | - | Debris:AddItem(c,2) |
1575 | + | Swait() |
1576 | - | end)) |
1576 | + | c.Transparency = c.Transparency + 1/20 |
1577 | - | end |
1577 | + | |
1578 | - | end |
1578 | + | c.PE.Enabled = false |
1579 | - | end |
1579 | + | Debris:AddItem(c,2) |
1580 | end)) | |
1581 | end | |
1582 | end | |
1583 | - | local CHILDREN = workspace:GetDescendants() |
1583 | + | |
1584 | - | for index, CHILD in pairs(CHILDREN) do |
1584 | + | |
1585 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1585 | + | |
1586 | - | local LISTED = false |
1586 | + | |
1587 | - | for LIST = 1, #WHITELIST do |
1587 | + | local CHILDREN = workspace:GetDescendants() |
1588 | - | if WHITELIST[LIST] ~= nil then |
1588 | + | for index, CHILD in pairs(CHILDREN) do |
1589 | - | if CHILD.Name == WHITELIST[LIST] then |
1589 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1590 | - | LISTED = true |
1590 | + | local LISTED = false |
1591 | - | end |
1591 | + | for LIST = 1, #WHITELIST do |
1592 | - | end |
1592 | + | if WHITELIST[LIST] ~= nil then |
1593 | - | end |
1593 | + | if CHILD.Name == WHITELIST[LIST] then |
1594 | - | if LISTED == false then |
1594 | + | LISTED = true |
1595 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1595 | + | |
1596 | - | if HUM then |
1596 | + | |
1597 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1597 | + | |
1598 | - | if TORSO then |
1598 | + | if LISTED == false then |
1599 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then |
1599 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1600 | - | KillChildren(CHILD) |
1600 | + | if HUM then |
1601 | - | end |
1601 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1602 | - | end |
1602 | + | if TORSO then |
1603 | - | end |
1603 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then |
1604 | - | end |
1604 | + | KillChildren(CHILD) |
1605 | - | end |
1605 | + | end |
1606 | - | end |
1606 | + | |
1607 | end | |
1608 | end | |
1609 | end | |
1610 | - | coroutine.resume(coroutine.create(function() |
1610 | + | |
1611 | - | local METEOR = IT("Model",Effects) |
1611 | + | |
1612 | - | METEOR.Name = "Meteorite" |
1612 | + | |
1613 | - | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) |
1613 | + | |
1614 | - | METEOR.PrimaryPart = CENTER |
1614 | + | coroutine.resume(coroutine.create(function() |
1615 | - | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) |
1615 | + | local METEOR = IT("Model",Effects) |
1616 | - | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1616 | + | METEOR.Name = "Meteorite" |
1617 | - | for i = 1, 15 do |
1617 | + | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) |
1618 | - | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) |
1618 | + | METEOR.PrimaryPart = CENTER |
1619 | - | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1619 | + | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) |
1620 | - | end |
1620 | + | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1621 | - | if ISDEBREE ~= true then |
1621 | + | for i = 1, 15 do |
1622 | - | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1622 | + | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) |
1623 | - | else |
1623 | + | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1624 | - | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1624 | + | |
1625 | - | end |
1625 | + | if ISDEBREE ~= true then |
1626 | - | local IMPACT = false |
1626 | + | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1627 | - | CreateSound(463593339, CENTER, 10, 0.6) |
1627 | + | else |
1628 | - | if SIZE >= 3.5 then |
1628 | + | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1629 | - | for i = 1, MRANDOM(3,7) do |
1629 | + | |
1630 | - | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) |
1630 | + | local IMPACT = false |
1631 | - | end |
1631 | + | CreateSound(463593339, CENTER, 10, 0.6) |
1632 | - | end |
1632 | + | if SIZE >= 3.5 then |
1633 | - | for i = 1, 200 do |
1633 | + | for i = 1, MRANDOM(3,7) do |
1634 | - | Swait() |
1634 | + | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) |
1635 | - | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) |
1635 | + | |
1636 | - | if HITFLOOR == nil then |
1636 | + | |
1637 | - | local ORI = CENTER.Orientation |
1637 | + | for i = 1, 200 do |
1638 | - | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1638 | + | Swait() |
1639 | - | else |
1639 | + | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) |
1640 | - | if HITFLOOR.Anchored == true then |
1640 | + | if HITFLOOR == nil then |
1641 | - | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) |
1641 | + | local ORI = CENTER.Orientation |
1642 | - | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) |
1642 | + | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1643 | - | end |
1643 | + | else |
1644 | - | IMPACT = true |
1644 | + | if HITFLOOR.Anchored == true then |
1645 | - | break |
1645 | + | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) |
1646 | - | end |
1646 | + | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) |
1647 | - | end |
1647 | + | |
1648 | - | if IMPACT == true then |
1648 | + | IMPACT = true |
1649 | - | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1649 | + | break |
1650 | - | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) |
1650 | + | |
1651 | - | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1651 | + | |
1652 | - | ApplyAoE(CENTER.Position,30*SIZE) |
1652 | + | if IMPACT == true then |
1653 | - | end |
1653 | + | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1654 | - | METEOR:remove() |
1654 | + | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) |
1655 | - | end)) |
1655 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1656 | ApplyAoE(CENTER.Position,30*SIZE) | |
1657 | end | |
1658 | METEOR:remove() | |
1659 | - | local CHILDREN = workspace:GetDescendants() |
1659 | + | end)) |
1660 | - | for index, CHILD in pairs(CHILDREN) do |
1660 | + | |
1661 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1661 | + | |
1662 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1662 | + | |
1663 | - | if HUM then |
1663 | + | local CHILDREN = workspace:GetDescendants() |
1664 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1664 | + | for index, CHILD in pairs(CHILDREN) do |
1665 | - | if TORSO then |
1665 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1666 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1666 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1667 | - | if BRUTAL == true then |
1667 | + | if HUM then |
1668 | - | Kill(CHILD) |
1668 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1669 | - | else |
1669 | + | if TORSO then |
1670 | - | CHILD:BreakJoints() |
1670 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1671 | - | end |
1671 | + | if BRUTAL == true then |
1672 | - | end |
1672 | + | Kill(CHILD) |
1673 | - | end |
1673 | + | else |
1674 | - | end |
1674 | + | CHILD:BreakJoints() |
1675 | - | end |
1675 | + | end |
1676 | - | end |
1676 | + | |
1677 | end | |
1678 | end | |
1679 | end | |
1680 | - | local NewCharacter = IT("Model",Effects) |
1680 | + | |
1681 | - | NewCharacter.Name = "Ow im ded ;-;" |
1681 | + | |
1682 | - | for _, c in pairs(Char:GetDescendants()) do |
1682 | + | |
1683 | - | if c:IsA("BasePart") and c.Transparency == 0 then |
1683 | + | |
1684 | - | c:BreakJoints() |
1684 | + | local NewCharacter = IT("Model",Effects) |
1685 | - | c.Material = "Glass" |
1685 | + | NewCharacter.Name = "Ow im ded ;-;" |
1686 | - | c.Color = C3(1,0,0) |
1686 | + | for _, c in pairs(Char:GetDescendants()) do |
1687 | - | c.CanCollide = true |
1687 | + | if c:IsA("BasePart") and c.Transparency == 0 then |
1688 | - | c.Transparency = 0.3 |
1688 | + | c:BreakJoints() |
1689 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
1689 | + | c.Material = "Glass" |
1690 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1690 | + | c.Color = C3(1,0,0) |
1691 | - | end |
1691 | + | c.CanCollide = true |
1692 | - | if c.Name == "Head" then |
1692 | + | c.Transparency = 0.3 |
1693 | - | c:ClearAllChildren() |
1693 | + | if c:FindFirstChildOfClass("SpecialMesh") then |
1694 | - | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) |
1694 | + | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1695 | - | end |
1695 | + | |
1696 | - | if c.ClassName == "MeshPart" then |
1696 | + | if c.Name == "Head" then |
1697 | - | c.TextureID = "" |
1697 | + | c:ClearAllChildren() |
1698 | - | end |
1698 | + | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) |
1699 | - | if c:FindFirstChildOfClass("BodyPosition") then |
1699 | + | |
1700 | - | c:FindFirstChildOfClass("BodyPosition"):remove() |
1700 | + | if c.ClassName == "MeshPart" then |
1701 | - | end |
1701 | + | c.TextureID = "" |
1702 | - | if c:FindFirstChildOfClass("ParticleEmitter") then |
1702 | + | |
1703 | - | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
1703 | + | if c:FindFirstChildOfClass("BodyPosition") then |
1704 | - | end |
1704 | + | c:FindFirstChildOfClass("BodyPosition"):remove() |
1705 | - | c.Parent = NewCharacter |
1705 | + | |
1706 | - | c.Name = "DeadPart" |
1706 | + | if c:FindFirstChildOfClass("ParticleEmitter") then |
1707 | - | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 |
1707 | + | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
1708 | - | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) |
1708 | + | |
1709 | - | end |
1709 | + | c.Parent = NewCharacter |
1710 | - | end |
1710 | + | c.Name = "DeadPart" |
1711 | - | Char:remove() |
1711 | + | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 |
1712 | - | Debris:AddItem(NewCharacter,5) |
1712 | + | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) |
1713 | end | |
1714 | end | |
1715 | Char:remove() | |
1716 | - | local CHILDREN = workspace:GetDescendants() |
1716 | + | Debris:AddItem(NewCharacter,5) |
1717 | - | for index, CHILD in pairs(CHILDREN) do |
1717 | + | |
1718 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1718 | + | |
1719 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1719 | + | |
1720 | - | if HUM then |
1720 | + | local CHILDREN = workspace:GetDescendants() |
1721 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1721 | + | for index, CHILD in pairs(CHILDREN) do |
1722 | - | if TORSO then |
1722 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1723 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1723 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1724 | - | if BRUTAL == true then |
1724 | + | if HUM then |
1725 | - | Kill(CHILD) |
1725 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1726 | - | else |
1726 | + | if TORSO then |
1727 | - | CHILD:BreakJoints() |
1727 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1728 | - | end |
1728 | + | if BRUTAL == true then |
1729 | - | end |
1729 | + | Kill(CHILD) |
1730 | - | end |
1730 | + | else |
1731 | - | end |
1731 | + | CHILD:BreakJoints() |
1732 | - | end |
1732 | + | end |
1733 | - | end |
1733 | + | |
1734 | end | |
1735 | end | |
1736 | end | |
1737 | - | local CHILDREN = workspace:GetDescendants() |
1737 | + | |
1738 | - | for index, CHILD in pairs(CHILDREN) do |
1738 | + | |
1739 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1739 | + | |
1740 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1740 | + | |
1741 | - | if HUM then |
1741 | + | local CHILDREN = workspace:GetDescendants() |
1742 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1742 | + | for index, CHILD in pairs(CHILDREN) do |
1743 | - | if TORSO then |
1743 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1744 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1744 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1745 | - | if BRUTAL == true then |
1745 | + | if HUM then |
1746 | - | Kill(CHILD) |
1746 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1747 | - | else |
1747 | + | if TORSO then |
1748 | - | CHILD:BreakJoints() |
1748 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1749 | - | end |
1749 | + | if BRUTAL == true then |
1750 | - | end |
1750 | + | Kill(CHILD) |
1751 | - | end |
1751 | + | else |
1752 | - | end |
1752 | + | CHILD:BreakJoints() |
1753 | - | end |
1753 | + | end |
1754 | - | end |
1754 | + | |
1755 | end | |
1756 | end | |
1757 | end | |
1758 | - | if Foe then |
1758 | + | |
1759 | - | coroutine.resume(coroutine.create(function() |
1759 | + | |
1760 | - | --if game.Players:FindFirstChild(Foe.Name) then |
1760 | + | |
1761 | - | table.insert(TOBANISH,Foe.Name) |
1761 | + | |
1762 | - | printbye(Foe.Name) |
1762 | + | if Foe then |
1763 | - | --end |
1763 | + | coroutine.resume(coroutine.create(function() |
1764 | - | Foe.Archivable = true |
1764 | + | --if game.Players:FindFirstChild(Foe.Name) then |
1765 | - | local CLONE = Foe:Clone() |
1765 | + | table.insert(TOBANISH,Foe.Name) |
1766 | - | Foe:Destroy() |
1766 | + | printbye(Foe.Name) |
1767 | - | CLONE.Parent = Effects |
1767 | + | --end |
1768 | - | CLONE:BreakJoints() |
1768 | + | Foe.Archivable = true |
1769 | - | local MATERIALS = {"Glass","Neon"} |
1769 | + | local CLONE = Foe:Clone() |
1770 | - | for _, c in pairs(CLONE:GetDescendants()) do |
1770 | + | Foe:Destroy() |
1771 | - | if c:IsA("BasePart") then |
1771 | + | CLONE.Parent = Effects |
1772 | - | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then |
1772 | + | CLONE:BreakJoints() |
1773 | - | CreateSound(138271815, c, 10, 1, false) |
1773 | + | local MATERIALS = {"Glass","Neon"} |
1774 | - | end |
1774 | + | for _, c in pairs(CLONE:GetDescendants()) do |
1775 | - | c.Anchored = true |
1775 | + | if c:IsA("BasePart") then |
1776 | - | c.Transparency = c.Transparency + 0.2 |
1776 | + | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then |
1777 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
1777 | + | CreateSound(138271815, c, 10, 1, false) |
1778 | - | c.Color = C3(1,0,0) |
1778 | + | |
1779 | - | if c.ClassName == "MeshPart" then |
1779 | + | c.Anchored = true |
1780 | - | c.TextureID = "" |
1780 | + | c.Transparency = c.Transparency + 0.2 |
1781 | - | end |
1781 | + | c.Material = MATERIALS[MRANDOM(1,2)] |
1782 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
1782 | + | c.Color = C3(1,0,0) |
1783 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1783 | + | if c.ClassName == "MeshPart" then |
1784 | - | end |
1784 | + | c.TextureID = "" |
1785 | - | if c:FindFirstChildOfClass("Decal") then |
1785 | + | |
1786 | - | c:FindFirstChildOfClass("Decal"):remove() |
1786 | + | if c:FindFirstChildOfClass("SpecialMesh") then |
1787 | - | end |
1787 | + | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1788 | - | c.Name = "Banished" |
1788 | + | |
1789 | - | c.CanCollide = false |
1789 | + | if c:FindFirstChildOfClass("Decal") then |
1790 | - | else |
1790 | + | c:FindFirstChildOfClass("Decal"):remove() |
1791 | - | c:remove() |
1791 | + | |
1792 | - | end |
1792 | + | c.Name = "Banished" |
1793 | - | end |
1793 | + | c.CanCollide = false |
1794 | - | local A = false |
1794 | + | else |
1795 | - | for i = 1, 35 do |
1795 | + | c:remove() |
1796 | - | if A == false then |
1796 | + | |
1797 | - | A = true |
1797 | + | |
1798 | - | elseif A == true then |
1798 | + | local A = false |
1799 | - | A = false |
1799 | + | for i = 1, 35 do |
1800 | - | end |
1800 | + | if A == false then |
1801 | - | for _, c in pairs(CLONE:GetDescendants()) do |
1801 | + | A = true |
1802 | - | if c:IsA("BasePart") then |
1802 | + | elseif A == true then |
1803 | - | c.Anchored = true |
1803 | + | A = false |
1804 | - | c.Material = MATERIALS[MRANDOM(1,2)] |
1804 | + | |
1805 | - | c.Transparency = c.Transparency + 0.8/35 |
1805 | + | for _, c in pairs(CLONE:GetDescendants()) do |
1806 | - | if A == false then |
1806 | + | if c:IsA("BasePart") then |
1807 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
1807 | + | c.Anchored = true |
1808 | - | elseif A == true then |
1808 | + | c.Material = MATERIALS[MRANDOM(1,2)] |
1809 | - | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
1809 | + | c.Transparency = c.Transparency + 0.8/35 |
1810 | - | end |
1810 | + | if A == false then |
1811 | - | end |
1811 | + | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
1812 | - | end |
1812 | + | elseif A == true then |
1813 | - | Swait() |
1813 | + | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) |
1814 | - | end |
1814 | + | end |
1815 | - | CLONE:remove() |
1815 | + | |
1816 | - | end)) |
1816 | + | |
1817 | - | end |
1817 | + | Swait() |
1818 | end | |
1819 | CLONE:remove() | |
1820 | end)) | |
1821 | end | |
1822 | - | local CHILDREN = workspace:GetDescendants() |
1822 | + | |
1823 | - | for index, CHILD in pairs(CHILDREN) do |
1823 | + | |
1824 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1824 | + | |
1825 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1825 | + | |
1826 | - | if HUM then |
1826 | + | local CHILDREN = workspace:GetDescendants() |
1827 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1827 | + | for index, CHILD in pairs(CHILDREN) do |
1828 | - | if TORSO then |
1828 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1829 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1829 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1830 | - | if ISBANISH == true then |
1830 | + | if HUM then |
1831 | - | Banish(CHILD) |
1831 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1832 | - | else |
1832 | + | if TORSO then |
1833 | - | if ISBANISH == "Gravity" then |
1833 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1834 | - | HUM.PlatformStand = true |
1834 | + | if ISBANISH == true then |
1835 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
1835 | + | Banish(CHILD) |
1836 | - | local grav = Instance.new("BodyPosition",TORSO) |
1836 | + | else |
1837 | - | grav.D = 15 |
1837 | + | if ISBANISH == "Gravity" then |
1838 | - | grav.P = 20000 |
1838 | + | HUM.PlatformStand = true |
1839 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1839 | + | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
1840 | - | grav.position = TORSO.Position |
1840 | + | local grav = Instance.new("BodyPosition",TORSO) |
1841 | - | grav.Name = "V3BanishForce"..Player.Name |
1841 | + | grav.D = 15 |
1842 | - | else |
1842 | + | grav.P = 20000 |
1843 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) |
1843 | + | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1844 | - | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) |
1844 | + | grav.position = TORSO.Position |
1845 | - | end |
1845 | + | grav.Name = "V3BanishForce"..Player.Name |
1846 | - | else |
1846 | + | else |
1847 | - | HUM.PlatformStand = false |
1847 | + | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) |
1848 | - | end |
1848 | + | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) |
1849 | - | end |
1849 | + | end |
1850 | - | elseif ISBANISH == "Gravity" then |
1850 | + | else |
1851 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
1851 | + | HUM.PlatformStand = false |
1852 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() |
1852 | + | end |
1853 | - | HUM.PlatformStand = false |
1853 | + | end |
1854 | - | end |
1854 | + | elseif ISBANISH == "Gravity" then |
1855 | - | end |
1855 | + | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
1856 | - | end |
1856 | + | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() |
1857 | - | end |
1857 | + | HUM.PlatformStand = false |
1858 | - | end |
1858 | + | end |
1859 | - | end |
1859 | + | |
1860 | end | |
1861 | end | |
1862 | end | |
1863 | - | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) |
1863 | + | |
1864 | - | local EMITPOS = HITPOS |
1864 | + | |
1865 | - | if HITFLOOR ~= nil then |
1865 | + | |
1866 | - | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then |
1866 | + | |
1867 | - | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) |
1867 | + | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) |
1868 | - | EMITPOS = HITPOS |
1868 | + | local EMITPOS = HITPOS |
1869 | - | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
1869 | + | if HITFLOOR ~= nil then |
1870 | - | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) |
1870 | + | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then |
1871 | - | EMITPOS = HITPOS |
1871 | + | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) |
1872 | - | end |
1872 | + | EMITPOS = HITPOS |
1873 | - | end |
1873 | + | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
1874 | - | if HITFLOOR ~= nil then |
1874 | + | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) |
1875 | - | ApplyAoE(EMITPOS,10) |
1875 | + | EMITPOS = HITPOS |
1876 | - | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
1876 | + | |
1877 | - | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1877 | + | |
1878 | - | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1878 | + | if HITFLOOR ~= nil then |
1879 | - | for i = 1, 5 do |
1879 | + | ApplyAoE(EMITPOS,10) |
1880 | - | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) |
1880 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
1881 | - | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
1881 | + | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1882 | - | end |
1882 | + | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1883 | - | end |
1883 | + | for i = 1, 5 do |
1884 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
1885 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
1886 | end | |
1887 | - | --|| TRANSFORMATIONS |
1887 | + | |
1888 | end | |
1889 | ||
1890 | --//=================================\\ | |
1891 | - | ATTACK = true |
1891 | + | --|| TRANSFORMATIONS |
1892 | - | Rooted = true |
1892 | + | |
1893 | - | if MODE == "GoodCop" then |
1893 | + | |
1894 | - | CreateSound("649634100", Head, 10, 0.5) |
1894 | + | |
1895 | - | for i = 0, 3, 0.1 / Animation_Speed do |
1895 | + | ATTACK = true |
1896 | - | Swait() |
1896 | + | Rooted = true |
1897 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1897 | + | if MODE == "GoodCop" then |
1898 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1898 | + | CreateSound("649634100", Head, 10, 0.5) |
1899 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1899 | + | for i = 0, 3, 0.1 / Animation_Speed do |
1900 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1900 | + | Swait() |
1901 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1901 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1902 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1902 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1903 | - | end |
1903 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1904 | - | CreateSound("289842971", RightArm, 10, 1) |
1904 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1905 | - | for i = 0, 6, 0.1 / Animation_Speed do |
1905 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1906 | - | Swait() |
1906 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1907 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed) |
1907 | + | |
1908 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1908 | + | CreateSound("289842971", RightArm, 10, 1) |
1909 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1909 | + | for i = 0, 6, 0.1 / Animation_Speed do |
1910 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1910 | + | Swait() |
1911 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1911 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed) |
1912 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1912 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1913 | - | end |
1913 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1914 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1915 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1916 | - | for i = 0, 1, 0.1 / Animation_Speed do |
1916 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1917 | - | Swait() |
1917 | + | |
1918 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed) |
1918 | + | |
1919 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1919 | + | |
1920 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1920 | + | for i = 0, 1, 0.1 / Animation_Speed do |
1921 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1921 | + | Swait() |
1922 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1922 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed) |
1923 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1923 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1924 | - | end |
1924 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1925 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
1925 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1926 | - | Swait() |
1926 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1927 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) |
1927 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1928 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) |
1928 | + | |
1929 | - | if MRANDOM(1,7) == 1 then |
1929 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
1930 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) |
1930 | + | Swait() |
1931 | - | end |
1931 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) |
1932 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1932 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) |
1933 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1933 | + | if MRANDOM(1,7) == 1 then |
1934 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
1934 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) |
1935 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) |
1935 | + | end |
1936 | - | end |
1936 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1937 | - | MODE = "BadCop" |
1937 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1938 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1939 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1940 | end | |
1941 | - | elseif MODE == "BadCop" then |
1941 | + | MODE = "BadCop" |
1942 | - | CreateSound(147722227, Torso, 4, 1.3, false) |
1942 | + | |
1943 | - | for i=0, 0.3, 0.1 / Animation_Speed do |
1943 | + | |
1944 | - | Swait() |
1944 | + | |
1945 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1945 | + | elseif MODE == "BadCop" then |
1946 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1946 | + | CreateSound(147722227, Torso, 4, 1.3, false) |
1947 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.4, 0.75, -0.3) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) |
1947 | + | for i=0, 0.3, 0.1 / Animation_Speed do |
1948 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1948 | + | Swait() |
1949 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1949 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1950 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1950 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1951 | - | end |
1951 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.4, 0.75, -0.3) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) |
1952 | - | MODE = "GoodCop" |
1952 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1953 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1954 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1955 | end | |
1956 | MODE = "GoodCop" | |
1957 | Weapon.Parent = Character | |
1958 | - | end |
1958 | + | |
1959 | - | ATTACK = false |
1959 | + | |
1960 | - | Rooted = false |
1960 | + | |
1961 | sick.TimePosition = 22 | |
1962 | end | |
1963 | - | --|| ATTACK FUNCTIONS AND STUFF |
1963 | + | ATTACK = false |
1964 | Rooted = false | |
1965 | end | |
1966 | --//=================================\\ | |
1967 | - | ATTACK = true |
1967 | + | --|| ATTACK FUNCTIONS AND STUFF |
1968 | - | Rooted = true |
1968 | + | |
1969 | - | repeat |
1969 | + | |
1970 | - | Swait() |
1970 | + | |
1971 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1971 | + | ATTACK = true |
1972 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1972 | + | Rooted = true |
1973 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) |
1973 | + | repeat |
1974 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1974 | + | Swait() |
1975 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) |
1975 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1976 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) |
1976 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1977 | - | until sick.TimePosition > 1 |
1977 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) |
1978 | - | repeat |
1978 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1979 | - | Swait() |
1979 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) |
1980 | - | 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) |
1980 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) |
1981 | - | 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) |
1981 | + | until sick.TimePosition > 1 |
1982 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1982 | + | repeat |
1983 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1983 | + | Swait() |
1984 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1984 | + | 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) |
1985 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1985 | + | 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) |
1986 | - | until sick.TimePosition > 1 |
1986 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1987 | - | repeat |
1987 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1988 | - | Swait() |
1988 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1989 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1989 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1990 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1990 | + | until sick.TimePosition > 1 |
1991 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1991 | + | repeat |
1992 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1992 | + | Swait() |
1993 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1993 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1994 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1994 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1995 | - | until sick.TimePosition > 1 |
1995 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1996 | - | tecks2.TextTransparency = 0 |
1996 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1997 | - | for i = 1, 100 do |
1997 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1998 | - | Swait() |
1998 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1999 | until sick.TimePosition > 1 | |
2000 | tecks2.TextTransparency = 0 | |
2001 | - | end |
2001 | + | for i = 1, 100 do |
2002 | - | TRANSFORMED = true |
2002 | + | Swait() |
2003 | - | ATTACK = false |
2003 | + | |
2004 | - | Rooted = false |
2004 | + | |
2005 | end | |
2006 | TRANSFORMED = true | |
2007 | ATTACK = false | |
2008 | - | ATTACK = true |
2008 | + | Rooted = false |
2009 | - | Rooted = false |
2009 | + | |
2010 | - | for i=0, 0.4, 0.05 / Animation_Speed do |
2010 | + | |
2011 | - | Swait() |
2011 | + | |
2012 | - | turnto(Mouse.Hit.p) |
2012 | + | ATTACK = true |
2013 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) |
2013 | + | Rooted = false |
2014 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
2014 | + | for i=0, 0.4, 0.05 / Animation_Speed do |
2015 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2015 | + | Swait() |
2016 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2016 | + | turnto(Mouse.Hit.p) |
2017 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2017 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) |
2018 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2018 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
2019 | - | end |
2019 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2020 | - | repeat |
2020 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2021 | - | for i=0, 0.2, 0.05 / Animation_Speed do |
2021 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2022 | - | Swait() |
2022 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2023 | - | turnto(Mouse.Hit.p) |
2023 | + | |
2024 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) |
2024 | + | repeat |
2025 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.5 / Animation_Speed) |
2025 | + | for i=0, 0.2, 0.05 / Animation_Speed do |
2026 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2026 | + | Swait() |
2027 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.6, -0.4) * ANGLES(RAD(170), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2027 | + | turnto(Mouse.Hit.p) |
2028 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2028 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) |
2029 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2029 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.5 / Animation_Speed) |
2030 | - | end |
2030 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2031 | - | local HIT,POS = CastProperRay(RHole.Position, Mouse.Hit.p, 1000, Character) |
2031 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.6, -0.4) * ANGLES(RAD(170), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2032 | - | SpawnTrail(RHole.Position,POS) |
2032 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2033 | - | if HIT ~= nil then |
2033 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2034 | - | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then |
2034 | + | |
2035 | - | Banish(HIT.Parent) |
2035 | + | local HIT,POS = CastProperRay(RHole.Position, Mouse.Hit.p, 1000, Character) |
2036 | - | end |
2036 | + | SpawnTrail(RHole.Position,POS) |
2037 | - | end |
2037 | + | if HIT ~= nil then |
2038 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = RHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
2038 | + | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then |
2039 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 1463566014, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2039 | + | Banish(HIT.Parent) |
2040 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2040 | + | |
2041 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2041 | + | |
2042 | - | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 |
2042 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = RHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
2043 | - | for i=0, 0.3, 0.05 / Animation_Speed do |
2043 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 1463566014, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2044 | - | Swait() |
2044 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2045 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(60)), 0.5 / Animation_Speed) |
2045 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2046 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.25 / Animation_Speed) |
2046 | + | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 |
2047 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2047 | + | for i=0, 0.3, 0.05 / Animation_Speed do |
2048 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.6, -0.4) * ANGLES(RAD(172), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2048 | + | Swait() |
2049 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2049 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(60)), 0.5 / Animation_Speed) |
2050 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2050 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.25 / Animation_Speed) |
2051 | - | end |
2051 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2052 | - | until KEYHOLD == false |
2052 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.6, -0.4) * ANGLES(RAD(172), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2053 | - | ATTACK = false |
2053 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2054 | - | Rooted = false |
2054 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2055 | end | |
2056 | until KEYHOLD == false | |
2057 | ATTACK = false | |
2058 | - | ATTACK = true |
2058 | + | Rooted = false |
2059 | - | Rooted = false |
2059 | + | |
2060 | - | for i=0, 0.2, 0.05 / Animation_Speed do |
2060 | + | |
2061 | - | Swait() |
2061 | + | |
2062 | - | turnto(Mouse.Hit.p) |
2062 | + | ATTACK = true |
2063 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
2063 | + | Rooted = false |
2064 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
2064 | + | for i=0, 0.2, 0.05 / Animation_Speed do |
2065 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2065 | + | Swait() |
2066 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2066 | + | turnto(Mouse.Hit.p) |
2067 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2067 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
2068 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2068 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
2069 | - | end |
2069 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2070 | - | repeat |
2070 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2071 | - | for i=0, 0.2, 0.05 / Animation_Speed do |
2071 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2072 | - | Swait() |
2072 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2073 | - | turnto(Mouse.Hit.p) |
2073 | + | |
2074 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
2074 | + | repeat |
2075 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
2075 | + | for i=0, 0.2, 0.05 / Animation_Speed do |
2076 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2076 | + | Swait() |
2077 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2077 | + | turnto(Mouse.Hit.p) |
2078 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2078 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
2079 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2079 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
2080 | - | end |
2080 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2081 | - | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) |
2081 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2082 | - | SpawnTrail(Hole.Position,POS) |
2082 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2083 | - | if HIT ~= nil then |
2083 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2084 | - | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then |
2084 | + | |
2085 | - | Kill(HIT.Parent) |
2085 | + | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) |
2086 | - | end |
2086 | + | SpawnTrail(Hole.Position,POS) |
2087 | - | end |
2087 | + | if HIT ~= nil then |
2088 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
2088 | + | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then |
2089 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2089 | + | Kill(HIT.Parent) |
2090 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2090 | + | |
2091 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2091 | + | |
2092 | - | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 |
2092 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
2093 | - | for i=0, 0.2, 0.05 / Animation_Speed do |
2093 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2094 | - | Swait() |
2094 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2095 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
2095 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2096 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) |
2096 | + | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 |
2097 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2097 | + | for i=0, 0.2, 0.05 / Animation_Speed do |
2098 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2098 | + | Swait() |
2099 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2099 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
2100 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2100 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) |
2101 | - | end |
2101 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
2102 | - | until KEYHOLD == false |
2102 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
2103 | - | ATTACK = false |
2103 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2104 | - | Rooted = false |
2104 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
2105 | end | |
2106 | until KEYHOLD == false | |
2107 | ATTACK = false | |
2108 | - | ATTACK = true |
2108 | + | Rooted = false |
2109 | - | Rooted = true |
2109 | + | |
2110 | - | Weapon.Parent = nil |
2110 | + | |
2111 | - | sick.Volume = 0 |
2111 | + | |
2112 | - | CreateSound("1238240145", Effects, 10, 0.9) |
2112 | + | ATTACK = true |
2113 | - | CreateSound(363808674, Effects, 10, 1, false) |
2113 | + | Rooted = true |
2114 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
2114 | + | Weapon.Parent = nil |
2115 | - | Swait() |
2115 | + | sick.Volume = 0 |
2116 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2116 | + | CreateSound("1238240145", Effects, 10, 0.9) |
2117 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) |
2117 | + | CreateSound(363808674, Effects, 10, 1, false) |
2118 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2118 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
2119 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2119 | + | Swait() |
2120 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2120 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2121 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2121 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) |
2122 | - | end |
2122 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2123 | - | CreateSound(363808674, Effects, 10, 1, false) |
2123 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2124 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
2124 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2125 | - | Swait() |
2125 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2126 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2126 | + | |
2127 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) |
2127 | + | CreateSound(363808674, Effects, 10, 1, false) |
2128 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2128 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
2129 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2129 | + | Swait() |
2130 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2130 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2131 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2131 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) |
2132 | - | end |
2132 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2133 | - | CreateSound(363808674, Effects, 10, 1, false) |
2133 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2134 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
2134 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2135 | - | Swait() |
2135 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2136 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2136 | + | |
2137 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) |
2137 | + | CreateSound(363808674, Effects, 10, 1, false) |
2138 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2138 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
2139 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2139 | + | Swait() |
2140 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2140 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2141 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2141 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) |
2142 | - | end |
2142 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2143 | - | CreateSound(363808674, Effects, 10, 1, false) |
2143 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2144 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
2144 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2145 | - | Swait() |
2145 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2146 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2146 | + | |
2147 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) |
2147 | + | CreateSound(363808674, Effects, 10, 1, false) |
2148 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2148 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
2149 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2149 | + | Swait() |
2150 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2150 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2151 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2151 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) |
2152 | - | end |
2152 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2153 | - | CreateSound(363808674, Effects, 10, 1, false) |
2153 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2154 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
2154 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2155 | - | Swait() |
2155 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2156 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2156 | + | |
2157 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) |
2157 | + | CreateSound(363808674, Effects, 10, 1, false) |
2158 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2158 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
2159 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2159 | + | Swait() |
2160 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2160 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2161 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2161 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) |
2162 | - | end |
2162 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2163 | - | CreateSound(363808674, Effects, 10, 1, false) |
2163 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2164 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
2164 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2165 | - | Swait() |
2165 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2166 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2166 | + | |
2167 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) |
2167 | + | CreateSound(363808674, Effects, 10, 1, false) |
2168 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2168 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
2169 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2169 | + | Swait() |
2170 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2170 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2171 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2171 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) |
2172 | - | end |
2172 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2173 | - | Weapon.Parent = Character |
2173 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2174 | - | sick.Volume = 2 |
2174 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2175 | - | ATTACK = false |
2175 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2176 | - | Rooted = false |
2176 | + | |
2177 | Weapon.Parent = Character | |
2178 | sick.Volume = 2 | |
2179 | ATTACK = false | |
2180 | - | ATTACK = true |
2180 | + | Rooted = false |
2181 | - | Rooted = true |
2181 | + | |
2182 | - | local L = CreateSound(2162230624,Head,8,1.1,false) |
2182 | + | |
2183 | - | L.EmitterSize = 25 |
2183 | + | |
2184 | - | for i = 1, 20 do |
2184 | + | ATTACK = true |
2185 | - | Swait() |
2185 | + | Rooted = true |
2186 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2186 | + | local L = CreateSound(2162230624,Head,8,1.1,false) |
2187 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2187 | + | L.EmitterSize = 25 |
2188 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2188 | + | for i = 1, 20 do |
2189 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2189 | + | Swait() |
2190 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2190 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2191 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2191 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2192 | - | end |
2192 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2193 | - | for i = 1, 40 do |
2193 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2194 | - | Swait() |
2194 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2195 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2195 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2196 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2196 | + | |
2197 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2197 | + | for i = 1, 40 do |
2198 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2198 | + | Swait() |
2199 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2199 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2200 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2200 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2201 | - | end |
2201 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2202 | - | for i = 1, 60 do |
2202 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2203 | - | Swait() |
2203 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2204 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2204 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2205 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2205 | + | |
2206 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2206 | + | for i = 1, 60 do |
2207 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2207 | + | Swait() |
2208 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2208 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2209 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2209 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2210 | - | end |
2210 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2211 | - | for i = 1, 60 do |
2211 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2212 | - | Swait() |
2212 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2213 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2213 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2214 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2214 | + | |
2215 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2215 | + | for i = 1, 60 do |
2216 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2216 | + | Swait() |
2217 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2217 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2218 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2218 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2219 | - | end |
2219 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2220 | - | for i = 1, 90 do |
2220 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2221 | - | Swait() |
2221 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2222 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2222 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2223 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2223 | + | |
2224 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2224 | + | for i = 1, 90 do |
2225 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2225 | + | Swait() |
2226 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2226 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2227 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2227 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2228 | - | end |
2228 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2229 | - | for i = 1, 72 do |
2229 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2230 | - | Swait() |
2230 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2231 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2231 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2232 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2232 | + | |
2233 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2233 | + | for i = 1, 72 do |
2234 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2234 | + | Swait() |
2235 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2235 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2236 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2236 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2237 | - | end |
2237 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2238 | - | for i = 1, 96 do |
2238 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2239 | - | Swait() |
2239 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2240 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2240 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2241 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2241 | + | |
2242 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2242 | + | for i = 1, 96 do |
2243 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2243 | + | Swait() |
2244 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2244 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) |
2245 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2245 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2246 | - | end |
2246 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2247 | - | for i = 1, 98 do |
2247 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2248 | - | Swait() |
2248 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2249 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2249 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2250 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2250 | + | |
2251 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2251 | + | for i = 1, 98 do |
2252 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2252 | + | Swait() |
2253 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2253 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) |
2254 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2254 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) |
2255 | - | end |
2255 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2256 | - | ATTACK = false |
2256 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2257 | - | Rooted = false |
2257 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) |
2258 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2259 | end | |
2260 | - | --|| ASSIGN THINGS TO KEYS |
2260 | + | ATTACK = false |
2261 | Rooted = false | |
2262 | end | |
2263 | --//=================================\\ | |
2264 | - | if ATTACK == false then |
2264 | + | --|| ASSIGN THINGS TO KEYS |
2265 | - | |
2265 | + | |
2266 | - | end |
2266 | + | |
2267 | function MouseDown(Mouse) | |
2268 | if ATTACK == false then | |
2269 | ||
2270 | end | |
2271 | end | |
2272 | ||
2273 | function MouseUp(Mouse) | |
2274 | - | KEYHOLD = true |
2274 | + | |
2275 | - | if TRANSFORMED == true and Rooted == false then |
2275 | + | |
2276 | - | if Key == "f" and ATTACK == false then |
2276 | + | |
2277 | - | Switch() |
2277 | + | |
2278 | - | end |
2278 | + | KEYHOLD = true |
2279 | if TRANSFORMED == true and Rooted == false then | |
2280 | if Key == "f" and ATTACK == false then | |
2281 | - | if Key == "z" and ATTACK == false then |
2281 | + | Switch() |
2282 | - | if MODE == "GoodCop" then |
2282 | + | |
2283 | - | Shot2() |
2283 | + | |
2284 | - | elseif MODE == "BadCop" then |
2284 | + | |
2285 | - | Shot1() |
2285 | + | if Key == "z" and ATTACK == false then |
2286 | - | end |
2286 | + | if MODE == "GoodCop" then |
2287 | - | end |
2287 | + | Shot2() |
2288 | elseif MODE == "BadCop" then | |
2289 | - | if Key == "t" and ATTACK == false then |
2289 | + | Shot1() |
2290 | - | if MODE == "GoodCop" then |
2290 | + | |
2291 | - | ScrewThis() |
2291 | + | |
2292 | - | elseif MODE == "BadCop" then |
2292 | + | if Key == "t" and ATTACK == false then |
2293 | - | Taunt() |
2293 | + | if MODE == "GoodCop" then |
2294 | - | end |
2294 | + | ScrewThis() |
2295 | - | end |
2295 | + | elseif MODE == "BadCop" then |
2296 | - | |
2296 | + | Taunt() |
2297 | - | end |
2297 | + | |
2298 | end | |
2299 | - | if Key == "9" and ATTACK == false then |
2299 | + | |
2300 | - | CreateSound("135017578", Effects, 5, 1) |
2300 | + | |
2301 | - | end |
2301 | + | |
2302 | if Key == "9" and ATTACK == false then | |
2303 | CreateSound("135017578", Effects, 5, 1) | |
2304 | end | |
2305 | - | KEYHOLD = false |
2305 | + | |
2306 | ||
2307 | function KeyUp(Key) | |
2308 | - | Mouse.Button1Down:connect(function(NEWKEY) |
2308 | + | KEYHOLD = false |
2309 | - | MouseDown(NEWKEY) |
2309 | + | |
2310 | - | end) |
2310 | + | |
2311 | - | Mouse.Button1Up:connect(function(NEWKEY) |
2311 | + | Mouse.Button1Down:connect(function(NEWKEY) |
2312 | - | MouseUp(NEWKEY) |
2312 | + | MouseDown(NEWKEY) |
2313 | - | end) |
2313 | + | |
2314 | - | Mouse.KeyDown:connect(function(NEWKEY) |
2314 | + | Mouse.Button1Up:connect(function(NEWKEY) |
2315 | - | KeyDown(NEWKEY) |
2315 | + | MouseUp(NEWKEY) |
2316 | - | end) |
2316 | + | |
2317 | - | Mouse.KeyUp:connect(function(NEWKEY) |
2317 | + | Mouse.KeyDown:connect(function(NEWKEY) |
2318 | - | KeyUp(NEWKEY) |
2318 | + | KeyDown(NEWKEY) |
2319 | - | end) |
2319 | + | |
2320 | Mouse.KeyUp:connect(function(NEWKEY) | |
2321 | KeyUp(NEWKEY) | |
2322 | end) | |
2323 | ||
2324 | --//=================================\\ | |
2325 | --\\=================================// | |
2326 | - | if UNANCHOR == true then |
2326 | + | |
2327 | - | RootPart.Anchored = false |
2327 | + | |
2328 | - | end |
2328 | + | |
2329 | - | for _, c in pairs(Weapon:GetChildren()) do |
2329 | + | if UNANCHOR == true then |
2330 | - | if c.ClassName == "Part" then |
2330 | + | RootPart.Anchored = false |
2331 | - | c.Anchored = false |
2331 | + | |
2332 | - | end |
2332 | + | for _, c in pairs(Weapon:GetChildren()) do |
2333 | - | end |
2333 | + | if c.ClassName == "Part" then |
2334 | c.Anchored = false | |
2335 | end | |
2336 | end | |
2337 | end | |
2338 | - | --|| WRAP THE WHOLE SCRIPT UP |
2338 | + | |
2339 | ||
2340 | --//=================================\\ | |
2341 | --|| WRAP THE WHOLE SCRIPT UP | |
2342 | - | if Jump == "Jump" and (Disable_Jump == true) then |
2342 | + | |
2343 | - | Humanoid.Jump = false |
2343 | + | |
2344 | - | end |
2344 | + | |
2345 | if Jump == "Jump" and (Disable_Jump == true) then | |
2346 | Humanoid.Jump = false | |
2347 | end | |
2348 | - | Swait() |
2348 | + | |
2349 | - | script.Parent = WEAPONGUI |
2349 | + | |
2350 | - | ANIMATE.Parent = nil |
2350 | + | |
2351 | - | for _,v in next, Humanoid:GetPlayingAnimationTracks() do |
2351 | + | Swait() |
2352 | - | v:Stop(); |
2352 | + | script.Parent = WEAPONGUI |
2353 | - | end |
2353 | + | ANIMATE.Parent = nil |
2354 | - | SINE = SINE + CHANGE |
2354 | + | for _,v in next, Humanoid:GetPlayingAnimationTracks() do |
2355 | - | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
2355 | + | v:Stop(); |
2356 | - | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
2356 | + | |
2357 | - | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
2357 | + | SINE = SINE + CHANGE |
2358 | - | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) |
2358 | + | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
2359 | - | if ANIM == "Walk" and TORSOVELOCITY > 1 then |
2359 | + | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
2360 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2360 | + | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
2361 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2361 | + | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) |
2362 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) |
2362 | + | if ANIM == "Walk" and TORSOVELOCITY > 1 then |
2363 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) |
2363 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2364 | - | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then |
2364 | + | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2365 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2365 | + | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) |
2366 | - | 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) |
2366 | + | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) |
2367 | - | 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.7 / Animation_Speed) |
2367 | + | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then |
2368 | - | 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.7 / Animation_Speed) |
2368 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2369 | - | end |
2369 | + | 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) |
2370 | - | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then |
2370 | + | 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.7 / Animation_Speed) |
2371 | - | ANIM = "Jump" |
2371 | + | 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.7 / Animation_Speed) |
2372 | - | if ATTACK == false then |
2372 | + | |
2373 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2373 | + | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then |
2374 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2374 | + | ANIM = "Jump" |
2375 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
2375 | + | if ATTACK == false then |
2376 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
2376 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2377 | - | 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) |
2377 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2378 | - | 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) |
2378 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
2379 | - | end |
2379 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
2380 | - | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
2380 | + | 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) |
2381 | - | ANIM = "Fall" |
2381 | + | 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) |
2382 | - | if ATTACK == false then |
2382 | + | |
2383 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2383 | + | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
2384 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2384 | + | ANIM = "Fall" |
2385 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
2385 | + | if ATTACK == false then |
2386 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
2386 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2387 | - | 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) |
2387 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2388 | - | 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) |
2388 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
2389 | - | end |
2389 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
2390 | - | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
2390 | + | 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) |
2391 | - | ANIM = "Idle" |
2391 | + | 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) |
2392 | - | if ATTACK == false then |
2392 | + | |
2393 | - | if MODE == "GoodCop" then |
2393 | + | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
2394 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.05 * COS(SINE / 12), 0, 0 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2394 | + | ANIM = "Idle" |
2395 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) |
2395 | + | if ATTACK == false then |
2396 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) |
2396 | + | if MODE == "GoodCop" then |
2397 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2397 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.05 * COS(SINE / 12), 0, 0 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2398 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2398 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) |
2399 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2399 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) |
2400 | - | elseif MODE == "BadCop" then |
2400 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2401 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) |
2401 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2402 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) |
2402 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2403 | - | if MRANDOM(1,7) == 1 then |
2403 | + | elseif MODE == "BadCop" then |
2404 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) |
2404 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) |
2405 | - | end |
2405 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) |
2406 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2406 | + | if MRANDOM(1,7) == 1 then |
2407 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
2407 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) |
2408 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
2408 | + | end |
2409 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) |
2409 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2410 | - | end |
2410 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
2411 | - | end |
2411 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
2412 | - | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
2412 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) |
2413 | - | ANIM = "Walk" |
2413 | + | |
2414 | - | if ATTACK == false then |
2414 | + | |
2415 | - | if MODE == "GoodCop" then |
2415 | + | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
2416 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2416 | + | ANIM = "Walk" |
2417 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2417 | + | if ATTACK == false then |
2418 | - | elseif MODE == "BadCop" then |
2418 | + | if MODE == "GoodCop" then |
2419 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2419 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2420 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2420 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2421 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, -0.15) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2421 | + | elseif MODE == "BadCop" then |
2422 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) |
2422 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2423 | - | 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) |
2423 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2424 | - | 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) |
2424 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, -0.15) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2425 | - | end |
2425 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) |
2426 | - | end |
2426 | + | 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) |
2427 | - | end |
2427 | + | 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) |
2428 | - | Humanoid.DisplayDistanceType = "None" |
2428 | + | |
2429 | - | unanchor() |
2429 | + | |
2430 | - | tecks2.TextColor3 = BrickColor.Random().Color |
2430 | + | |
2431 | - | tecks2.TextStrokeColor3 = BrickColor.Random().Color |
2431 | + | Humanoid.DisplayDistanceType = "None" |
2432 | - | Humanoid.MaxHealth = "inf" |
2432 | + | unanchor() |
2433 | - | Humanoid.Health = "inf" |
2433 | + | tecks2.TextColor3 = BrickColor.Random().Color |
2434 | - | if Rooted == false then |
2434 | + | tecks2.TextStrokeColor3 = BrickColor.Random().Color |
2435 | - | Disable_Jump = false |
2435 | + | Humanoid.MaxHealth = "inf" |
2436 | - | Humanoid.WalkSpeed = Speed |
2436 | + | Humanoid.Health = "inf" |
2437 | - | elseif Rooted == true then |
2437 | + | if Rooted == false then |
2438 | - | Disable_Jump = true |
2438 | + | Disable_Jump = false |
2439 | - | Humanoid.WalkSpeed = 0 |
2439 | + | Humanoid.WalkSpeed = Speed |
2440 | - | end |
2440 | + | elseif Rooted == true then |
2441 | - | Humanoid.PlatformStand = false |
2441 | + | Disable_Jump = true |
2442 | - | if INTRO == false and INSTANT == false then |
2442 | + | Humanoid.WalkSpeed = 0 |
2443 | - | INTRO = true |
2443 | + | |
2444 | - | coroutine.resume(coroutine.create(function() |
2444 | + | Humanoid.PlatformStand = false |
2445 | - | sick:Play() |
2445 | + | if INTRO == false and INSTANT == false then |
2446 | - | Intro() |
2446 | + | INTRO = true |
2447 | - | end)) |
2447 | + | coroutine.resume(coroutine.create(function() |
2448 | - | end |
2448 | + | sick:Play() |
2449 | - | if INSTANT == true then |
2449 | + | Intro() |
2450 | - | if TRANSFORMED == false then |
2450 | + | end)) |
2451 | - | sick.TimePosition = 60 |
2451 | + | |
2452 | - | sick:Play() |
2452 | + | if INSTANT == true then |
2453 | - | end |
2453 | + | if TRANSFORMED == false then |
2454 | - | TRANSFORMED = true |
2454 | + | sick.TimePosition = 60 |
2455 | - | end |
2455 | + | sick:Play() |
2456 | - | script.Parent = PlayerGui |
2456 | + | |
2457 | - | Character.Parent = workspace |
2457 | + | TRANSFORMED = true |
2458 | - | Humanoid.Parent = Character |
2458 | + | |
2459 | script.Parent = PlayerGui | |
2460 | Character.Parent = workspace | |
2461 | Humanoid.Parent = Character | |
2462 | end | |
2463 | --//=================================\\ | |
2464 | --\\=================================// | |
2465 | ||
2466 | ||
2467 | ||
2468 | - | --|| END OF SCRIPT |
2468 | + | |
2469 | ||
2470 | --//====================================================\\-- | |
2471 | --|| END OF SCRIPT | |
2472 | --\\====================================================//-- |