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