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