SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
6 | local Player = owner | |
7 | - | Player = game:GetService("Players").LocalPlayer |
7 | + | local Mouse,mouse,UserInputService,ContextActionService |
8 | do | |
9 | ||
10 | local CAS = {Actions={}} | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | - | Mouse = Player:GetMouse() |
13 | + | Event.Parent = Player.Character |
14 | local fakeEvent = function() | |
15 | local t = {_fakeEvent=true} | |
16 | t.Connect = function(self,f)self.Function=f end | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
22 | function CAS:BindAction(name,fun,touch,...) | |
23 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
24 | end | |
25 | function CAS:UnbindAction(name) | |
26 | CAS.Actions[name] = nil | |
27 | end | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | Event.OnServerEvent:Connect(function(plr,io) | |
37 | if plr~=Player then return end | |
38 | if io.isMouse then | |
39 | m.Target = io.Target | |
40 | m.Hit = io.Hit | |
41 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
42 | if io.UserInputState == Enum.UserInputState.Begin then | |
43 | m:TrigEvent("Button1Down") | |
44 | else | |
45 | m:TrigEvent("Button1Up") | |
46 | end | |
47 | else | |
48 | for n,t in pairs(CAS.Actions) do | |
49 | for _,k in pairs(t.Keys) do | |
50 | if k==io.KeyCode then | |
51 | t.Function(t.Name,io.UserInputState,io) | |
52 | end | |
53 | end | |
54 | end | |
55 | if io.UserInputState == Enum.UserInputState.Begin then | |
56 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent("InputBegan",io,false) | |
58 | else | |
59 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
60 | UIS:TrigEvent("InputEnded",io,false) | |
61 | end | |
62 | end | |
63 | end) | |
64 | NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | ||
67 | local Char = Player.Character | |
68 | local Event = Char:WaitForChild("UserInput_Event") | |
69 | ||
70 | local UIS = game:GetService("UserInputService") | |
71 | ||
72 | local input = function(io,a) | |
73 | if a then return end | |
74 | local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState} | |
75 | Event:FireServer(io) | |
76 | end | |
77 | UIS.InputBegan:Connect(input) | |
78 | UIS.InputEnded:Connect(input) | |
79 | local Changed = false | |
80 | local Mouse = Player:GetMouse() | |
81 | local h,t = Mouse.Hit,Mouse.Target | |
82 | while wait(1/30) do | |
83 | if h~=Mouse.Hit or t~=Mouse.Target then | |
84 | - | local AMMO = 16 |
84 | + | Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit}) |
85 | h,t=Mouse.Hit,Mouse.Target | |
86 | end | |
87 | end | |
88 | ]==],Player.Character) | |
89 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
90 | end | |
91 | script.Parent = game:GetService("ServerScriptService")--Easy Anti Steal | |
92 | ||
93 | wait(0.2) | |
94 | ||
95 | Player = owner | |
96 | PlayerGui = Player.PlayerGui | |
97 | Cam = workspace.CurrentCamera | |
98 | Backpack = Player.Backpack | |
99 | Character = Player.Character | |
100 | Humanoid = Character.Humanoid | |
101 | -----Mouse = Player:GetMouse() | |
102 | RootPart = Character["HumanoidRootPart"] | |
103 | Torso = Character["Torso"] | |
104 | Head = Character["Head"] | |
105 | RightArm = Character["Right Arm"] | |
106 | LeftArm = Character["Left Arm"] | |
107 | RightLeg = Character["Right Leg"] | |
108 | LeftLeg = Character["Left Leg"] | |
109 | RootJoint = RootPart["RootJoint"] | |
110 | Neck = Torso["Neck"] | |
111 | RightShoulder = Torso["Right Shoulder"] | |
112 | LeftShoulder = Torso["Left Shoulder"] | |
113 | RightHip = Torso["Right Hip"] | |
114 | LeftHip = Torso["Left Hip"] | |
115 | IT = Instance.new | |
116 | CF = CFrame.new | |
117 | VT = Vector3.new | |
118 | RAD = math.rad | |
119 | C3 = Color3.new | |
120 | UD2 = UDim2.new | |
121 | BRICKC = BrickColor.new | |
122 | ANGLES = CFrame.Angles | |
123 | EULER = CFrame.fromEulerAnglesXYZ | |
124 | COS = math.cos | |
125 | ACOS = math.acos | |
126 | SIN = math.sin | |
127 | ASIN = math.asin | |
128 | ABS = math.abs | |
129 | MRANDOM = math.random | |
130 | FLOOR = math.floor | |
131 | ||
132 | --//=================================\\ | |
133 | --|| USEFUL VALUES | |
134 | --\\=================================// | |
135 | ||
136 | Animation_Speed = 3 | |
137 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
138 | local Speed = 45 | |
139 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
140 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
141 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
142 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
143 | local DAMAGEMULTIPLIER = 1 | |
144 | local ANIM = "Idle" | |
145 | local ATTACK = false | |
146 | local EQUIPPED = false | |
147 | local HOLD = false | |
148 | local COMBO = 1 | |
149 | local Rooted = false | |
150 | local SINE = 0 | |
151 | local KEYHOLD = false | |
152 | local CHANGE = 2 / Animation_Speed | |
153 | local WALKINGANIM = false | |
154 | local VALUE1 = false | |
155 | local VALUE2 = false | |
156 | local ROBLOXIDLEANIMATION = IT("Animation") | |
157 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
158 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
159 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
160 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
161 | WEAPONGUI.Name = "Weapon GUI" | |
162 | local Weapon = IT("Model") | |
163 | Weapon.Name = "Adds" | |
164 | local Effects = IT("Folder", Weapon) | |
165 | Effects.Name = "Effects" | |
166 | local ANIMATOR = Humanoid.Animator | |
167 | local ANIMATE = Character.Animate | |
168 | local UNANCHOR = true | |
169 | local HITFLOOR = nil | |
170 | local HITPOS = nil | |
171 | local FireSound = "904051531" | |
172 | local AMMO = math.huge | |
173 | local SONG = nil | |
174 | local READYTODOUBLE = false | |
175 | local DOUBLEJUMP = false | |
176 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
177 | ||
178 | --//=================================\\ | |
179 | --\\=================================// | |
180 | ||
181 | ||
182 | --//=================================\\ | |
183 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
184 | --\\=================================// | |
185 | ||
186 | ArtificialHB = Instance.new("BindableEvent", script) | |
187 | ArtificialHB.Name = "ArtificialHB" | |
188 | ||
189 | script:WaitForChild("ArtificialHB") | |
190 | ||
191 | frame = Frame_Speed | |
192 | tf = 0 | |
193 | allowframeloss = false | |
194 | tossremainder = false | |
195 | lastframe = tick() | |
196 | script.ArtificialHB:Fire() | |
197 | ||
198 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
199 | tf = tf + s | |
200 | if tf >= frame then | |
201 | if allowframeloss then | |
202 | script.ArtificialHB:Fire() | |
203 | lastframe = tick() | |
204 | else | |
205 | for i = 1, math.floor(tf / frame) do | |
206 | script.ArtificialHB:Fire() | |
207 | end | |
208 | lastframe = tick() | |
209 | end | |
210 | if tossremainder then | |
211 | tf = 0 | |
212 | else | |
213 | tf = tf - frame * math.floor(tf / frame) | |
214 | end | |
215 | end | |
216 | end) | |
217 | ||
218 | --//=================================\\ | |
219 | --\\=================================// | |
220 | ||
221 | --//=================================\\ | |
222 | --|| SOME FUNCTIONS | |
223 | --\\=================================// | |
224 | ||
225 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
226 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
227 | end | |
228 | ||
229 | function PositiveAngle(NUMBER) | |
230 | if NUMBER >= 0 then | |
231 | NUMBER = 0 | |
232 | end | |
233 | return NUMBER | |
234 | end | |
235 | ||
236 | function NegativeAngle(NUMBER) | |
237 | if NUMBER <= 0 then | |
238 | NUMBER = 0 | |
239 | end | |
240 | return NUMBER | |
241 | end | |
242 | ||
243 | function Swait(NUMBER) | |
244 | if NUMBER == 0 or NUMBER == nil then | |
245 | ArtificialHB.Event:wait() | |
246 | else | |
247 | for i = 1, NUMBER do | |
248 | ArtificialHB.Event:wait() | |
249 | end | |
250 | end | |
251 | end | |
252 | ||
253 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
254 | local NEWMESH = IT(MESH) | |
255 | if MESH == "SpecialMesh" then | |
256 | NEWMESH.MeshType = MESHTYPE | |
257 | if MESHID ~= "nil" and MESHID ~= "" then | |
258 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
259 | end | |
260 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
261 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
262 | end | |
263 | end | |
264 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
265 | NEWMESH.Scale = SCALE | |
266 | NEWMESH.Parent = PARENT | |
267 | return NEWMESH | |
268 | end | |
269 | ||
270 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
271 | local NEWPART = IT("Part") | |
272 | NEWPART.formFactor = FORMFACTOR | |
273 | NEWPART.Reflectance = REFLECTANCE | |
274 | NEWPART.Transparency = TRANSPARENCY | |
275 | NEWPART.CanCollide = false | |
276 | NEWPART.Locked = true | |
277 | NEWPART.Anchored = true | |
278 | if ANCHOR == false then | |
279 | NEWPART.Anchored = false | |
280 | end | |
281 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
282 | NEWPART.Name = NAME | |
283 | NEWPART.Size = SIZE | |
284 | NEWPART.Position = Torso.Position | |
285 | NEWPART.Material = MATERIAL | |
286 | NEWPART:BreakJoints() | |
287 | NEWPART.Parent = PARENT | |
288 | return NEWPART | |
289 | end | |
290 | ||
291 | local function weldBetween(a, b) | |
292 | local weldd = Instance.new("ManualWeld") | |
293 | weldd.Part0 = a | |
294 | weldd.Part1 = b | |
295 | weldd.C0 = CFrame.new() | |
296 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
297 | weldd.Parent = a | |
298 | return weldd | |
299 | end | |
300 | ||
301 | ||
302 | function QuaternionFromCFrame(cf) | |
303 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
304 | local trace = m00 + m11 + m22 | |
305 | if trace > 0 then | |
306 | local s = math.sqrt(1 + trace) | |
307 | local recip = 0.5 / s | |
308 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
309 | else | |
310 | local i = 0 | |
311 | if m11 > m00 then | |
312 | i = 1 | |
313 | end | |
314 | if m22 > (i == 0 and m00 or m11) then | |
315 | i = 2 | |
316 | end | |
317 | if i == 0 then | |
318 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
319 | local recip = 0.5 / s | |
320 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
321 | elseif i == 1 then | |
322 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
323 | local recip = 0.5 / s | |
324 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
325 | elseif i == 2 then | |
326 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
327 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
328 | end | |
329 | end | |
330 | end | |
331 | ||
332 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
333 | local xs, ys, zs = x + x, y + y, z + z | |
334 | local wx, wy, wz = w * xs, w * ys, w * zs | |
335 | local xx = x * xs | |
336 | local xy = x * ys | |
337 | local xz = x * zs | |
338 | local yy = y * ys | |
339 | local yz = y * zs | |
340 | local zz = z * zs | |
341 | 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)) | |
342 | end | |
343 | ||
344 | function QuaternionSlerp(a, b, t) | |
345 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
346 | local startInterp, finishInterp; | |
347 | if cosTheta >= 0.0001 then | |
348 | if (1 - cosTheta) > 0.0001 then | |
349 | local theta = ACOS(cosTheta) | |
350 | local invSinTheta = 1 / SIN(theta) | |
351 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
352 | finishInterp = SIN(t * theta) * invSinTheta | |
353 | else | |
354 | startInterp = 1 - t | |
355 | finishInterp = t | |
356 | end | |
357 | else | |
358 | if (1 + cosTheta) > 0.0001 then | |
359 | local theta = ACOS(-cosTheta) | |
360 | local invSinTheta = 1 / SIN(theta) | |
361 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
362 | finishInterp = SIN(t * theta) * invSinTheta | |
363 | else | |
364 | startInterp = t - 1 | |
365 | finishInterp = t | |
366 | end | |
367 | end | |
368 | 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 | |
369 | end | |
370 | ||
371 | function Clerp(a, b, t) | |
372 | local qa = {QuaternionFromCFrame(a)} | |
373 | local qb = {QuaternionFromCFrame(b)} | |
374 | local ax, ay, az = a.x, a.y, a.z | |
375 | local bx, by, bz = b.x, b.y, b.z | |
376 | local _t = 1 - t | |
377 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
378 | end | |
379 | ||
380 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
381 | local frame = IT("Frame") | |
382 | frame.BackgroundTransparency = TRANSPARENCY | |
383 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
384 | frame.Position = POSITION | |
385 | frame.Size = SIZE | |
386 | frame.BackgroundColor3 = COLOR | |
387 | frame.BorderColor3 = BORDERCOLOR | |
388 | frame.Name = NAME | |
389 | frame.Parent = PARENT | |
390 | return frame | |
391 | end | |
392 | ||
393 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
394 | local label = IT("TextLabel") | |
395 | label.BackgroundTransparency = 1 | |
396 | label.Size = UD2(1, 0, 1, 0) | |
397 | label.Position = UD2(0, 0, 0, 0) | |
398 | label.TextColor3 = TEXTCOLOR | |
399 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
400 | label.TextTransparency = TRANSPARENCY | |
401 | label.FontSize = TEXTFONTSIZE | |
402 | label.Font = TEXTFONT | |
403 | label.BorderSizePixel = BORDERSIZEPIXEL | |
404 | label.TextScaled = false | |
405 | label.Text = TEXT | |
406 | label.Name = NAME | |
407 | label.Parent = PARENT | |
408 | return label | |
409 | end | |
410 | ||
411 | function NoOutlines(PART) | |
412 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
413 | end | |
414 | ||
415 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
416 | local NEWWELD = IT(TYPE) | |
417 | NEWWELD.Part0 = PART0 | |
418 | NEWWELD.Part1 = PART1 | |
419 | NEWWELD.C0 = C0 | |
420 | NEWWELD.C1 = C1 | |
421 | NEWWELD.Parent = PARENT | |
422 | return NEWWELD | |
423 | end | |
424 | ||
425 | local S = IT("Sound") | |
426 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
427 | local NEWSOUND = nil | |
428 | coroutine.resume(coroutine.create(function() | |
429 | NEWSOUND = S:Clone() | |
430 | NEWSOUND.Parent = PARENT | |
431 | NEWSOUND.Volume = VOLUME | |
432 | NEWSOUND.Pitch = PITCH | |
433 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
434 | NEWSOUND:play() | |
435 | if DOESLOOP == true then | |
436 | NEWSOUND.Looped = true | |
437 | else | |
438 | repeat Swait() until NEWSOUND.Playing == false | |
439 | NEWSOUND:remove() | |
440 | end | |
441 | end)) | |
442 | return NEWSOUND | |
443 | end | |
444 | ||
445 | function CFrameFromTopBack(at, top, back) | |
446 | local right = top:Cross(back) | |
447 | 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) | |
448 | end | |
449 | ||
450 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
451 | function WACKYEFFECT(Table) | |
452 | local TYPE = (Table.EffectType or "Sphere") | |
453 | local SIZE = (Table.Size or VT(1,1,1)) | |
454 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
455 | local TRANSPARENCY = (Table.Transparency or 0) | |
456 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
457 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
458 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
459 | local ROTATION1 = (Table.RotationX or 0) | |
460 | local ROTATION2 = (Table.RotationY or 0) | |
461 | local ROTATION3 = (Table.RotationZ or 0) | |
462 | local MATERIAL = (Table.Material or "Neon") | |
463 | local COLOR = (Table.Color or C3(1,1,1)) | |
464 | local TIME = (Table.Time or 45) | |
465 | local SOUNDID = (Table.SoundID or nil) | |
466 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
467 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
468 | coroutine.resume(coroutine.create(function() | |
469 | local PLAYSSOUND = false | |
470 | local SOUND = nil | |
471 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
472 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
473 | PLAYSSOUND = true | |
474 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
475 | end | |
476 | EFFECT.Color = COLOR | |
477 | local MSH = nil | |
478 | if TYPE == "Sphere" then | |
479 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
480 | elseif TYPE == "Block" then | |
481 | MSH = IT("BlockMesh",EFFECT) | |
482 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
483 | elseif TYPE == "Wave" then | |
484 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
485 | elseif TYPE == "Ring" then | |
486 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
487 | elseif TYPE == "Slash" then | |
488 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
489 | elseif TYPE == "Round Slash" then | |
490 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
491 | elseif TYPE == "Swirl" then | |
492 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
493 | elseif TYPE == "Skull" then | |
494 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
495 | elseif TYPE == "Crystal" then | |
496 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
497 | end | |
498 | if MSH ~= nil then | |
499 | local MOVESPEED = nil | |
500 | if MOVEDIRECTION ~= nil then | |
501 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
502 | end | |
503 | local GROWTH = SIZE - ENDSIZE | |
504 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
505 | if TYPE == "Block" then | |
506 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
507 | else | |
508 | EFFECT.CFrame = CFRAME | |
509 | end | |
510 | for LOOP = 1, TIME do | |
511 | Swait() | |
512 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
513 | if TYPE == "Wave" then | |
514 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
515 | end | |
516 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
517 | if TYPE == "Block" then | |
518 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
519 | else | |
520 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
521 | end | |
522 | if MOVEDIRECTION ~= nil then | |
523 | local ORI = EFFECT.Orientation | |
524 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
525 | EFFECT.Orientation = ORI | |
526 | end | |
527 | end | |
528 | if PLAYSSOUND == false then | |
529 | EFFECT:remove() | |
530 | else | |
531 | repeat Swait() until SOUND.Playing == false | |
532 | EFFECT:remove() | |
533 | end | |
534 | else | |
535 | if PLAYSSOUND == false then | |
536 | EFFECT:remove() | |
537 | else | |
538 | repeat Swait() until SOUND.Playing == false | |
539 | EFFECT:remove() | |
540 | end | |
541 | end | |
542 | end)) | |
543 | end | |
544 | ||
545 | function SpawnTrail(FROM,TO) | |
546 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0)) | |
547 | MakeForm(TRAIL,"Cyl") | |
548 | local DIST = (FROM - TO).Magnitude | |
549 | TRAIL.Size = VT(0.1,DIST,0.1) | |
550 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
551 | coroutine.resume(coroutine.create(function() | |
552 | for i = 1, 5 do | |
553 | Swait() | |
554 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
555 | end | |
556 | TRAIL:remove() | |
557 | end)) | |
558 | end | |
559 | ||
560 | function MakeForm(PART,TYPE) | |
561 | if TYPE == "Cyl" then | |
562 | local MSH = IT("CylinderMesh",PART) | |
563 | elseif TYPE == "Ball" then | |
564 | local MSH = IT("SpecialMesh",PART) | |
565 | MSH.MeshType = "Sphere" | |
566 | elseif TYPE == "Wedge" then | |
567 | local MSH = IT("SpecialMesh",PART) | |
568 | MSH.MeshType = "Wedge" | |
569 | end | |
570 | end | |
571 | ||
572 | Debris = game:GetService("Debris") | |
573 | ||
574 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
575 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
576 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
577 | end | |
578 | ||
579 | function turnto(position) | |
580 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
581 | end | |
582 | ||
583 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
584 | if FLOOR ~= nil then | |
585 | coroutine.resume(coroutine.create(function() | |
586 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
587 | PART.CFrame = CF(POSITION) | |
588 | for i = 1, 45 do | |
589 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
590 | RingPiece.Material = FLOOR.Material | |
591 | RingPiece.Color = FLOOR.Color | |
592 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
593 | Debris:AddItem(RingPiece,SWAIT) | |
594 | end | |
595 | PART:remove() | |
596 | end)) | |
597 | end | |
598 | end | |
599 | ||
600 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH,DOES360) | |
601 | if FLOOR ~= nil then | |
602 | for i = 1, AMOUNT do | |
603 | local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false) | |
604 | DEBREE.Material = FLOOR.Material | |
605 | DEBREE.Color = FLOOR.Color | |
606 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
607 | if DOES360 == true then | |
608 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
609 | else | |
610 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH)) | |
611 | end | |
612 | coroutine.resume(coroutine.create(function() | |
613 | Swait(15) | |
614 | DEBREE.Parent = workspace | |
615 | DEBREE.CanCollide = true | |
616 | Debris:AddItem(DEBREE,SWAIT) | |
617 | end)) | |
618 | end | |
619 | end | |
620 | end | |
621 | ||
622 | local Decal = IT("Decal") | |
623 | function SpawnBulletHole(POSITION) | |
624 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2)) | |
625 | local decal = Decal:Clone() | |
626 | decal.Parent = O1 | |
627 | decal.Face = "Top" | |
628 | decal.Texture = "http://www.roblox.com/asset/?id=130624105" | |
629 | local decal2 = Decal:Clone() | |
630 | decal2.Parent = O1 | |
631 | decal2.Face = "Bottom" | |
632 | decal2.Texture = "http://www.roblox.com/asset/?id=130624105" | |
633 | O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0)) | |
634 | Debris:AddItem(O1,5) | |
635 | end | |
636 | ||
637 | local asd = Instance.new("ParticleEmitter") | |
638 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
639 | asd.LightEmission = .1 | |
640 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
641 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 2)}) | |
642 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
643 | asd.Transparency = bbb | |
644 | asd.Size = aaa | |
645 | asd.ZOffset = .9 | |
646 | asd.Acceleration = Vector3.new(0, -15, 0) | |
647 | asd.LockedToPart = false | |
648 | asd.EmissionDirection = "Back" | |
649 | asd.Lifetime = NumberRange.new(1, 2) | |
650 | asd.Rotation = NumberRange.new(-100, 100) | |
651 | asd.RotSpeed = NumberRange.new(-100, 100) | |
652 | asd.Speed = NumberRange.new(10) | |
653 | asd.Enabled = false | |
654 | asd.VelocitySpread = 999 | |
655 | ||
656 | function getbloody(victim,amount) | |
657 | local PART = IT("Part",Effects) | |
658 | PART.Transparency = 1 | |
659 | PART.Size = victim.Size | |
660 | PART.Anchored = true | |
661 | PART.CanCollide = false | |
662 | PART.CFrame = CF(victim.Position) | |
663 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
664 | Debris:AddItem(PART,5) | |
665 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
666 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
667 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
668 | local prtcl = asd:Clone() | |
669 | prtcl.Parent = PART | |
670 | prtcl:Emit(amount*10) | |
671 | end | |
672 | ||
673 | function BulletDetection(FROM,TO) | |
674 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
675 | if AIMHIT ~= nil then | |
676 | if AIMHIT.Parent ~= Character and AIMHIT.Parent ~= Weapon and AIMHIT.Parent ~= Weapon then | |
677 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
678 | if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then | |
679 | ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT) | |
680 | elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then | |
681 | if AIMHIT.Parent.ClassName == "Accessory" then | |
682 | if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then | |
683 | AIMHIT.Parent.Parent:BreakJoints() | |
684 | if AIMHIT.Parent.Parent:FindFirstChild("Head") then | |
685 | getbloody(AIMHIT.Parent.Parent.Head,15) | |
686 | AIMHIT.Parent.Parent.Head:remove() | |
687 | StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0)) | |
688 | end | |
689 | else | |
690 | ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT) | |
691 | end | |
692 | elseif AIMHIT.Name == "Head" then | |
693 | getbloody(AIMHIT,15) | |
694 | AIMHIT.Parent:BreakJoints() | |
695 | AIMHIT:remove() | |
696 | StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0)) | |
697 | end | |
698 | end | |
699 | else | |
700 | CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true) | |
701 | SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))) | |
702 | end | |
703 | end | |
704 | end | |
705 | return AIMHIT,AIMPOS,NORMAL | |
706 | end | |
707 | ||
708 | --//=================================\\ | |
709 | --|| WEAPON CREATION | |
710 | --\\=================================// | |
711 | ||
712 | local Hair = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false) | |
713 | local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.15,0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
714 | CreateMesh("SpecialMesh", Hair, "FileMesh", "375815502", "", VT(1,1,1)*1.02, VT(0,0,0)) | |
715 | Hair.Color = C3(0,0,0) | |
716 | local Hair = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false) | |
717 | local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.15,0.1) * ANGLES(RAD(-20), RAD(0), RAD(70)), CF(0, 0, 0)) | |
718 | CreateMesh("SpecialMesh", Hair, "FileMesh", "375815502", "", VT(1,1,1)*1.02, VT(0,0,0)) | |
719 | Hair.Color = C3(0,0,0) | |
720 | ||
721 | for i = 1, 6 do | |
722 | local Hair = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Hair", VT(1,1,1),false) | |
723 | local HairWeld = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.15,0.1) * ANGLES(RAD(-20), RAD(-125+(15*i)), RAD(70)), CF(0, i/(3+i/8), 0) * ANGLES(RAD(0), RAD(90),RAD(0))) | |
724 | CreateMesh("SpecialMesh", Hair, "FileMesh", "12212520", "", VT(1,2,1)*(1.02-(i/10)), VT(0,0,0)) | |
725 | Hair.Color = C3(0,0,0) | |
726 | end | |
727 | ||
728 | local Gun1 = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Right Gun", VT(2.05, 1.05, 0.2),false) | |
729 | local Gun1Weld = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Gun1, CF(0, -1.9, -0.3) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0)) | |
730 | CreateMesh("SpecialMesh", Gun1, "FileMesh", "430286482", "", VT(1,1,1)/20, VT(0,0,0)) | |
731 | ||
732 | local Gun2 = CreatePart(3, Weapon, "Marble", 0, 0, "Mid gray", "Left Gun", VT(2.05, 1.05, 0.2),false) | |
733 | local Gun2Weld = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Gun2, CF(0, -1.9, -0.3) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0)) | |
734 | CreateMesh("SpecialMesh", Gun2, "FileMesh", "430286482", "", VT(1,1,1)/20, VT(0,0,0)) | |
735 | ||
736 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Eye", VT(0.3,0.5,0.3)/2.5,false) | |
737 | MakeForm(Eye,"Ball") | |
738 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.05,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.575) * ANGLES(RAD(0), RAD(0), RAD(45))) | |
739 | ||
740 | local top = Instance.new("Shirt") | |
741 | top.ShirtTemplate = "rbxassetid://764933308" | |
742 | top.Parent = Character | |
743 | top.Name = "Cloth" | |
744 | local bottom = Instance.new("Pants") | |
745 | bottom.PantsTemplate = "rbxassetid://238651628" | |
746 | bottom.Parent = Character | |
747 | bottom.Name = "Cloth" | |
748 | ||
749 | local Radio = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "RAD-io", VT(1.01,0.2,1.01),false) | |
750 | CreateWeldOrSnapOrMotor("Weld", Radio, RightLeg, Radio, CF(0.5, 0.75, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
751 | local RADIOMESH = CreateMesh("SpecialMesh", Radio, "FileMesh", "212302951", "212303049", VT(0.5,0.5,0.5), VT(0,0,0)) | |
752 | ||
753 | for _, c in pairs(Weapon:GetChildren()) do | |
754 | if c.ClassName == "Part" then | |
755 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
756 | end | |
757 | end | |
758 | ||
759 | local SKILLTEXTCOLOR = C3(1,1,1) | |
760 | local SKILLFONT = "SciFi" | |
761 | local SKILLTEXTSIZE = 7 | |
762 | ||
763 | Weapon.Parent = Character | |
764 | ||
765 | Humanoid.Died:connect(function() | |
766 | ATTACK = true | |
767 | end) | |
768 | ||
769 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.18, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
770 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.55, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
771 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.18, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
772 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.55, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
773 | local AMMOFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Ammo Frame") | |
774 | local RELOADFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Reload Frame") | |
775 | ||
776 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") | |
777 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Nexus Barrage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
778 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Heartstroke", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
779 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Blind Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
780 | local AMMOTEXT = CreateLabel(AMMOFRAME, "[16]", SKILLTEXTCOLOR, 12, SKILLFONT, 0, 2, 0.5, "Ammo") | |
781 | local RELOAD = CreateLabel(RELOADFRAME, "[R] Reload", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "How2ReloadForDummies") | |
782 | ||
783 | --//=================================\\ | |
784 | --|| DAMAGE FUNCTIONS | |
785 | --\\=================================// | |
786 | ||
787 | function StatLabel(CFRAME, TEXT, COLOR) | |
788 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
789 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
790 | local BODYGYRO = IT("BodyGyro", STATPART) | |
791 | game:GetService("Debris"):AddItem(STATPART ,5) | |
792 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
793 | BILLBOARDGUI.Adornee = STATPART | |
794 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
795 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
796 | BILLBOARDGUI.AlwaysOnTop = false | |
797 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
798 | TEXTLABEL.BackgroundTransparency = 1 | |
799 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
800 | TEXTLABEL.Text = TEXT | |
801 | TEXTLABEL.Font = SKILLFONT | |
802 | TEXTLABEL.FontSize="Size42" | |
803 | TEXTLABEL.TextColor3 = COLOR | |
804 | TEXTLABEL.TextStrokeTransparency = 0 | |
805 | TEXTLABEL.TextScaled = true | |
806 | TEXTLABEL.TextWrapped = true | |
807 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
808 | for i = 1, 50 do | |
809 | Swait() | |
810 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
811 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
812 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextStrokeTransparency + (1/50) | |
813 | end | |
814 | THEPART.Parent = nil | |
815 | end),STATPART, TEXTLABEL) | |
816 | end | |
817 | ||
818 | --//=================================\\ | |
819 | --|| DAMAGING | |
820 | --\\=================================// | |
821 | ||
822 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
823 | if Humanoid ~= nil then | |
824 | Damage = Damage * DAMAGEMULTIPLIER | |
825 | if Humanoid.Health ~= 0 then | |
826 | local CritChance = MRANDOM(1,100) | |
827 | if Damage > Humanoid.Health then | |
828 | Damage = math.ceil(Humanoid.Health) | |
829 | if Damage == 0 then | |
830 | Damage = 0.1 | |
831 | end | |
832 | end | |
833 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], TorsoPart, 10, (math.random(8,12)/10),false) | |
834 | Humanoid.Health = Humanoid.Health - Damage | |
835 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(1,1,1)) | |
836 | end | |
837 | end | |
838 | end | |
839 | ||
840 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
841 | local CHILDREN = workspace:GetDescendants() | |
842 | for index, CHILD in pairs(CHILDREN) do | |
843 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
844 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
845 | if HUM then | |
846 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
847 | if TORSO then | |
848 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
849 | if INSTAKILL == true then | |
850 | CHILD:BreakJoints() | |
851 | else | |
852 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
853 | ApplyDamage(HUM,DMG,TORSO) | |
854 | end | |
855 | if FLING > 0 then | |
856 | for _, c in pairs(CHILD:GetChildren()) do | |
857 | if c:IsA("BasePart") then | |
858 | local bv = Instance.new("BodyVelocity") | |
859 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
860 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
861 | bv.Parent = c | |
862 | Debris:AddItem(bv,0.05) | |
863 | end | |
864 | end | |
865 | end | |
866 | end | |
867 | end | |
868 | end | |
869 | end | |
870 | end | |
871 | end | |
872 | ||
873 | --//=================================\\ | |
874 | --|| ATTACK FUNCTIONS AND STUFF | |
875 | --\\=================================// | |
876 | ||
877 | function BULLET_SHOT() | |
878 | ATTACK = true | |
879 | Rooted = false | |
880 | local STOP = false | |
881 | repeat | |
882 | if AMMO > 0 then | |
883 | if COMBO == 1 then | |
884 | COMBO = 2 | |
885 | for i=0, 0.3, 0.1 / Animation_Speed do | |
886 | Swait() | |
887 | turnto(Mouse.Hit.p) | |
888 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(86)), 2 / Animation_Speed) | |
889 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-86)), 2 / Animation_Speed) | |
890 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
891 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
892 | if HITFLOOR == true then | |
893 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(25), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
894 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
895 | elseif HITFLOOR == false then | |
896 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
897 | 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) | |
898 | end | |
899 | end | |
900 | AMMO = AMMO - 1 | |
901 | local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun1.Position,Mouse.Hit.p) | |
902 | SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,AIMPOS) | |
903 | CreateSound(FireSound, Gun1, 5, 1, false) | |
904 | for i=0, 0.1, 0.1 / Animation_Speed do | |
905 | Swait() | |
906 | turnto(AIMPOS) | |
907 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(86)), 2 / Animation_Speed) | |
908 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-86)), 2 / Animation_Speed) | |
909 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(86)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
910 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
911 | if HITFLOOR == true then | |
912 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(25), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
913 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
914 | elseif HITFLOOR == false then | |
915 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
916 | 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) | |
917 | end | |
918 | end | |
919 | elseif COMBO == 2 then | |
920 | COMBO = 1 | |
921 | for i=0, 0.3, 0.1 / Animation_Speed do | |
922 | Swait() | |
923 | turnto(Mouse.Hit.p) | |
924 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
925 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed) | |
926 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
927 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
928 | if HITFLOOR == true then | |
929 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
930 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
931 | elseif HITFLOOR == false then | |
932 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
933 | 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) | |
934 | end | |
935 | end | |
936 | AMMO = AMMO - 1 | |
937 | local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun2.Position,Mouse.Hit.p) | |
938 | CreateSound(FireSound, Gun2, 5, 1, false) | |
939 | SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,AIMPOS) | |
940 | for i=0, 0.1, 0.1 / Animation_Speed do | |
941 | Swait() | |
942 | turnto(AIMPOS) | |
943 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
944 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed) | |
945 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
946 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
947 | if HITFLOOR == true then | |
948 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
949 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
950 | elseif HITFLOOR == false then | |
951 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
952 | 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) | |
953 | end | |
954 | end | |
955 | end | |
956 | else | |
957 | Reload() | |
958 | STOP = true | |
959 | end | |
960 | until KEYHOLD == false or STOP == true | |
961 | ATTACK = false | |
962 | Rooted = false | |
963 | end | |
964 | ||
965 | function NEXUS_BARRAGE() | |
966 | ATTACK = true | |
967 | Rooted = true | |
968 | local BULLETS = {} | |
969 | for FIRE = 1, 3 do | |
970 | for i=0, 0.2, 0.1 / Animation_Speed do | |
971 | Swait() | |
972 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
973 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
974 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(55+15*FIRE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
975 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-55-15*FIRE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
976 | if HITFLOOR then | |
977 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
978 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
979 | elseif HITFLOOR == nil then | |
980 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
981 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
982 | end | |
983 | end | |
984 | CreateSound(FireSound, Gun1, 5, 1, false) | |
985 | CreateSound(FireSound, Gun2, 5, 1, false) | |
986 | local BULLET = CreatePart(3, Effects, "Metal", 0, 0, "Mid gray", "Bullet", VT(0.3,0,0)) | |
987 | BULLET.CFrame = Gun1.CFrame*CF(3,0.2,0) | |
988 | SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,BULLET.Position) | |
989 | table.insert(BULLETS,BULLET) | |
990 | local BULLET = CreatePart(3, Effects, "Metal", 0, 0, "Mid gray", "Bullet", VT(0.3,0,0)) | |
991 | BULLET.CFrame = Gun2.CFrame*CF(3,0.2,0) | |
992 | SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,BULLET.Position) | |
993 | table.insert(BULLETS,BULLET) | |
994 | AMMO = AMMO - 2 | |
995 | for i=0, 0.1, 0.1 / Animation_Speed do | |
996 | Swait() | |
997 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
998 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
999 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(35*FIRE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1000 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-35*FIRE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1001 | if HITFLOOR then | |
1002 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1003 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1004 | elseif HITFLOOR == nil then | |
1005 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1006 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1007 | end | |
1008 | end | |
1009 | end | |
1010 | Rooted = false | |
1011 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1012 | Swait() | |
1013 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1014 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1015 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1016 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1017 | if HITFLOOR then | |
1018 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1019 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1020 | elseif HITFLOOR == nil then | |
1021 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1022 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1023 | end | |
1024 | end | |
1025 | coroutine.resume(coroutine.create(function() | |
1026 | for BULLET = 1, #BULLETS do | |
1027 | if BULLETS[BULLET] ~= nil then | |
1028 | Swait(5) | |
1029 | local FIRE = BULLETS[BULLET] | |
1030 | local AIMHIT,AIMPOS,NORMAL = BulletDetection(FIRE.Position,Mouse.Hit.p) | |
1031 | SpawnTrail(FIRE.Position,AIMPOS) | |
1032 | FIRE:remove() | |
1033 | end | |
1034 | end | |
1035 | end)) | |
1036 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1037 | Swait() | |
1038 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1039 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1040 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1041 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1042 | if HITFLOOR then | |
1043 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1044 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1045 | elseif HITFLOOR == nil then | |
1046 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1047 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1048 | end | |
1049 | end | |
1050 | ATTACK = false | |
1051 | Rooted = false | |
1052 | end | |
1053 | ||
1054 | function HEARTSTROKE() | |
1055 | ATTACK = true | |
1056 | Rooted = false | |
1057 | CreateSound(1112042117, Torso, 5, 1, false) | |
1058 | WACKYEFFECT({EffectType = "Wave", Size = VT(0,1,0), Size2 = VT(8,0.3,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1)*ANGLES(RAD(90),RAD(0),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1059 | WACKYEFFECT({EffectType = "Wave", Size = VT(0,1,0), Size2 = VT(8,0.3,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,1)*ANGLES(RAD(90),RAD(0),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1060 | for i = 1, 50 do | |
1061 | local DASHTHROUGH = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 4, Character) | |
1062 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-2) | |
1063 | if DASHTHROUGH ~= nil then | |
1064 | if DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid") then | |
1065 | local HUM = DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid") | |
1066 | local TORSO = DASHTHROUGH.Parent:FindFirstChild("Torso") or DASHTHROUGH.Parent:FindFirstChild("UpperTorso") | |
1067 | if TORSO ~= nil and DASHTHROUGH.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then | |
1068 | Rooted = true | |
1069 | local SOUND = CreateSound("147758746", TORSO, 10, 1,false) | |
1070 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-12) | |
1071 | RootPart.CFrame = CF(RootPart.Position,TORSO.Position)*ANGLES(RAD(0),RAD(180),RAD(0)) | |
1072 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1073 | Swait() | |
1074 | TORSO.Anchored = true | |
1075 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1076 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1078 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-40), RAD(0), RAD(15)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1079 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 3 / Animation_Speed) | |
1080 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1081 | end | |
1082 | TORSO.Anchored = false | |
1083 | TORSO.Parent:BreakJoints() | |
1084 | if TORSO.Parent:FindFirstChild("Head") then | |
1085 | getbloody(TORSO.Parent:FindFirstChild("Head"),15) | |
1086 | SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,TORSO.Parent:FindFirstChild("Head").Position) | |
1087 | TORSO.Parent:FindFirstChild("Head"):remove() | |
1088 | CreateSound(FireSound, Gun1, 5, 1, false) | |
1089 | AMMO = AMMO - 1 | |
1090 | end | |
1091 | SOUND:remove() | |
1092 | SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,TORSO.Position) | |
1093 | CreateSound(FireSound, Gun2, 5, 1, false) | |
1094 | StatLabel(TORSO.CFrame * CF(0, 0 + (TORSO.Size.z - 1), 0), "Heartstruck!", C3(1,0,0)) | |
1095 | AMMO = AMMO - 1 | |
1096 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1097 | Swait() | |
1098 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1099 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1100 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1101 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-40), RAD(0), RAD(15)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1102 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 3 / Animation_Speed) | |
1103 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1104 | end | |
1105 | end | |
1106 | end | |
1107 | break | |
1108 | end | |
1109 | end | |
1110 | ATTACK = false | |
1111 | Rooted = false | |
1112 | end | |
1113 | ||
1114 | function BLIND_STAR() | |
1115 | ATTACK = true | |
1116 | Rooted = true | |
1117 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1118 | Swait() | |
1119 | 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) | |
1120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1123 | if HITFLOOR then | |
1124 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1125 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1126 | elseif HITFLOOR == nil then | |
1127 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1128 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1129 | end | |
1130 | end | |
1131 | for i = 1, 8 do | |
1132 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1133 | Swait() | |
1134 | 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) | |
1135 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1136 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1137 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 0.7 / Animation_Speed) | |
1138 | if HITFLOOR then | |
1139 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1140 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1141 | elseif HITFLOOR == nil then | |
1142 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1143 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1144 | end | |
1145 | end | |
1146 | AMMO = AMMO - 1 | |
1147 | SpawnTrail(Gun1.CFrame*CF(1.25,0.2,0).p,Gun1.CFrame*CF(2000,0.2,0).p) | |
1148 | CreateSound(FireSound, Gun1, 5, 1, false) | |
1149 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1150 | Swait() | |
1151 | 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) | |
1152 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1153 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.7 / Animation_Speed) | |
1154 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1155 | if HITFLOOR then | |
1156 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1157 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1158 | elseif HITFLOOR == nil then | |
1159 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1160 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1161 | end | |
1162 | end | |
1163 | AMMO = AMMO - 1 | |
1164 | SpawnTrail(Gun2.CFrame*CF(1.25,0.2,0).p,Gun2.CFrame*CF(2000,0.2,0).p) | |
1165 | CreateSound(FireSound, Gun2, 5, 1, false) | |
1166 | end | |
1167 | local AIMPOS = Mouse.Hit.p | |
1168 | local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character) | |
1169 | coroutine.resume(coroutine.create(function() | |
1170 | local RAYS = {} | |
1171 | for i = 1, 4 do | |
1172 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ray", VT(15,2000,15)) | |
1173 | MakeForm(RAY,"Cyl") | |
1174 | RAY.Mesh.Scale = VT(1,1.1,1) | |
1175 | table.insert(RAYS,RAY) | |
1176 | end | |
1177 | CreateSound(348663022, Effects, 2, 1.2, false) | |
1178 | for i = 1, 100 do | |
1179 | Swait() | |
1180 | for e = 1, #RAYS do | |
1181 | if RAYS[e] ~= nil then | |
1182 | local RAY = RAYS[e] | |
1183 | RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0) | |
1184 | RAY.Transparency = RAY.Transparency - 0.01 | |
1185 | end | |
1186 | end | |
1187 | end | |
1188 | for i = 1, 20 do | |
1189 | Swait() | |
1190 | for e = 1, #RAYS do | |
1191 | if RAYS[e] ~= nil then | |
1192 | local RAY = RAYS[e] | |
1193 | RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20) | |
1194 | end | |
1195 | end | |
1196 | end | |
1197 | wait(0.3) | |
1198 | for i = 1, 16 do | |
1199 | local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p | |
1200 | SpawnTrail(POS+VT(0,200,0),POS) | |
1201 | end | |
1202 | for i = 1, 4 do | |
1203 | CreateDebreeRing(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5) | |
1204 | end | |
1205 | CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false) | |
1206 | CreateFlyingDebree(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false) | |
1207 | CreateSound(130972023, Effects, 2, 1, false) | |
1208 | ApplyAoE(AIMPOS,25,0,0,100,true) | |
1209 | Swait() | |
1210 | ApplyAoE(AIMPOS,85,80,99,45,false) | |
1211 | end)) | |
1212 | ATTACK = false | |
1213 | Rooted = false | |
1214 | end | |
1215 | ||
1216 | function Reload() | |
1217 | ATTACK = true | |
1218 | Rooted = false | |
1219 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1220 | Swait() | |
1221 | if ANIM == "Walk" then | |
1222 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1223 | else | |
1224 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1225 | end | |
1226 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1227 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -1) * ANGLES(RAD(150), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1228 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -1) * ANGLES(RAD(140), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1229 | if HITFLOOR then | |
1230 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1231 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1232 | elseif HITFLOOR == nil then | |
1233 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1234 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1235 | end | |
1236 | end | |
1237 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1238 | Swait() | |
1239 | if ANIM == "Walk" then | |
1240 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1241 | else | |
1242 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1243 | end | |
1244 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1245 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1246 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1247 | if HITFLOOR then | |
1248 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1249 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1250 | elseif HITFLOOR == nil then | |
1251 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1252 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1253 | end | |
1254 | end | |
1255 | local FakeGun1 = Gun1:Clone() | |
1256 | FakeGun1.Parent = Effects | |
1257 | FakeGun1.CanCollide = true | |
1258 | Debris:AddItem(FakeGun1,5) | |
1259 | local FakeGun2 = Gun2:Clone() | |
1260 | FakeGun2.Parent = Effects | |
1261 | FakeGun2.CanCollide = true | |
1262 | Debris:AddItem(FakeGun2,5) | |
1263 | local bv = Instance.new("BodyVelocity") | |
1264 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1265 | bv.velocity = CF(Torso.Position,FakeGun1.Position).lookVector*25 | |
1266 | bv.Parent = FakeGun1 | |
1267 | Debris:AddItem(bv,0.05) | |
1268 | - | Reload() |
1268 | + | |
1269 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1270 | bv.velocity = CF(Torso.Position,FakeGun2.Position).lookVector*25 | |
1271 | bv.Parent = FakeGun2 | |
1272 | Debris:AddItem(bv,0.05) | |
1273 | Gun1.Transparency = 1 | |
1274 | Gun2.Transparency = 1 | |
1275 | CreateSound(1112042117, FakeGun1, 5, 1, false) | |
1276 | CreateSound(1112042117, FakeGun2, 5, 1, false) | |
1277 | FakeGun1.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.5, 0.5, 1, 1) | |
1278 | FakeGun2.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.5, 0.5, 1, 1) | |
1279 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1280 | Swait() | |
1281 | if ANIM == "Walk" then | |
1282 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1283 | else | |
1284 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1285 | end | |
1286 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1287 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1288 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1289 | if HITFLOOR then | |
1290 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1291 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1292 | elseif HITFLOOR == nil then | |
1293 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1294 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1295 | end | |
1296 | end | |
1297 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1298 | Swait() | |
1299 | if ANIM == "Walk" then | |
1300 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1301 | else | |
1302 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1303 | end | |
1304 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1305 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-25), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1306 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-25), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1307 | if HITFLOOR then | |
1308 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1309 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1310 | elseif HITFLOOR == nil then | |
1311 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1312 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1313 | end | |
1314 | end | |
1315 | Gun1.Transparency = 0 | |
1316 | Gun2.Transparency = 0 | |
1317 | AMMO = 16 | |
1318 | ATTACK = false | |
1319 | Rooted = false | |
1320 | end | |
1321 | ||
1322 | --//=================================\\ | |
1323 | --|| ASSIGN THINGS TO KEYS | |
1324 | --\\=================================// | |
1325 | ||
1326 | function MouseDown(Mouse) | |
1327 | if ATTACK == false then | |
1328 | end | |
1329 | end | |
1330 | ||
1331 | function MouseUp(Mouse) | |
1332 | HOLD = false | |
1333 | end | |
1334 | ||
1335 | function KeyDown(Key) | |
1336 | KEYHOLD = true | |
1337 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1338 | if AMMO > 0 then | |
1339 | if Key == "z" and ATTACK == false then | |
1340 | BULLET_SHOT() | |
1341 | end | |
1342 | ||
1343 | if Key == "b" and AMMO >= 6 and ATTACK == false then | |
1344 | NEXUS_BARRAGE() | |
1345 | end | |
1346 | ||
1347 | if Key == "c" and AMMO > 1 and ATTACK == false then | |
1348 | HEARTSTROKE() | |
1349 | end | |
1350 | ||
1351 | if Key == "x" and AMMO == 16 and ATTACK == false then | |
1352 | BLIND_STAR() | |
1353 | end | |
1354 | ||
1355 | if Key == "r" and ATTACK == false then | |
1356 | ------Reload() | |
1357 | end | |
1358 | elseif ATTACK == false then | |
1359 | Reload() | |
1360 | end | |
1361 | end | |
1362 | if Key == "q" then | |
1363 | if Radio:FindFirstChild("EdgySong") == nil then | |
1364 | local SONGS = {188988878,214614192,343137910,590071128} | |
1365 | SONG = CreateSound(SONGS[MRANDOM(1,#SONGS)], Radio, 3, 1, true) | |
1366 | SONG.Name = "EdgySong" | |
1367 | else | |
1368 | Radio.EdgySong:remove() | |
1369 | SONG = nil | |
1370 | end | |
1371 | end | |
1372 | if string.byte(Key) == 32 and READYTODOUBLE == true and ATTACK == false and Humanoid.Jump == true and DOUBLEJUMP == false then | |
1373 | DOUBLEJUMP = true | |
1374 | Torso.Velocity = Vector3.new(0,125,0) | |
1375 | CreateSound(159882477, Head, 4, 1, false) | |
1376 | CreateSound(1112042117, Torso, 2, 1, false) | |
1377 | end | |
1378 | end | |
1379 | ||
1380 | Humanoid.Changed:connect(function(Jump) | |
1381 | if Jump == "Jump" and (Disable_Jump == false) then | |
1382 | wait(0.1) | |
1383 | READYTODOUBLE = true | |
1384 | end | |
1385 | end) | |
1386 | ||
1387 | function KeyUp(Key) | |
1388 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1389 | KEYHOLD = false | |
1390 | end | |
1391 | end | |
1392 | ||
1393 | Mouse.Button1Down:connect(function(NEWKEY) | |
1394 | MouseDown(NEWKEY) | |
1395 | end) | |
1396 | Mouse.Button1Up:connect(function(NEWKEY) | |
1397 | MouseUp(NEWKEY) | |
1398 | end) | |
1399 | Mouse.KeyDown:connect(function(NEWKEY) | |
1400 | KeyDown(NEWKEY) | |
1401 | end) | |
1402 | Mouse.KeyUp:connect(function(NEWKEY) | |
1403 | KeyUp(NEWKEY) | |
1404 | end) | |
1405 | ||
1406 | --//=================================\\ | |
1407 | --\\=================================// | |
1408 | ||
1409 | ||
1410 | function unanchor() | |
1411 | if UNANCHOR == true then | |
1412 | RootPart.Anchored = false | |
1413 | end | |
1414 | g = Character:GetChildren() | |
1415 | for i = 1, #g do | |
1416 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
1417 | g[i].Anchored = false | |
1418 | end | |
1419 | end | |
1420 | g = Weapon:GetChildren() | |
1421 | for i = 1, #g do | |
1422 | if g[i].ClassName == "Part" then | |
1423 | g[i].Anchored = false | |
1424 | end | |
1425 | end | |
1426 | end | |
1427 | ||
1428 | ||
1429 | --//=================================\\ | |
1430 | --|| WRAP THE WHOLE SCRIPT UP | |
1431 | --\\=================================// | |
1432 | ||
1433 | Humanoid.Changed:connect(function(Jump) | |
1434 | if Jump == "Jump" and (Disable_Jump == true) then | |
1435 | Humanoid.Jump = false | |
1436 | end | |
1437 | end) | |
1438 | ||
1439 | Humanoid.JumpPower = 75 | |
1440 | ||
1441 | local FF = IT("ForceField",Character) | |
1442 | FF.Visible = false | |
1443 | local LOOP = 0 | |
1444 | ||
1445 | while true do | |
1446 | Swait() | |
1447 | script.Parent = WEAPONGUI | |
1448 | Character.Parent = workspace | |
1449 | Humanoid.Parent = Character | |
1450 | ANIMATE.Parent = nil | |
1451 | if Humanoid then | |
1452 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1453 | IDLEANIMATION:Play() | |
1454 | end | |
1455 | SINE = SINE + CHANGE | |
1456 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1457 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1458 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1459 | local WALKSPEEDVALUE = 3 | |
1460 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
1461 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.25 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (1) / Animation_Speed) | |
1462 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (1) / Animation_Speed) | |
1463 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1464 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1465 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
1466 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1467 | 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) | |
1468 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1469 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1470 | end | |
1471 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1472 | if ANIM ~= "Jump" then | |
1473 | LOOP = 0 | |
1474 | end | |
1475 | ANIM = "Jump" | |
1476 | if DOUBLEJUMP == false then | |
1477 | if ATTACK == false then | |
1478 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1479 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1480 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(76)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1481 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-76)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1482 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1483 | 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) | |
1484 | end | |
1485 | elseif DOUBLEJUMP == true then | |
1486 | if ATTACK == false then | |
1487 | LOOP = LOOP + 1 | |
1488 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(LOOP*45), RAD(0), RAD(0)), 2.5 / Animation_Speed) | |
1489 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1490 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1491 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1492 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1493 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1494 | end | |
1495 | end | |
1496 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1497 | ANIM = "Fall" | |
1498 | if ATTACK == false then | |
1499 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1500 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1501 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(80)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1502 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1503 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
1504 | 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) | |
1505 | end | |
1506 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1507 | ANIM = "Idle" | |
1508 | if DOUBLEJUMP == true then | |
1509 | DOUBLEJUMP = false | |
1510 | end | |
1511 | if READYTODOUBLE == true then | |
1512 | READYTODOUBLE = false | |
1513 | end | |
1514 | if ATTACK == false then | |
1515 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
1516 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
1517 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1518 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1519 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1520 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1521 | end | |
1522 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1523 | ANIM = "Walk" | |
1524 | if DOUBLEJUMP == true then | |
1525 | DOUBLEJUMP = false | |
1526 | end | |
1527 | if READYTODOUBLE == true then | |
1528 | READYTODOUBLE = false | |
1529 | end | |
1530 | if ATTACK == false then | |
1531 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1532 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1533 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) | |
1534 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1535 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1536 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1537 | end | |
1538 | end | |
1539 | unanchor() | |
1540 | Humanoid.MaxHealth = "inf" | |
1541 | Humanoid.Health = "inf" | |
1542 | if Rooted == false then | |
1543 | Disable_Jump = false | |
1544 | Humanoid.WalkSpeed = Speed | |
1545 | elseif Rooted == true then | |
1546 | Disable_Jump = true | |
1547 | Humanoid.WalkSpeed = 0 | |
1548 | end | |
1549 | for _, c in pairs(Character:GetChildren()) do | |
1550 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1551 | c.Material = "Neon" | |
1552 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1553 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1554 | end | |
1555 | c.Color = C3(255/255, 230/255, 194/255) | |
1556 | if c == Head then | |
1557 | if c:FindFirstChild("face") then | |
1558 | c.face:remove() | |
1559 | end | |
1560 | end | |
1561 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1562 | c:remove() | |
1563 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1564 | c:remove() | |
1565 | end | |
1566 | end | |
1567 | AMMOTEXT.Text = "["..AMMO.."]" | |
1568 | Humanoid.Name = "Gunslinger" | |
1569 | script.Parent = WEAPONGUI | |
1570 | if SONG ~= nil then | |
1571 | RADIOMESH.Scale = VT(1,1,1)+(VT(0.3,0.3,0.3)*SONG.PlaybackLoudness/500) | |
1572 | else | |
1573 | RADIOMESH.Scale = VT(1,1,1) | |
1574 | end | |
1575 | end | |
1576 | ||
1577 | --//=================================\\ | |
1578 | --\\=================================// | |
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | --//====================================================\\-- | |
1585 | --|| END OF SCRIPT | |
1586 | --\\====================================================//-- |