SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
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,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | -- Synapse Decompiler | |
88 | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ | |
89 | ||
90 | wait(0.2) | |
91 | - | Player = game:GetService("Players").PiterMosskva_TV |
91 | + | Player = game:GetService("Players").zXzGamePROzXz |
92 | PlayerGui = Player.PlayerGui | |
93 | Cam = workspace.CurrentCamera | |
94 | Backpack = Player.Backpack | |
95 | Character = Player.Character | |
96 | Humanoid = Character.Humanoid | |
97 | RootPart = Character.HumanoidRootPart | |
98 | Torso = Character.Torso | |
99 | Head = Character.Head | |
100 | RightArm = Character["Right Arm"] | |
101 | LeftArm = Character["Left Arm"] | |
102 | RightLeg = Character["Right Leg"] | |
103 | LeftLeg = Character["Left Leg"] | |
104 | RootJoint = RootPart.RootJoint | |
105 | Neck = Torso.Neck | |
106 | RightShoulder = Torso["Right Shoulder"] | |
107 | LeftShoulder = Torso["Left Shoulder"] | |
108 | RightHip = Torso["Right Hip"] | |
109 | LeftHip = Torso["Left Hip"] | |
110 | local sick = Instance.new("Sound", Character) | |
111 | IT = Instance.new | |
112 | CF = CFrame.new | |
113 | VT = Vector3.new | |
114 | RAD = math.rad | |
115 | C3 = Color3.new | |
116 | UD2 = UDim2.new | |
117 | BRICKC = BrickColor.new | |
118 | ANGLES = CFrame.Angles | |
119 | EULER = CFrame.fromEulerAnglesXYZ | |
120 | COS = math.cos | |
121 | ACOS = math.acos | |
122 | SIN = math.sin | |
123 | ASIN = math.asin | |
124 | ABS = math.abs | |
125 | MRANDOM = math.random | |
126 | FLOOR = math.floor | |
127 | Animation_Speed = 3 | |
128 | Frame_Speed = 0.016666666666666666 | |
129 | local Speed = 25 | |
130 | local SIZE = 3 | |
131 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
132 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
133 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
134 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
135 | local DAMAGEMULTIPLIER = 1 | |
136 | local ANIM = "Idle" | |
137 | local ATTACK = false | |
138 | local EQUIPPED = false | |
139 | local HOLD = false | |
140 | local COMBO = 1 | |
141 | local Rooted = false | |
142 | local SINE = 0 | |
143 | local KEYHOLD = false | |
144 | local CHANGE = 2 / Animation_Speed | |
145 | local WALKINGANIM = false | |
146 | local VALUE1 = false | |
147 | local VALUE2 = false | |
148 | local ROBLOXIDLEANIMATION = IT("Animation") | |
149 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
150 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
151 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
152 | WEAPONGUI.Name = "Weapon GUI" | |
153 | local Effects = IT("Folder", Character) | |
154 | Effects.Name = "Effects" | |
155 | local ANIMATOR = Humanoid.Animator | |
156 | local ANIMATE = Character.Animate | |
157 | local UNANCHOR = true | |
158 | local HELDGUN, GUNWELD | |
159 | local HITPLAYERSOUNDS = { | |
160 | "263032172", | |
161 | "263032182", | |
162 | "263032200", | |
163 | "263032221", | |
164 | "263032252", | |
165 | "263033191" | |
166 | } | |
167 | ArtificialHB = Instance.new("BindableEvent", script) | |
168 | ArtificialHB.Name = "ArtificialHB" | |
169 | script:WaitForChild("ArtificialHB") | |
170 | frame = Frame_Speed | |
171 | tf = 0 | |
172 | allowframeloss = false | |
173 | tossremainder = false | |
174 | lastframe = tick() | |
175 | script.ArtificialHB:Fire() | |
176 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
177 | tf = tf + s | |
178 | if tf >= frame then | |
179 | if allowframeloss then | |
180 | script.ArtificialHB:Fire() | |
181 | lastframe = tick() | |
182 | else | |
183 | for i = 1, math.floor(tf / frame) do | |
184 | script.ArtificialHB:Fire() | |
185 | end | |
186 | lastframe = tick() | |
187 | end | |
188 | if tossremainder then | |
189 | tf = 0 | |
190 | else | |
191 | tf = tf - frame * math.floor(tf / frame) | |
192 | end | |
193 | end | |
194 | end) | |
195 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
196 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
197 | end | |
198 | function PositiveAngle(NUMBER) | |
199 | if NUMBER >= 0 then | |
200 | NUMBER = 0 | |
201 | end | |
202 | return NUMBER | |
203 | end | |
204 | function NegativeAngle(NUMBER) | |
205 | if NUMBER <= 0 then | |
206 | NUMBER = 0 | |
207 | end | |
208 | return NUMBER | |
209 | end | |
210 | function Swait(NUMBER) | |
211 | if NUMBER == 0 or NUMBER == nil then | |
212 | ArtificialHB.Event:wait() | |
213 | else | |
214 | for i = 1, NUMBER do | |
215 | ArtificialHB.Event:wait() | |
216 | end | |
217 | end | |
218 | end | |
219 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
220 | local NEWMESH = IT(MESH) | |
221 | if MESH == "SpecialMesh" then | |
222 | NEWMESH.MeshType = MESHTYPE | |
223 | if MESHID ~= "nil" and MESHID ~= "" then | |
224 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
225 | end | |
226 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
227 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
228 | end | |
229 | end | |
230 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
231 | NEWMESH.Scale = SCALE | |
232 | NEWMESH.Parent = PARENT | |
233 | return NEWMESH | |
234 | end | |
235 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
236 | local NEWPART = IT("Part") | |
237 | NEWPART.formFactor = FORMFACTOR | |
238 | NEWPART.Reflectance = REFLECTANCE | |
239 | NEWPART.Transparency = TRANSPARENCY | |
240 | NEWPART.CanCollide = false | |
241 | NEWPART.Locked = true | |
242 | NEWPART.Anchored = true | |
243 | if ANCHOR == false then | |
244 | NEWPART.Anchored = false | |
245 | end | |
246 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
247 | NEWPART.Name = NAME | |
248 | NEWPART.Size = SIZE | |
249 | NEWPART.Position = Torso.Position | |
250 | NEWPART.Material = MATERIAL | |
251 | NEWPART:BreakJoints() | |
252 | NEWPART.Parent = PARENT | |
253 | return NEWPART | |
254 | end | |
255 | local weldBetween = function(a, b) | |
256 | local weldd = Instance.new("ManualWeld") | |
257 | weldd.Part0 = a | |
258 | weldd.Part1 = b | |
259 | weldd.C0 = CFrame.new() | |
260 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
261 | weldd.Parent = a | |
262 | return weldd | |
263 | end | |
264 | function QuaternionFromCFrame(cf) | |
265 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
266 | local trace = m00 + m11 + m22 | |
267 | if trace > 0 then | |
268 | local s = math.sqrt(1 + trace) | |
269 | local recip = 0.5 / s | |
270 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
271 | else | |
272 | local i = 0 | |
273 | if m00 < m11 then | |
274 | i = 1 | |
275 | end | |
276 | if m22 > (i == 0 and m00 or m11) then | |
277 | i = 2 | |
278 | end | |
279 | if i == 0 then | |
280 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
281 | local recip = 0.5 / s | |
282 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
283 | elseif i == 1 then | |
284 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
285 | local recip = 0.5 / s | |
286 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
287 | elseif i == 2 then | |
288 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
289 | local recip = 0.5 / s | |
290 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
291 | end | |
292 | end | |
293 | end | |
294 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
295 | local xs, ys, zs = x + x, y + y, z + z | |
296 | local wx, wy, wz = w * xs, w * ys, w * zs | |
297 | local xx = x * xs | |
298 | local xy = x * ys | |
299 | local xz = x * zs | |
300 | local yy = y * ys | |
301 | local yz = y * zs | |
302 | local zz = z * zs | |
303 | 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)) | |
304 | end | |
305 | function QuaternionSlerp(a, b, t) | |
306 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
307 | local startInterp, finishInterp | |
308 | if cosTheta >= 1.0E-4 then | |
309 | if 1 - cosTheta > 1.0E-4 then | |
310 | local theta = ACOS(cosTheta) | |
311 | local invSinTheta = 1 / SIN(theta) | |
312 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
313 | finishInterp = SIN(t * theta) * invSinTheta | |
314 | else | |
315 | startInterp = 1 - t | |
316 | finishInterp = t | |
317 | end | |
318 | elseif 1 + cosTheta > 1.0E-4 then | |
319 | local theta = ACOS(-cosTheta) | |
320 | local invSinTheta = 1 / SIN(theta) | |
321 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
322 | finishInterp = SIN(t * theta) * invSinTheta | |
323 | else | |
324 | startInterp = t - 1 | |
325 | finishInterp = t | |
326 | end | |
327 | 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 | |
328 | end | |
329 | function Clerp(a, b, t) | |
330 | local qa = { | |
331 | QuaternionFromCFrame(a) | |
332 | } | |
333 | local qb = { | |
334 | QuaternionFromCFrame(b) | |
335 | } | |
336 | local ax, ay, az = a.x, a.y, a.z | |
337 | local bx, by, bz = b.x, b.y, b.z | |
338 | local _t = 1 - t | |
339 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
340 | end | |
341 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
342 | local frame = IT("Frame") | |
343 | frame.BackgroundTransparency = TRANSPARENCY | |
344 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
345 | frame.Position = POSITION | |
346 | frame.Size = SIZE | |
347 | frame.BackgroundColor3 = COLOR | |
348 | frame.BorderColor3 = BORDERCOLOR | |
349 | frame.Name = NAME | |
350 | frame.Parent = PARENT | |
351 | return frame | |
352 | end | |
353 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
354 | local label = IT("TextLabel") | |
355 | label.BackgroundTransparency = 1 | |
356 | label.Size = UD2(1, 0, 1, 0) | |
357 | label.Position = UD2(0, 0, 0, 0) | |
358 | label.TextColor3 = TEXTCOLOR | |
359 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
360 | label.TextTransparency = TRANSPARENCY | |
361 | label.FontSize = TEXTFONTSIZE | |
362 | label.Font = TEXTFONT | |
363 | label.BorderSizePixel = BORDERSIZEPIXEL | |
364 | label.TextScaled = false | |
365 | label.Text = TEXT | |
366 | label.Name = NAME | |
367 | label.Parent = PARENT | |
368 | return label | |
369 | end | |
370 | function NoOutlines(PART) | |
371 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
372 | end | |
373 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
374 | local NEWWELD = IT(TYPE) | |
375 | NEWWELD.Part0 = PART0 | |
376 | NEWWELD.Part1 = PART1 | |
377 | NEWWELD.C0 = C0 | |
378 | NEWWELD.C1 = C1 | |
379 | NEWWELD.Parent = PARENT | |
380 | return NEWWELD | |
381 | end | |
382 | local S = IT("Sound") | |
383 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
384 | local NEWSOUND | |
385 | coroutine.resume(coroutine.create(function() | |
386 | NEWSOUND = S:Clone() | |
387 | NEWSOUND.Parent = PARENT | |
388 | NEWSOUND.EmitterSize = 10 + VOLUME * 2 | |
389 | NEWSOUND.Volume = VOLUME | |
390 | NEWSOUND.Pitch = PITCH | |
391 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
392 | NEWSOUND:play() | |
393 | if DOESLOOP == true then | |
394 | NEWSOUND.Looped = true | |
395 | else | |
396 | repeat | |
397 | wait(1) | |
398 | until NEWSOUND.Playing == false | |
399 | NEWSOUND:remove() | |
400 | end | |
401 | end)) | |
402 | return NEWSOUND | |
403 | end | |
404 | function CFrameFromTopBack(at, top, back) | |
405 | local right = top:Cross(back) | |
406 | 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) | |
407 | end | |
408 | function WACKYEFFECT(Table) | |
409 | local TYPE = Table.EffectType or "Sphere" | |
410 | local SIZE = Table.Size or VT(1, 1, 1) | |
411 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
412 | local TRANSPARENCY = Table.Transparency or 0 | |
413 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
414 | local CFRAME = Table.CFrame or Torso.CFrame | |
415 | local MOVEDIRECTION = Table.MoveToPos or nil | |
416 | local ROTATION1 = Table.RotationX or 0 | |
417 | local ROTATION2 = Table.RotationY or 0 | |
418 | local ROTATION3 = Table.RotationZ or 0 | |
419 | local MATERIAL = Table.Material or "Neon" | |
420 | local COLOR = Table.Color or C3(1, 1, 1) | |
421 | local TIME = Table.Time or 45 | |
422 | local SOUNDID = Table.SoundID or nil | |
423 | local SOUNDPITCH = Table.SoundPitch or nil | |
424 | local SOUNDVOLUME = Table.SoundVolume or nil | |
425 | coroutine.resume(coroutine.create(function() | |
426 | local PLAYSSOUND = false | |
427 | local SOUND | |
428 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
429 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
430 | PLAYSSOUND = true | |
431 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
432 | end | |
433 | EFFECT.Color = COLOR | |
434 | local MSH | |
435 | if TYPE == "Sphere" then | |
436 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
437 | elseif TYPE == "Block" or TYPE == "Box" then | |
438 | MSH = IT("BlockMesh", EFFECT) | |
439 | MSH.Scale = SIZE | |
440 | elseif TYPE == "Wave" then | |
441 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
442 | elseif TYPE == "Ring" then | |
443 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
444 | elseif TYPE == "Slash" then | |
445 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
446 | elseif TYPE == "Round Slash" then | |
447 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
448 | elseif TYPE == "Swirl" then | |
449 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
450 | elseif TYPE == "Skull" then | |
451 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
452 | elseif TYPE == "Crystal" then | |
453 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
454 | end | |
455 | if MSH ~= nil then | |
456 | local MOVESPEED | |
457 | if MOVEDIRECTION ~= nil then | |
458 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
459 | end | |
460 | local GROWTH = SIZE - ENDSIZE | |
461 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
462 | if TYPE == "Block" then | |
463 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
464 | else | |
465 | EFFECT.CFrame = CFRAME | |
466 | end | |
467 | for LOOP = 1, TIME + 1 do | |
468 | Swait() | |
469 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
470 | if TYPE == "Wave" then | |
471 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
472 | end | |
473 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
474 | if TYPE == "Block" then | |
475 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
476 | else | |
477 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
478 | end | |
479 | if MOVEDIRECTION ~= nil then | |
480 | local ORI = EFFECT.Orientation | |
481 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
482 | EFFECT.Orientation = ORI | |
483 | end | |
484 | end | |
485 | if PLAYSSOUND == false then | |
486 | EFFECT:remove() | |
487 | else | |
488 | repeat | |
489 | Swait() | |
490 | until EFFECT:FindFirstChildOfClass("Sound") == nil | |
491 | EFFECT:remove() | |
492 | end | |
493 | elseif PLAYSSOUND == false then | |
494 | EFFECT:remove() | |
495 | else | |
496 | repeat | |
497 | Swait() | |
498 | until EFFECT:FindFirstChildOfClass("Sound") == nil | |
499 | EFFECT:remove() | |
500 | end | |
501 | end)) | |
502 | end | |
503 | function MakeForm(PART, TYPE) | |
504 | if TYPE == "Cyl" then | |
505 | local MSH = IT("CylinderMesh", PART) | |
506 | elseif TYPE == "Ball" then | |
507 | local MSH = IT("SpecialMesh", PART) | |
508 | MSH.MeshType = "Sphere" | |
509 | elseif TYPE == "Wedge" then | |
510 | local MSH = IT("SpecialMesh", PART) | |
511 | MSH.MeshType = "Wedge" | |
512 | end | |
513 | end | |
514 | Debris = game:GetService("Debris") | |
515 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
516 | local DIRECTION = CF(StartPos, EndPos).lookVector | |
517 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
518 | end | |
519 | function MakeForm(PART, TYPE) | |
520 | if TYPE == "Cyl" then | |
521 | local MSH = IT("CylinderMesh", PART) | |
522 | elseif TYPE == "Ball" then | |
523 | local MSH = IT("SpecialMesh", PART) | |
524 | MSH.MeshType = "Sphere" | |
525 | elseif TYPE == "Wedge" then | |
526 | local MSH = IT("SpecialMesh", PART) | |
527 | MSH.MeshType = "Wedge" | |
528 | end | |
529 | end | |
530 | Debris = game:GetService("Debris") | |
531 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
532 | local DIRECTION = CF(StartPos, EndPos).lookVector | |
533 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
534 | end | |
535 | function Chatter(Text, Timer) | |
536 | local chat = coroutine.wrap(function() | |
537 | if Character:FindFirstChild("SpeechBoard") ~= nil then | |
538 | Character:FindFirstChild("SpeechBoard"):destroy() | |
539 | end | |
540 | local naeeym2 = IT("BillboardGui", Character) | |
541 | naeeym2.Size = UD2(0, 100, 0, 40) | |
542 | naeeym2.StudsOffset = VT(0, 5, 0) | |
543 | naeeym2.Adornee = Character.Head | |
544 | naeeym2.Name = "SpeechBoard" | |
545 | naeeym2.AlwaysOnTop = true | |
546 | local tecks2 = IT("TextLabel", naeeym2) | |
547 | tecks2.BackgroundTransparency = 1 | |
548 | tecks2.BorderSizePixel = 0 | |
549 | tecks2.Text = "" | |
550 | tecks2.Font = "Legacy" | |
551 | tecks2.TextSize = 15 | |
552 | tecks2.TextStrokeTransparency = 0 | |
553 | tecks2.TextColor3 = C3(1, 1, 1) | |
554 | tecks2.TextStrokeColor3 = C3(0, 0, 0) | |
555 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
556 | local FINISHED = false | |
557 | coroutine.resume(coroutine.create(function() | |
558 | for i = 1, string.len(Text) do | |
559 | if naeeym2.Parent ~= Character then | |
560 | FINISHED = true | |
561 | end | |
562 | CreateSound(418252437, Head, 7, MRANDOM(8, 12) / 15, false) | |
563 | tecks2.Text = string.sub(Text, 1, i) | |
564 | Swait(Timer) | |
565 | end | |
566 | FINISHED = true | |
567 | end)) | |
568 | repeat | |
569 | wait() | |
570 | until FINISHED == true | |
571 | wait(1) | |
572 | naeeym2.Name = "FadingDialogue" | |
573 | for i = 1, 45 do | |
574 | Swait() | |
575 | naeeym2.StudsOffset = naeeym2.StudsOffset + VT(0, (2 - 0.044444444444444446 * i) / 45, 0) | |
576 | tecks2.TextTransparency = tecks2.TextTransparency + 0.022222222222222223 | |
577 | tecks2.TextStrokeTransparency = tecks2.TextTransparency | |
578 | end | |
579 | naeeym2:Destroy() | |
580 | end) | |
581 | chat() | |
582 | end | |
583 | function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH, DOES360) | |
584 | if FLOOR ~= nil then | |
585 | for i = 1, AMOUNT do | |
586 | do | |
587 | local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false) | |
588 | DEBREE.Material = FLOOR.Material | |
589 | DEBREE.Color = FLOOR.Color | |
590 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
591 | if DOES360 == true then | |
592 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH)) | |
593 | else | |
594 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH)) | |
595 | end | |
596 | coroutine.resume(coroutine.create(function() | |
597 | Swait(15) | |
598 | DEBREE.Parent = workspace | |
599 | DEBREE.CanCollide = true | |
600 | Debris:AddItem(DEBREE, SWAIT) | |
601 | end)) | |
602 | end | |
603 | end | |
604 | end | |
605 | end | |
606 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
607 | ||
608 | end | |
609 | Humanoid.Parent = nil | |
610 | RootPart.Size = RootPart.Size * SIZE | |
611 | Torso.Size = Torso.Size * SIZE | |
612 | RightArm.Size = RightArm.Size * SIZE | |
613 | RightLeg.Size = RightLeg.Size * SIZE | |
614 | LeftArm.Size = LeftArm.Size * SIZE | |
615 | LeftLeg.Size = LeftLeg.Size * SIZE | |
616 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
617 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
618 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
619 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
620 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
621 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
622 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
623 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
624 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
625 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
626 | Head.Size = Head.Size * SIZE | |
627 | RootJoint.Parent = RootPart | |
628 | Neck.Parent = Torso | |
629 | RightShoulder.Parent = Torso | |
630 | LeftShoulder.Parent = Torso | |
631 | RightHip.Parent = Torso | |
632 | LeftHip.Parent = Torso | |
633 | ||
634 | local Trap = Instance.new | |
635 | local GUNOFFSET = CF(0, 0.8, -1.3) | |
636 | local BEARTRAP = script.Beartrap | |
637 | BEARTRAP.Parent = nil | |
638 | local GRENADE = script.Grenade | |
639 | GRENADE.Parent = nil | |
640 | GRENADE.Anchored = false | |
641 | local FAKEBEARTRAP, FAKEGUN, HELDTRAP | |
642 | for _, c in pairs(Character:GetChildren()) do | |
643 | if script:FindFirstChild(c.Name) then | |
644 | local Part = script[c.Name] | |
645 | Part.Parent = Character | |
646 | Part:SetPrimaryPartCFrame(c.CFrame) | |
647 | c.Transparency = 1 | |
648 | for _, e in pairs(Part:GetChildren()) do | |
649 | if e:IsA("BasePart") and e.Name ~= "Base" then | |
650 | e.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
651 | e.Anchored = false | |
652 | weldBetween(c, e) | |
653 | e.CanCollide = false | |
654 | e.Locked = true | |
655 | if e.Name == "Beartrap" then | |
656 | FAKEBEARTRAP = e | |
657 | elseif e.Name == "Gun" then | |
658 | FAKEGUN = e | |
659 | elseif e.Name == "HeldBeartrap" then | |
660 | HELDTRAP = e | |
661 | end | |
662 | end | |
663 | end | |
664 | end | |
665 | end | |
666 | ||
667 | local TAIL = {} | |
668 | ||
669 | local BODY = {} | |
670 | for _, c in pairs(Character:GetDescendants()) do | |
671 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
672 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
673 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
674 | end | |
675 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
676 | elseif c:IsA("JointInstance") then | |
677 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
678 | end | |
679 | end | |
680 | for e = 1, #BODY do | |
681 | if BODY[e] ~= nil then | |
682 | local STUFF = BODY[e] | |
683 | local PART = STUFF[1] | |
684 | local PARENT = STUFF[2] | |
685 | local MATERIAL = STUFF[3] | |
686 | local COLOR = STUFF[4] | |
687 | local TRANSPARENCY = STUFF[5] | |
688 | if PART.ClassName == "Part" and PART ~= RootPart then | |
689 | PART.Material = MATERIAL | |
690 | PART.Color = COLOR | |
691 | PART.Transparency = TRANSPARENCY | |
692 | end | |
693 | PART.AncestryChanged:Connect(function() | |
694 | PART.Parent = PARENT | |
695 | end) | |
696 | end | |
697 | end | |
698 | function refit() | |
699 | Character.Parent = workspace | |
700 | for e = 1, #BODY do | |
701 | if BODY[e] ~= nil then | |
702 | local STUFF = BODY[e] | |
703 | local PART = STUFF[1] | |
704 | local PARENT = STUFF[2] | |
705 | local MATERIAL = STUFF[3] | |
706 | local COLOR = STUFF[4] | |
707 | local TRANSPARENCY = STUFF[5] | |
708 | if PART:IsA("BasePart") and PART ~= RootPart then | |
709 | PART.Material = MATERIAL | |
710 | PART.Color = COLOR | |
711 | PART.Transparency = TRANSPARENCY | |
712 | end | |
713 | if PART.Parent ~= PARENT then | |
714 | Humanoid:remove() | |
715 | PART.Parent = PARENT | |
716 | Humanoid = IT("Humanoid",Character) | |
717 | end | |
718 | end | |
719 | end | |
720 | end | |
721 | ||
722 | Humanoid.Died:connect(function() | |
723 | refit() | |
724 | end) | |
725 | ||
726 | local SKILLTEXTCOLOR = C3(1, 1, 1) | |
727 | local SKILLFONT = "Legacy" | |
728 | local SKILLTEXTSIZE = 3 | |
729 | local ATTACKS = { | |
730 | "Mouse - Fury", | |
731 | "F - Equip Gun", | |
732 | "C - Beartrap", | |
733 | "V - Hand Grenade" | |
734 | } | |
735 | for i = 1, #ATTACKS do | |
736 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97 - 0.02 * i, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill Frame") | |
737 | local SKILLTEXT = CreateLabel(SKILLFRAME, "[" .. ATTACKS[i] .. "]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
738 | SKILLTEXT.TextXAlignment = "Right" | |
739 | end | |
740 | Humanoid.Parent = Character | |
741 | function ApplyDamage(Humanoid, Damage) | |
742 | Damage = Damage * DAMAGEMULTIPLIER | |
743 | if Humanoid.Health < 2000 then | |
744 | if Humanoid.Health - Damage > 0 then | |
745 | Humanoid.Health = Humanoid.Health - Damage | |
746 | else | |
747 | Humanoid.Parent:BreakJoints() | |
748 | end | |
749 | else | |
750 | Humanoid.Parent:BreakJoints() | |
751 | end | |
752 | end | |
753 | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL) | |
754 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
755 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
756 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
757 | if HUM then | |
758 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
759 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
760 | if INSTAKILL == true then | |
761 | CHILD:BreakJoints() | |
762 | else | |
763 | local DMG = MRANDOM(MINDMG, MAXDMG) | |
764 | ApplyDamage(HUM, DMG) | |
765 | end | |
766 | if FLING > 0 then | |
767 | for _, c in pairs(CHILD:GetChildren()) do | |
768 | if c:IsA("BasePart") then | |
769 | local bv = Instance.new("BodyVelocity") | |
770 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
771 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
772 | bv.Parent = c | |
773 | Debris:AddItem(bv, 0.05) | |
774 | end | |
775 | end | |
776 | end | |
777 | end | |
778 | end | |
779 | end | |
780 | end | |
781 | end | |
782 | function Fury() | |
783 | ATTACK = true | |
784 | Rooted = false | |
785 | if EQUIPPED == false then | |
786 | Rooted = true | |
787 | Chatter("I'll crush you!", 0) | |
788 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
789 | Swait() | |
790 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0.01 * SIZE, -0.01 * SIZE) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
791 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
792 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
793 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
794 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, 0.2 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(5), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
795 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
796 | end | |
797 | local TOUCH = RightLeg.Touched:Connect(function(HIT) | |
798 | if HIT.Anchored == false and (HIT.Parent:FindFirstChildOfClass("Humanoid") or HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")) then | |
799 | HIT:BreakJoints() | |
800 | end | |
801 | end) | |
802 | for i = 0, 0.1, 0.1 / Animation_Speed do | |
803 | Swait() | |
804 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
805 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
806 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
807 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
808 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed) | |
809 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
810 | end | |
811 | local HITFLOOR, HITPOS = Raycast(RightLeg.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 2 * SIZE, Character) | |
812 | if HITFLOOR then | |
813 | for i = 1, 5 do | |
814 | WACKYEFFECT({ | |
815 | Time = 25, | |
816 | EffectType = "Wave", | |
817 | Size = VT(5, 0.5, 5), | |
818 | Size2 = VT(15 + i * 3, 0, 15 + i * 3), | |
819 | Transparency = 0.7, | |
820 | Transparency2 = 1, | |
821 | CFrame = CF(RightLeg.CFrame * CF(0, -1.05 * SIZE, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
822 | MoveToPos = nil, | |
823 | RotationX = 0, | |
824 | RotationY = 0, | |
825 | RotationZ = 0, | |
826 | Material = "Neon", | |
827 | Color = C3(1, 1, 1), | |
828 | SoundID = nil, | |
829 | SoundPitch = nil, | |
830 | SoundVolume = nil | |
831 | }) | |
832 | end | |
833 | SHAKECAM(HITPOS, 35, 7, 12) | |
834 | ApplyAoE(HITPOS, 25, 35, 45, 45, false) | |
835 | CreateSound(765590102, RightLeg, 6, 1, false) | |
836 | CreateFlyingDebree(HITFLOOR, CF(HITPOS), 10, VT(2, 2, 2), 5, 75, false) | |
837 | end | |
838 | TOUCH:Disconnect() | |
839 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
840 | Swait() | |
841 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
842 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
843 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
844 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
845 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed) | |
846 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
847 | end | |
848 | else | |
849 | do | |
850 | local GYRO = IT("BodyGyro", RootPart) | |
851 | GYRO.D = 2 | |
852 | GYRO.P = 20000 | |
853 | GYRO.MaxTorque = VT(0, 4000000, 0) | |
854 | coroutine.resume(coroutine.create(function() | |
855 | repeat | |
856 | Swait() | |
857 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
858 | until ATTACK == false | |
859 | GYRO:Remove() | |
860 | end)) | |
861 | local FIRING = true | |
862 | local SHOOTING = false | |
863 | local TIMER = 70 | |
864 | CreateSound(1498950813, HELDGUN, 6, 1, false) | |
865 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
866 | Swait() | |
867 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
868 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
869 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
870 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
871 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
872 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
873 | end | |
874 | local MOUSE = Mouse.Button1Down:connect(function(NEWKEY) | |
875 | if SHOOTING == false then | |
876 | HOLD = true | |
877 | repeat | |
878 | SHOOTING = true | |
879 | local GUNPOS = HELDGUN.CFrame * GUNOFFSET.p | |
880 | local HIT, POS, NORMAL = CastProperRay(GUNPOS, Mouse.Hit.p, 1000, Character) | |
881 | local DISTANCE = (POS - GUNPOS).Magnitude | |
882 | if HIT then | |
883 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
884 | if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then | |
885 | HIT.CFrame = HIT.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
886 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], HIT, 10, 1, false) | |
887 | ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"), 99) | |
888 | CreateFlyingDebree(HIT, CF(POS), 7, VT(0.1, 0.1, 0.1), 5, 35, true) | |
889 | end | |
890 | elseif HIT.Anchored == true then | |
891 | CreateFlyingDebree(HIT, CF(POS), 7, VT(0.2, 0.2, 0.2), 5, 35, true) | |
892 | end | |
893 | end | |
894 | SHAKECAM(GUNPOS, 8, 5, 3) | |
895 | SHAKECAM(POS, 10, 6, 6) | |
896 | WACKYEFFECT({ | |
897 | Time = 6, | |
898 | EffectType = "Block", | |
899 | Size = VT(2, 2, 2), | |
900 | Size2 = VT(4, 4, 4), | |
901 | Transparency = 0, | |
902 | Transparency2 = 1, | |
903 | CFrame = CF(GUNPOS), | |
904 | MoveToPos = nil, | |
905 | RotationX = 0, | |
906 | RotationY = 0, | |
907 | RotationZ = 0, | |
908 | Material = "Neon", | |
909 | Color = C3(1, 1, 0), | |
910 | SoundID = 213603013, | |
911 | SoundPitch = 0.9, | |
912 | SoundVolume = 10 | |
913 | }) | |
914 | WACKYEFFECT({ | |
915 | Time = 6, | |
916 | EffectType = "Box", | |
917 | Size = VT(1.6, 1.6, DISTANCE), | |
918 | Size2 = VT(0, 0, DISTANCE), | |
919 | Transparency = 0, | |
920 | Transparency2 = 1, | |
921 | CFrame = CF(GUNPOS, POS) * CF(0, 0, -DISTANCE / 2), | |
922 | MoveToPos = nil, | |
923 | RotationX = 0, | |
924 | RotationY = 0, | |
925 | RotationZ = 0, | |
926 | Material = "Neon", | |
927 | Color = C3(1, 1, 0), | |
928 | SoundID = nil, | |
929 | SoundPitch = nil, | |
930 | SoundVolume = nil | |
931 | }) | |
932 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
933 | Swait() | |
934 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
935 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
936 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(100), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
937 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
938 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
939 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
940 | end | |
941 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
942 | Swait() | |
943 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
944 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
945 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
946 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
947 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
948 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
949 | end | |
950 | until HOLD == false | |
951 | SHOOTING = false | |
952 | end | |
953 | end) | |
954 | repeat | |
955 | Swait() | |
956 | if SHOOTING == false then | |
957 | TIMER = TIMER - 1 | |
958 | if TIMER <= 0 then | |
959 | FIRING = false | |
960 | end | |
961 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
962 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
963 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
964 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
965 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
966 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
967 | end | |
968 | until FIRING == false and SHOOTING == false | |
969 | MOUSE:Disconnect() | |
970 | end | |
971 | end | |
972 | ATTACK = false | |
973 | Rooted = false | |
974 | end | |
975 | local tookout = false | |
976 | function EquipGun() | |
977 | ATTACK = true | |
978 | --EQUIPPED = true | |
979 | Rooted = false | |
980 | if EQUIPPED == false then | |
981 | Chatter("Let's play dirty.", 0) | |
982 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
983 | Swait() | |
984 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
985 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
986 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.4 * SIZE, 0.35 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(15), RAD(0), RAD(-75)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
987 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0.2 * SIZE) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
988 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
989 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
990 | end | |
991 | FAKEGUN.Transparency = 1 | |
992 | HELDGUN = FAKEGUN:Clone() | |
993 | HELDGUN.Parent = Character | |
994 | FAKEGUN.Parent = nil | |
995 | GUNWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HELDGUN, CF(0.3 * SIZE, -1.5 * SIZE, 0.1 * SIZE) * ANGLES(RAD(90), RAD(0), RAD(-90)), CF(0, 0, 0)) | |
996 | FAKEGUN.Transparency = 1 | |
997 | HELDGUN.Transparency = 0 | |
998 | CreateSound(1498950813, HELDGUN, 6, 1, false) | |
999 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1000 | Swait() | |
1001 | FAKEGUN.Transparency = 1 | |
1002 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1003 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1004 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.5 * SIZE, 0.45 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(-35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1005 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.3 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1006 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1007 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1008 | end | |
1009 | EQUIPPED = true | |
1010 | FAKEGUN.Transparency = 1 | |
1011 | else | |
1012 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1013 | Swait() | |
1014 | GUNWELD.C1 = Clerp(GUNWELD.C1, CF(0, 0.5, 0) * ANGLES(RAD(65), RAD(-45), RAD(0)), 1 / Animation_Speed) | |
1015 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1016 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1017 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.7 * SIZE, 0 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.1 * SIZE) * ANGLES(RAD(35), RAD(0), RAD(-75)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1018 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0.3 * SIZE) * ANGLES(RAD(-25), RAD(15), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1019 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1020 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1021 | end | |
1022 | FAKEGUN.Transparency = 0 | |
1023 | FAKEGUN.Parent = Character | |
1024 | HELDGUN:remove() | |
1025 | HELDGUN = nil | |
1026 | EQUIPPED = true | |
1027 | end | |
1028 | --EQUIPPED = false | |
1029 | ATTACK = false | |
1030 | Rooted = false | |
1031 | end | |
1032 | function BearTrap() | |
1033 | ATTACK = true | |
1034 | Rooted = false | |
1035 | coroutine.resume(coroutine.create(function() | |
1036 | repeat | |
1037 | Swait() | |
1038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-20), RAD(-25), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1039 | until ATTACK == false | |
1040 | end)) | |
1041 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1042 | Swait() | |
1043 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1044 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1045 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.1 * SIZE, 0.25 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(30), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1046 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1047 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1048 | end | |
1049 | local GYRO = IT("BodyGyro", RootPart) | |
1050 | GYRO.D = 2 | |
1051 | GYRO.P = 20000 | |
1052 | GYRO.MaxTorque = VT(0, 4000000, 0) | |
1053 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
1054 | coroutine.resume(coroutine.create(function() | |
1055 | repeat | |
1056 | Swait() | |
1057 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
1058 | until ATTACK == false | |
1059 | GYRO:Remove() | |
1060 | end)) | |
1061 | FAKEBEARTRAP.Transparency = 1 | |
1062 | HELDTRAP.Transparency = 0 | |
1063 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1064 | Swait() | |
1065 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1066 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1067 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1068 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1069 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1070 | end | |
1071 | local TRAP = BEARTRAP:Clone() | |
1072 | TRAP.Parent = Effects | |
1073 | coroutine.resume(coroutine.create(function() | |
1074 | TRAP:SetPrimaryPartCFrame(HELDTRAP.CFrame) | |
1075 | local BASE = TRAP.PrimaryPart | |
1076 | local OPEN = TRAP.Open | |
1077 | local CLOSED = TRAP.Closed | |
1078 | CreateSound(147722227, BASE, 6, 1, false) | |
1079 | local DISTANCE = (BASE.Position - Mouse.Hit.p).Magnitude | |
1080 | BASE.Velocity = CF(BASE.Position, Mouse.Hit.p).lookVector * (DISTANCE * 2) | |
1081 | wait(0.7) | |
1082 | BASE.Velocity = VT(0, 0, 0) | |
1083 | local ISCLOSED = false | |
1084 | for i = 1, 15 do | |
1085 | Swait() | |
1086 | BASE.CFrame = Clerp(BASE.CFrame, CF(BASE.Position + VT(0, 1, 0)), 0.4) | |
1087 | end | |
1088 | TOUCH = OPEN.Touched:Connect(function(HIT) | |
1089 | if HIT.Anchored == false and ISCLOSED == false and HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1090 | TOUCH:Disconnect() | |
1091 | ISCLOSED = true | |
1092 | OPEN.Anchored = true | |
1093 | OPEN.Transparency = 1 | |
1094 | CLOSED.Transparency = 0 | |
1095 | OPEN.CanCollide = false | |
1096 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], HIT, 10, 1, false) | |
1097 | ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"), 60) | |
1098 | weldBetween(OPEN, HIT) | |
1099 | CreateSound(54061314, OPEN, 6, 1, false) | |
1100 | end | |
1101 | end) | |
1102 | wait(15) | |
1103 | TOUCH:Disconnect() | |
1104 | for i = 1, 45 do | |
1105 | Swait() | |
1106 | for _, e in pairs(TRAP:GetChildren()) do | |
1107 | if e:IsA("BasePart") then | |
1108 | e.Transparency = e.Transparency + 0.022222222222222223 | |
1109 | end | |
1110 | end | |
1111 | end | |
1112 | TRAP:Remove() | |
1113 | end)) | |
1114 | HELDTRAP.Transparency = 1 | |
1115 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1116 | Swait() | |
1117 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1118 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(5)), 1 / Animation_Speed) | |
1119 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.2 * SIZE) * ANGLES(RAD(120), RAD(0), RAD(10)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1120 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1121 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1122 | end | |
1123 | FAKEBEARTRAP.Transparency = 0 | |
1124 | ATTACK = false | |
1125 | Rooted = false | |
1126 | end | |
1127 | function HandGrenade() | |
1128 | ATTACK = true | |
1129 | Rooted = false | |
1130 | Chatter("How about a little fire?", 0) | |
1131 | coroutine.resume(coroutine.create(function() | |
1132 | repeat | |
1133 | Swait() | |
1134 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.35 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0.2 * SIZE) * ANGLES(RAD(-20), RAD(-25), RAD(-3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1135 | until ATTACK == false | |
1136 | end)) | |
1137 | local GYRO = IT("BodyGyro", RootPart) | |
1138 | GYRO.D = 2 | |
1139 | GYRO.P = 20000 | |
1140 | GYRO.MaxTorque = VT(0, 4000000, 0) | |
1141 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
1142 | coroutine.resume(coroutine.create(function() | |
1143 | repeat | |
1144 | Swait() | |
1145 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
1146 | until ATTACK == false | |
1147 | GYRO:Remove() | |
1148 | end)) | |
1149 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1150 | Swait() | |
1151 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1152 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1153 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-5), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1154 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1155 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1156 | end | |
1157 | local NADE = GRENADE:Clone() | |
1158 | NADE.CFrame = LeftArm.CFrame * CF(0, -1.2 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1159 | NADE.Parent = Effects | |
1160 | CreateSound(326088041, NADE, 7, 1, false) | |
1161 | local WELD = weldBetween(LeftArm, NADE) | |
1162 | for i = 0, 0.7, 0.1 / Animation_Speed do | |
1163 | Swait() | |
1164 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1165 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0 - 5 * COS(SINE / 24)), RAD(-5), RAD(-15)), 1 / Animation_Speed) | |
1166 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(150), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1167 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1168 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1169 | end | |
1170 | coroutine.resume(coroutine.create(function() | |
1171 | WELD:remove() | |
1172 | local DISTANCE = (NADE.Position - Mouse.Hit.p).Magnitude | |
1173 | if DISTANCE > 150 then | |
1174 | DISTANCE = 150 | |
1175 | end | |
1176 | NADE.Velocity = CF(NADE.Position - VT(0, 5, 0), Mouse.Hit.p).lookVector * (DISTANCE * 2) | |
1177 | wait(0.2) | |
1178 | TOUCH = NADE.Touched:Connect(function() | |
1179 | TOUCH:Disconnect() | |
1180 | wait(0.5) | |
1181 | NADE.Anchored = true | |
1182 | NADE.Transparency = 1 | |
1183 | NADE.CanCollide = false | |
1184 | local COLORS = { | |
1185 | C3(0.8862745098039215, 0.6078431372549019, 0.25098039215686274), | |
1186 | C3(1, 0, 0), | |
1187 | C3(0.9607843137254902, 0.803921568627451, 0.18823529411764706) | |
1188 | } | |
1189 | WACKYEFFECT({ | |
1190 | Time = 66, | |
1191 | EffectType = "Sphere", | |
1192 | Size = VT(45, 45, 45), | |
1193 | Size2 = VT(450, 450, 450), | |
1194 | Transparency = 0.99, | |
1195 | Transparency2 = 1, | |
1196 | CFrame = CF(NADE.Position), | |
1197 | MoveToPos = nil, | |
1198 | RotationX = 0, | |
1199 | RotationY = 0, | |
1200 | RotationZ = 0, | |
1201 | Material = "Neon", | |
1202 | Color = C3(1, 1, 1), | |
1203 | SoundID = nil, | |
1204 | SoundPitch = nil, | |
1205 | SoundVolume = nil | |
1206 | }) | |
1207 | for i = 1, 45 do | |
1208 | WACKYEFFECT({ | |
1209 | Time = MRANDOM(10, 60), | |
1210 | EffectType = "Sphere", | |
1211 | Size = VT(45, 45, 45) * MRANDOM(5, 12) / 10, | |
1212 | Size2 = VT(65, 65, 65) * MRANDOM(5, 22) / 10, | |
1213 | Transparency = 0, | |
1214 | Transparency2 = 1, | |
1215 | CFrame = CF(NADE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 15, 0), | |
1216 | MoveToPos = nil, | |
1217 | RotationX = 0, | |
1218 | RotationY = 0, | |
1219 | RotationZ = 0, | |
1220 | Material = "Neon", | |
1221 | Color = COLORS[MRANDOM(1, #COLORS)], | |
1222 | SoundID = nil, | |
1223 | SoundPitch = nil, | |
1224 | SoundVolume = nil | |
1225 | }) | |
1226 | end | |
1227 | ApplyAoE(NADE.Position, 75, 35, 80, 145, false) | |
1228 | SHAKECAM(NADE.Position, 160, 12, 25) | |
1229 | CreateSound(174580476, NADE, 10, 1, false) | |
1230 | CreateSound(165970126, NADE, 6, 1, false) | |
1231 | Debris:AddItem(NADE, 10) | |
1232 | end) | |
1233 | end)) | |
1234 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1235 | Swait() | |
1236 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1237 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0 - 5 * COS(SINE / 24)), RAD(-5), RAD(15)), 1 / Animation_Speed) | |
1238 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.2 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(10)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1239 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1240 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1241 | end | |
1242 | ATTACK = false | |
1243 | Rooted = false | |
1244 | end | |
1245 | function AttackTemplate() | |
1246 | ATTACK = true | |
1247 | Rooted = false | |
1248 | for i = 0, 1, 0.1 / Animation_Speed do | |
1249 | Swait() | |
1250 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1252 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1253 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1254 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1255 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1256 | end | |
1257 | ATTACK = false | |
1258 | Rooted = false | |
1259 | end | |
1260 | function MouseDown(Mouse) | |
1261 | if ATTACK == false then | |
1262 | Fury() | |
1263 | end | |
1264 | end | |
1265 | function MouseUp(Mouse) | |
1266 | HOLD = false | |
1267 | end | |
1268 | function KeyDown(Key) | |
1269 | KEYHOLD = true | |
1270 | if (VALUE1 == false and ATTACK == false) or EQUIPPED == true then | |
1271 | if Key == "f" then | |
1272 | if EQUIPPED == false then | |
1273 | EquipGun() | |
1274 | elseif EQUIPPED == true then | |
1275 | EQUIPPED = false | |
1276 | end | |
1277 | end | |
1278 | end | |
1279 | ||
1280 | if ATTACK == false then | |
1281 | if Key == "c" and ATTACK == false then | |
1282 | BearTrap() | |
1283 | end | |
1284 | if Key == "v" and ATTACK == false then | |
1285 | HandGrenade() | |
1286 | end | |
1287 | if Key ~= "x" or ATTACK == false then | |
1288 | end | |
1289 | end | |
1290 | end | |
1291 | function KeyUp(Key) | |
1292 | KEYHOLD = false | |
1293 | end | |
1294 | Mouse.Button1Down:connect(function(NEWKEY) | |
1295 | MouseDown(NEWKEY) | |
1296 | end) | |
1297 | Mouse.Button1Up:connect(function(NEWKEY) | |
1298 | MouseUp(NEWKEY) | |
1299 | end) | |
1300 | Mouse.KeyDown:connect(function(NEWKEY) | |
1301 | KeyDown(NEWKEY) | |
1302 | end) | |
1303 | Mouse.KeyUp:connect(function(NEWKEY) | |
1304 | KeyUp(NEWKEY) | |
1305 | end) | |
1306 | function unanchor() | |
1307 | for _, c in pairs(Character:GetChildren()) do | |
1308 | if c:IsA("BasePart") and c ~= RootPart then | |
1309 | c.Anchored = false | |
1310 | end | |
1311 | end | |
1312 | if UNANCHOR == true then | |
1313 | RootPart.Anchored = false | |
1314 | else | |
1315 | RootPart.Anchored = true | |
1316 | end | |
1317 | end | |
1318 | Humanoid.Changed:connect(function(Jump) | |
1319 | if Jump == "Jump" and Disable_Jump == true then | |
1320 | Humanoid.Jump = false | |
1321 | end | |
1322 | end) | |
1323 | while true do | |
1324 | Swait() | |
1325 | script.Parent = WEAPONGUI | |
1326 | ANIMATE.Parent = nil | |
1327 | ANIMATOR.Parent = nil | |
1328 | for _, v in next, Humanoid:GetPlayingAnimationTracks() do | |
1329 | v:Stop() | |
1330 | end | |
1331 | SINE = SINE + CHANGE | |
1332 | Humanoid.HipHeight = 0.4 | |
1333 | Humanoid.JumpPower = 150 | |
1334 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1335 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1336 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * SIZE, Character) | |
1337 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
1338 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1339 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1340 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5 * SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1341 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * SIZE, 0.885 * SIZE - 0.125 * SIZE * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) | |
1342 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * SIZE, 0.885 * SIZE + 0.125 * SIZE * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) | |
1343 | elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then | |
1344 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1345 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5 * SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1346 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * SIZE, 1 * SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1347 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * SIZE, 1 * SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1348 | end | |
1349 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1350 | ANIM = "Jump" | |
1351 | if ATTACK == false then | |
1352 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1353 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1354 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1355 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1356 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0.3 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1357 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0.3 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
1358 | end | |
1359 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1360 | ANIM = "Fall" | |
1361 | if ATTACK == false then | |
1362 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1363 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1364 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-10), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1365 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-10), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1366 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.8 * SIZE, -0.3 * SIZE) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
1367 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
1368 | end | |
1369 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1370 | ANIM = "Idle" | |
1371 | if ATTACK == false then | |
1372 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * SIN(SINE / 24), 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1373 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(10 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1374 | if EQUIPPED == false then | |
1375 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.55 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.75 * SIZE) * ANGLES(RAD(90), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1376 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.25 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1377 | FAKEGUN.Transparency = 0 | |
1378 | else | |
1379 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1380 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.5 * SIZE, -0.8 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(50)) * CF(0, 0.1 * SIZE, 0) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1381 | FAKEGUN.Transparency = 1 | |
1382 | end | |
1383 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE + 0.05 * SIN(SINE / 24), -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1384 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE + 0.05 * SIN(SINE / 24), -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1385 | end | |
1386 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1387 | ANIM = "Walk" | |
1388 | if ATTACK == false then | |
1389 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, -0.1 * SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1390 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1391 | if EQUIPPED == false then | |
1392 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.55 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.75 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1393 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.25 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.5 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1394 | else | |
1395 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.5 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.5 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1396 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.5 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.8 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(50)) * CF(0, 0.1 * SIZE, 0) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1397 | end | |
1398 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1399 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1400 | end | |
1401 | end | |
1402 | for E = 1, #TAIL do | |
1403 | TAIL[E].C1 = Clerp(TAIL[E].C1, CF(0, 0, 0) * ANGLES(RAD(-2 * COS(SINE / 48) + 1 * SIN(SINE / 12)), RAD(0), RAD(1 * SIN(SINE / 24))), 1 / Animation_Speed) | |
1404 | end | |
1405 | unanchor() | |
1406 | refit() | |
1407 | Humanoid.MaxHealth = 1000 | |
1408 | Humanoid.Health = 1000 | |
1409 | if Rooted == false then | |
1410 | Disable_Jump = false | |
1411 | Humanoid.WalkSpeed = Speed | |
1412 | elseif Rooted == true then | |
1413 | Disable_Jump = true | |
1414 | Humanoid.WalkSpeed = 0 | |
1415 | end | |
1416 | for _, c in pairs(Character:GetChildren()) do | |
1417 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1418 | c.Material = "Granite" | |
1419 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1420 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1421 | end | |
1422 | c.Color = C3(0.3137254901960784, 0.2627450980392157, 0.2627450980392157) | |
1423 | if c == Head and c:FindFirstChild("face") then | |
1424 | c.face:remove() | |
1425 | end | |
1426 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1427 | c:remove() | |
1428 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1429 | c:remove() | |
1430 | end | |
1431 | end | |
1432 | Humanoid.DisplayDistanceType = "None" | |
1433 | Humanoid.Name = "NONHUM" | |
1434 | if sick.Parent ~= Character then | |
1435 | sick = IT("Sound", Character) | |
1436 | end | |
1437 | sick.SoundId = "rbxassetid://737063244" | |
1438 | sick.Looped = true | |
1439 | sick.Pitch = 0.9 | |
1440 | sick.Volume = 3 | |
1441 | sick.Playing = true | |
1442 | end | |
1443 | ||
1444 | --[[The people think we are nothing | |
1445 | They all call us cowardly, weak | |
1446 | But, you see, here’s the thing | |
1447 | You don’t know what we seek | |
1448 | ||
1449 | We’ve seen much more hell | |
1450 | Than you have fear, or death | |
1451 | All of those soldiers that fell | |
1452 | That’ve released their last breath | |
1453 | ||
1454 | Those people, they all know | |
1455 | What this world has become | |
1456 | Even as they let things go | |
1457 | To fight anything that comes | |
1458 | ||
1459 | Now you see, they were heroes | |
1460 | Not one of them was a traitor | |
1461 | And the voices that still echo | |
1462 | Are those of the liberators | |
1463 | ||
1464 | - | -PiterMosskva_TV]] |
1464 | + | -zXzGamePROzXz]] |