SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local plr = game.Players.LocalPlayer |
| 1 | + | --//====================================================\\-- |
| 2 | - | local char = plr.Character |
| 2 | + | --|| CREATED BY SHACKLUSTER |
| 3 | - | local mouse = plr:GetMouse() |
| 3 | + | --\\====================================================//-- |
| 4 | - | local torso = char.Torso |
| 4 | + | |
| 5 | - | local head = char.Head |
| 5 | + | wait(0.2) |
| 6 | - | local ra = char["Right Arm"] |
| 6 | + | |
| 7 | - | local la = char["Left Arm"] |
| 7 | + | Player = game:GetService("Players").LocalPlayer
|
| 8 | - | local rl = char["Right Leg"] |
| 8 | + | PlayerGui = Player.PlayerGui |
| 9 | - | local ll = char["Left Leg"] |
| 9 | + | Cam = workspace.CurrentCamera |
| 10 | - | local human = char["Humanoid"] |
| 10 | + | Backpack = Player.Backpack |
| 11 | - | local camera = workspace.CurrentCamera |
| 11 | + | Character = Player.Character |
| 12 | - | local rs = torso:findFirstChild("Right Shoulder")
|
| 12 | + | Humanoid = Character.Humanoid |
| 13 | - | local ls = torso:findFirstChild("Left Shoulder")
|
| 13 | + | Mouse = Player:GetMouse() |
| 14 | - | local neck = torso:findFirstChild("Neck")
|
| 14 | + | RootPart = Character["HumanoidRootPart"] |
| 15 | - | local NO_moar_shooting = false |
| 15 | + | Torso = Character["Torso"] |
| 16 | - | local RunService = game:service'RunService' |
| 16 | + | Head = Character["Head"] |
| 17 | - | local ammo = 8 |
| 17 | + | RightArm = Character["Right Arm"] |
| 18 | LeftArm = Character["Left Arm"] | |
| 19 | RightLeg = Character["Right Leg"] | |
| 20 | - | local sound = Instance.new("Sound", head)
|
| 20 | + | LeftLeg = Character["Left Leg"] |
| 21 | - | sound.SoundId = "http://roblox.com/asset/?id=10209842" |
| 21 | + | RootJoint = RootPart["RootJoint"] |
| 22 | - | sound.Volume = 1 |
| 22 | + | Neck = Torso["Neck"] |
| 23 | - | local reloads = Instance.new("Sound", head)
|
| 23 | + | RightShoulder = Torso["Right Shoulder"] |
| 24 | - | reloads.SoundId = "http://roblox.com/asset/?id=10209636" |
| 24 | + | LeftShoulder = Torso["Left Shoulder"] |
| 25 | - | reloads.Volume = 1 |
| 25 | + | RightHip = Torso["Right Hip"] |
| 26 | - | local activate = Instance.new("Sound", head)
|
| 26 | + | LeftHip = Torso["Left Hip"] |
| 27 | - | activate.SoundId = "http://roblox.com/asset/?id=10209894" |
| 27 | + | Player:ClearCharacterAppearance() |
| 28 | - | activate.Volume = 1 |
| 28 | + | |
| 29 | IT = Instance.new | |
| 30 | CF = CFrame.new | |
| 31 | - | local equipped = false |
| 31 | + | VT = Vector3.new |
| 32 | RAD = math.rad | |
| 33 | - | local debounce = false |
| 33 | + | C3 = Color3.new |
| 34 | UD2 = UDim2.new | |
| 35 | - | local face = head.face |
| 35 | + | BRICKC = BrickColor.new |
| 36 | ANGLES = CFrame.Angles | |
| 37 | EULER = CFrame.fromEulerAnglesXYZ | |
| 38 | - | release = Instance.new("Part", nil)
|
| 38 | + | COS = math.cos |
| 39 | - | release.FormFactor = "Custom" |
| 39 | + | ACOS = math.acos |
| 40 | - | release.Size = Vector3.new(0.3, 1.7, 0.3) |
| 40 | + | SIN = math.sin |
| 41 | - | release.BrickColor = BrickColor.Black() |
| 41 | + | ASIN = math.asin |
| 42 | - | local weld = Instance.new("Weld", release)
|
| 42 | + | ABS = math.abs |
| 43 | - | weld.Part0 = release |
| 43 | + | MRANDOM = math.random |
| 44 | - | release.Locked = true |
| 44 | + | FLOOR = math.floor |
| 45 | - | weld.Part1 = head |
| 45 | + | |
| 46 | - | weld.C0 = CFrame.new(0, -0.5, -0.2) * CFrame.Angles(math.pi/2, 0, 0) |
| 46 | + | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
| 47 | - | local mesh = Instance.new("CylinderMesh", release)
|
| 47 | + | local NEWMESH = IT(MESH) |
| 48 | if MESH == "SpecialMesh" then | |
| 49 | - | release2 = Instance.new("Part", nil)
|
| 49 | + | NEWMESH.MeshType = MESHTYPE |
| 50 | - | release2.FormFactor = "Custom" |
| 50 | + | if MESHID ~= "nil" and MESHID ~= "" then |
| 51 | - | release2.Size = Vector3.new(0.2, 1.4, 0.2) |
| 51 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
| 52 | - | release2.BrickColor = BrickColor.Black() |
| 52 | + | |
| 53 | - | release2.Locked = true |
| 53 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
| 54 | - | local weld2 = Instance.new("Weld", release2)
|
| 54 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
| 55 | - | weld2.Part0 = release2 |
| 55 | + | |
| 56 | - | weld2.Part1 = head |
| 56 | + | end |
| 57 | - | weld2.C0 = CFrame.new(0, -0.5, 0) * CFrame.Angles(math.pi/2, 0, 0) |
| 57 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
| 58 | - | local mesh2 = Instance.new("CylinderMesh", release2)
|
| 58 | + | NEWMESH.Scale = SCALE |
| 59 | NEWMESH.Parent = PARENT | |
| 60 | - | headext = Instance.new("Part", nil)
|
| 60 | + | return NEWMESH |
| 61 | - | headext.Position = torso.Position |
| 61 | + | |
| 62 | - | headext.FormFactor = "Custom" |
| 62 | + | |
| 63 | - | headext.Transparency = 1 |
| 63 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
| 64 | - | headext:BreakJoints() |
| 64 | + | local NEWPART = IT("Part")
|
| 65 | - | headext.Size = Vector3.new(2, 1, 1) |
| 65 | + | NEWPART.formFactor = FORMFACTOR |
| 66 | - | headextw = Instance.new("Weld", headext)
|
| 66 | + | NEWPART.Reflectance = REFLECTANCE |
| 67 | - | headextw.C0 = CFrame.new(Vector3.new(0, 1.5, 0)) |
| 67 | + | NEWPART.Transparency = TRANSPARENCY |
| 68 | - | headextw.Part0 = torso |
| 68 | + | NEWPART.CanCollide = false |
| 69 | - | headextw.Part1 = headext |
| 69 | + | NEWPART.Locked = true |
| 70 | - | headextw.C1 = CFrame.new() |
| 70 | + | NEWPART.Anchored = true |
| 71 | - | headweld = Instance.new("Weld", headext)
|
| 71 | + | if ANCHOR == false then |
| 72 | - | game:service("RunService").Stepped:connect(function()
|
| 72 | + | NEWPART.Anchored = false |
| 73 | - | headweld.C0 = CFrame.new(Vector3.new(0,0,0), torso.CFrame:pointToObjectSpace(mouse.Hit.p)) * CFrame.Angles(0, 0, 0) |
| 73 | + | end |
| 74 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 75 | - | headweld.Part0 = headext |
| 75 | + | NEWPART.Name = NAME |
| 76 | - | headweld.C1 = CFrame.new() |
| 76 | + | NEWPART.Size = SIZE |
| 77 | - | headweld.Part1 = head |
| 77 | + | NEWPART.Position = Torso.Position |
| 78 | NEWPART.Material = MATERIAL | |
| 79 | - | local Screen = Instance.new("ScreenGui", plr:findFirstChild("PlayerGui"))
|
| 79 | + | NEWPART:BreakJoints() |
| 80 | - | local TextBox = Instance.new("TextLabel", Screen)
|
| 80 | + | NEWPART.Parent = PARENT |
| 81 | - | TextBox.Position = UDim2.new(0.1, 0, 0.95, 0) |
| 81 | + | return NEWPART |
| 82 | - | TextBox.Size = UDim2.new(0, 200, 0.05, 0) |
| 82 | + | |
| 83 | - | TextBox.BackgroundTransparency = 1 |
| 83 | + | |
| 84 | - | game:service'RunService'.Stepped:connect(function() |
| 84 | + | --//=================================\\ |
| 85 | - | TextBox.Text = ("Ammo: "..ammo)
|
| 85 | + | --|| USEFUL VALUES |
| 86 | --\\=================================// | |
| 87 | - | TextBox.Font = "SourceSansBold" |
| 87 | + | |
| 88 | - | TextBox.TextColor3 = Color3.new(1, 1, 1) |
| 88 | + | Player_Size = 1 |
| 89 | - | TextBox.FontSize = "Size36" |
| 89 | + | Animation_Speed = 3 |
| 90 | - | TextBox.TextStrokeTransparency = 0 |
| 90 | + | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
| 91 | local Speed = 10 | |
| 92 | - | local pl = Instance.new("PointLight", release)
|
| 92 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 93 | - | pl.Range = 16 |
| 93 | + | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 94 | - | pl.Brightness = 5 |
| 94 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
| 95 | - | pl.Color = Color3.new(1, 199/255, 67/255) |
| 95 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
| 96 | - | pl.Enabled = false |
| 96 | + | local DAMAGEMULTIPLIER = 1 |
| 97 | - | function reload() |
| 97 | + | local ANIM = "Idle" |
| 98 | - | if ammo > 7 then return end |
| 98 | + | local ATTACK = false |
| 99 | - | reloads:play() |
| 99 | + | local EQUIPPED = false |
| 100 | - | ammo = ammo + 1 |
| 100 | + | local HOLD = false |
| 101 | - | activate:play() |
| 101 | + | local COMBO = 1 |
| 102 | - | wait(0.3) |
| 102 | + | local Rooted = false |
| 103 | - | debounce = false |
| 103 | + | local SINE = 0 |
| 104 | local KEYHOLD = false | |
| 105 | local CHANGE = 2 / Animation_Speed | |
| 106 | - | mouse.KeyDown:connect(function(key) |
| 106 | + | local WALKINGANIM = false |
| 107 | - | if key == "r" then |
| 107 | + | local VALUE1 = false |
| 108 | - | if debounce then return end |
| 108 | + | local VALUE2 = false |
| 109 | - | if not equipped then return end |
| 109 | + | local ROBLOXIDLEANIMATION = IT("Animation")
|
| 110 | - | if ammo > 7 then return end |
| 110 | + | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
| 111 | - | debounce = true |
| 111 | + | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
| 112 | - | reload() |
| 112 | + | local ATANIM = IT("Animation")
|
| 113 | ATANIM.Name = "Attack Animation" | |
| 114 | - | |
| 114 | + | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" |
| 115 | - | if key == "q" then |
| 115 | + | --ROBLOXIDLEANIMATION.Parent = Humanoid |
| 116 | - | equipped = not equipped |
| 116 | + | local WEAPONGUI = IT("ScreenGui", PlayerGui)
|
| 117 | - | if equipped then |
| 117 | + | WEAPONGUI.Name = "Weapon GUI" |
| 118 | - | headext.Parent = char |
| 118 | + | local Weapon = IT("Model")
|
| 119 | - | release.Parent = char |
| 119 | + | Weapon.Name = "Adds" |
| 120 | - | release2.Parent = char |
| 120 | + | local Effects = IT("Folder", Weapon)
|
| 121 | - | face.Parent = nil |
| 121 | + | Effects.Name = "Effects" |
| 122 | - | for scale = 0, 1, 0.2 do |
| 122 | + | local ANIMATOR = Humanoid.Animator |
| 123 | - | weld2.C0 = CFrame.new(0, -scale + 0.5, 0) * CFrame.Angles(math.pi/2, 0, 0) |
| 123 | + | local ANIMATE = Character.Animate |
| 124 | - | weld.C0 = CFrame.new(0, -scale + 0.5, -0.2) * CFrame.Angles(math.pi/2, 0, 0) |
| 124 | + | local UNANCHOR = true |
| 125 | - | mesh.Scale = Vector3.new(1, scale, 1) |
| 125 | + | local PLAYANIMS = true |
| 126 | - | mesh2.Scale = Vector3.new(1, scale, 1) |
| 126 | + | script.Parent = WEAPONGUI |
| 127 | - | wait() |
| 127 | + | Character.Archivable = true |
| 128 | local CLONE = Character:Clone() | |
| 129 | CLONE.Parent = nil | |
| 130 | - | face.Parent = head |
| 130 | + | Character.Archivable = false |
| 131 | - | release.Parent = nil |
| 131 | + | local sick = Instance.new("Sound",Torso)
|
| 132 | - | release2.Parent = nil |
| 132 | + | sick.SoundId = "rbxassetid://1551788627" |
| 133 | - | headext.Parent = nil |
| 133 | + | sick.Looped = true |
| 134 | sick.Pitch = 1 | |
| 135 | sick.Volume = 3 | |
| 136 | sick:Play() | |
| 137 | local SIT = IT("BoolValue",Torso)
| |
| 138 | - | mouse.Button1Down:connect(function() |
| 138 | + | SIT.Name = "IsThePharaohSitting?" |
| 139 | - | if not equipped then return end |
| 139 | + | |
| 140 | - | if ammo < 1 then return end |
| 140 | + | --//=================================\\ |
| 141 | - | if debounce then return end |
| 141 | + | --\\=================================// |
| 142 | - | debounce = true |
| 142 | + | |
| 143 | - | sound:play() |
| 143 | + | |
| 144 | - | pl.Enabled = true |
| 144 | + | --//=================================\\ |
| 145 | - | ammo = ammo - 1 |
| 145 | + | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
| 146 | - | coroutine.wrap(function() |
| 146 | + | --\\=================================// |
| 147 | - | wait(0.07) |
| 147 | + | |
| 148 | - | pl.Enabled = false |
| 148 | + | ArtificialHB = Instance.new("BindableEvent", script)
|
| 149 | - | end)() |
| 149 | + | ArtificialHB.Name = "ArtificialHB" |
| 150 | - | coroutine.wrap(function() |
| 150 | + | |
| 151 | - | for scale = 0.7, 1, 0.1 do |
| 151 | + | script:WaitForChild("ArtificialHB")
|
| 152 | - | mesh.Scale = Vector3.new(1, scale, 1) |
| 152 | + | |
| 153 | - | wait() |
| 153 | + | frame = Frame_Speed |
| 154 | tf = 0 | |
| 155 | - | end)() |
| 155 | + | allowframeloss = false |
| 156 | - | |
| 156 | + | tossremainder = false |
| 157 | - | local shell = Instance.new("Part", workspace)
|
| 157 | + | lastframe = tick() |
| 158 | - | shell.BrickColor = BrickColor.Red() |
| 158 | + | script.ArtificialHB:Fire() |
| 159 | - | shell.FormFactor = "Custom" |
| 159 | + | |
| 160 | - | shell.Size = Vector3.new(0.3, 0.7, 0.3) |
| 160 | + | game:GetService("RunService").Heartbeat:connect(function(s, p)
|
| 161 | - | shell.CFrame = head.CFrame * CFrame.new(0, 0.1, 0.5) * CFrame.Angles(math.pi/2, 0, math.pi/2) |
| 161 | + | tf = tf + s |
| 162 | - | local bodyF = Instance.new("BodyVelocity", shell)
|
| 162 | + | if tf >= frame then |
| 163 | - | bodyF.maxForce = Vector3.new(1e5, 0, 1e5) |
| 163 | + | if allowframeloss then |
| 164 | - | bodyF.P = 1e3 |
| 164 | + | script.ArtificialHB:Fire() |
| 165 | - | bodyF.velocity = head.CFrame.lookVector * -20 |
| 165 | + | lastframe = tick() |
| 166 | - | Instance.new("CylinderMesh", shell)
|
| 166 | + | |
| 167 | for i = 1, math.floor(tf / frame) do | |
| 168 | - | local shell2 = Instance.new("Part", shell)
|
| 168 | + | script.ArtificialHB:Fire() |
| 169 | - | shell2.BrickColor = BrickColor.Yellow() |
| 169 | + | end |
| 170 | - | shell2.FormFactor = "Custom" |
| 170 | + | lastframe = tick() |
| 171 | - | shell2.Size = Vector3.new(0.3, 0.2, 0.3) |
| 171 | + | |
| 172 | - | shell2:BreakJoints() |
| 172 | + | if tossremainder then |
| 173 | - | local weld = Instance.new("Weld", shell2)
|
| 173 | + | tf = 0 |
| 174 | - | weld.Part0 = shell2 |
| 174 | + | |
| 175 | - | weld.Part1 = shell |
| 175 | + | tf = tf - frame * math.floor(tf / frame) |
| 176 | - | weld.C0 = CFrame.new(0, 0.45, 0) |
| 176 | + | |
| 177 | - | Instance.new("CylinderMesh", shell2)
|
| 177 | + | |
| 178 | - | coroutine.wrap(function() |
| 178 | + | |
| 179 | - | wait(0.2) |
| 179 | + | |
| 180 | - | bodyF:Destroy() |
| 180 | + | --//=================================\\ |
| 181 | - | wait(4.8) |
| 181 | + | --\\=================================// |
| 182 | - | |
| 182 | + | |
| 183 | - | for _ = 0, 5 do |
| 183 | + | --//=================================\\ |
| 184 | - | shell.Mesh.Scale = shell.Mesh.Scale + Vector3.new(0.2, 0.2, 0.2) |
| 184 | + | --|| SOME FUNCTIONS |
| 185 | - | shell.Transparency = shell.Transparency + 0.2 |
| 185 | + | --\\=================================// |
| 186 | - | shell2.Mesh.Scale = shell.Mesh.Scale + Vector3.new(0.2, 0.2, 0.2) |
| 186 | + | |
| 187 | - | shell2.Transparency = shell.Transparency + 0.2 |
| 187 | + | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
| 188 | - | wait() |
| 188 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
| 189 | end | |
| 190 | - | |
| 190 | + | |
| 191 | - | shell:Destroy() |
| 191 | + | function PositiveAngle(NUMBER) |
| 192 | - | end)() |
| 192 | + | if NUMBER >= 0 then |
| 193 | - | |
| 193 | + | NUMBER = 0 |
| 194 | - | for bullet = 0, 5 do |
| 194 | + | |
| 195 | - | coroutine.wrap(function() |
| 195 | + | return NUMBER |
| 196 | - | if char.Humanoid.Health < 1 then return end |
| 196 | + | |
| 197 | - | local rayPart = Instance.new("Part")
|
| 197 | + | |
| 198 | - | rayPart.Name = "RayPart" |
| 198 | + | function NegativeAngle(NUMBER) |
| 199 | - | rayPart.BrickColor = BrickColor.Yellow() |
| 199 | + | if NUMBER <= 0 then |
| 200 | - | rayPart.Anchored = true |
| 200 | + | NUMBER = 0 |
| 201 | - | rayPart.CanCollide = false |
| 201 | + | |
| 202 | - | rayPart.Locked = true |
| 202 | + | return NUMBER |
| 203 | - | rayPart.TopSurface = Enum.SurfaceType.Smooth |
| 203 | + | |
| 204 | - | rayPart.BottomSurface = Enum.SurfaceType.Smooth |
| 204 | + | |
| 205 | - | rayPart.formFactor = Enum.FormFactor.Custom |
| 205 | + | function Swait(NUMBER) |
| 206 | - | rayPart.Size = Vector3.new(0.2, 0.2, 4) |
| 206 | + | if NUMBER == 0 or NUMBER == nil then |
| 207 | - | Instance.new("BlockMesh", rayPart).Scale = Vector3.new(0.2, 0.2, 0.5)
|
| 207 | + | ArtificialHB.Event:wait() |
| 208 | - | |
| 208 | + | else |
| 209 | - | |
| 209 | + | for i = 1, NUMBER do |
| 210 | - | |
| 210 | + | ArtificialHB.Event:wait() |
| 211 | - | local bulletposition = release.Position |
| 211 | + | |
| 212 | - | local bulletvelocity = (Vector3.new(math.random(-7,7), math.random(-7,7), math.random(-7,7)))+( mouse.Hit.p - bulletposition).unit*150 |
| 212 | + | |
| 213 | - | local bulletlastposition = bulletposition |
| 213 | + | |
| 214 | - | rayPart.CFrame = CFrame.new( bulletposition, bulletposition+bulletvelocity ) |
| 214 | + | |
| 215 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 216 | local NEWMESH = IT(MESH) | |
| 217 | if MESH == "SpecialMesh" then | |
| 218 | NEWMESH.MeshType = MESHTYPE | |
| 219 | - | |
| 219 | + | if MESHID ~= "nil" and MESHID ~= "" then |
| 220 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 221 | - | while true do |
| 221 | + | |
| 222 | - | local dt = wait() |
| 222 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
| 223 | - | bulletlastposition = bulletposition |
| 223 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
| 224 | - | bulletvelocity = bulletvelocity + (Vector3.new(0, -9.81*10, 0)*dt) |
| 224 | + | |
| 225 | - | bulletposition = bulletposition + (bulletvelocity*dt) |
| 225 | + | |
| 226 | - | rayPart.Parent = workspace |
| 226 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
| 227 | - | |
| 227 | + | NEWMESH.Scale = SCALE |
| 228 | - | local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition)) |
| 228 | + | NEWMESH.Parent = PARENT |
| 229 | - | local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, { char, rayPart} )
|
| 229 | + | return NEWMESH |
| 230 | - | |
| 230 | + | |
| 231 | - | if (torso.Position - rayPart.Position).magnitude > 440 then |
| 231 | + | |
| 232 | - | rayPart:Destroy() |
| 232 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
| 233 | - | break |
| 233 | + | local NEWPART = IT("Part")
|
| 234 | - | end |
| 234 | + | NEWPART.formFactor = FORMFACTOR |
| 235 | - | |
| 235 | + | NEWPART.Reflectance = REFLECTANCE |
| 236 | - | |
| 236 | + | NEWPART.Transparency = TRANSPARENCY |
| 237 | - | if hit then |
| 237 | + | NEWPART.CanCollide = false |
| 238 | - | local damage = math.random(6, 11) |
| 238 | + | NEWPART.Locked = true |
| 239 | - | if hit.Parent:findFirstChild("Humanoid") ~= nil then
|
| 239 | + | NEWPART.Anchored = true |
| 240 | - | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage |
| 240 | + | if ANCHOR == false then |
| 241 | - | coroutine.wrap(function() |
| 241 | + | NEWPART.Anchored = false |
| 242 | - | local prt = Instance.new("Part", char)
|
| 242 | + | |
| 243 | - | prt.FormFactor = "Custom" |
| 243 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
| 244 | - | prt.Size = Vector3.new(0.1, 0.1, 0.1) |
| 244 | + | NEWPART.Name = NAME |
| 245 | - | prt.Transparency = 1 |
| 245 | + | NEWPART.Size = SIZE |
| 246 | - | prt.CanCollide = false |
| 246 | + | NEWPART.Position = Torso.Position |
| 247 | - | prt.CFrame = CFrame.new(rayPart.CFrame.x, rayPart.CFrame.y, rayPart.CFrame.z) |
| 247 | + | NEWPART.Material = MATERIAL |
| 248 | - | prt.Anchored = true |
| 248 | + | NEWPART:BreakJoints() |
| 249 | NEWPART.Parent = PARENT | |
| 250 | - | for i = 2, 10, 0.1 do |
| 250 | + | return NEWPART |
| 251 | - | if prt == nil then return end |
| 251 | + | |
| 252 | - | prt.CFrame = prt.CFrame * CFrame.new(0, 0.05, 0) |
| 252 | + | |
| 253 | - | game:service'RunService'.Stepped:wait() |
| 253 | + | local function weldBetween(a, b) |
| 254 | local weldd = Instance.new("ManualWeld")
| |
| 255 | weldd.Part0 = a | |
| 256 | - | |
| 256 | + | weldd.Part1 = b |
| 257 | - | local bg = Instance.new("BillboardGui")
|
| 257 | + | weldd.C0 = CFrame.new() |
| 258 | - | bg.Parent = prt |
| 258 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
| 259 | - | bg.Adornee = prt |
| 259 | + | weldd.Parent = a |
| 260 | - | bg.Size = UDim2.new(4, 0, 3.5, 0) |
| 260 | + | return weldd |
| 261 | - | bg.ExtentsOffset = Vector3.new(0, 0, 0) |
| 261 | + | |
| 262 | - | local lol = Instance.new("TextLabel")
|
| 262 | + | |
| 263 | - | lol.Size = UDim2.new(1.3, 0, 0.4, 0) |
| 263 | + | |
| 264 | - | lol.TextScaled = true |
| 264 | + | function QuaternionFromCFrame(cf) |
| 265 | - | lol.TextWrapped = true |
| 265 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
| 266 | - | lol.BackgroundTransparency = 1 |
| 266 | + | local trace = m00 + m11 + m22 |
| 267 | - | lol.Parent = bg |
| 267 | + | if trace > 0 then |
| 268 | - | lol.FontSize = "Size24" |
| 268 | + | local s = math.sqrt(1 + trace) |
| 269 | - | lol.TextColor3 = Color3.new(1, 0, 0) |
| 269 | + | local recip = 0.5 / s |
| 270 | - | lol.TextStrokeTransparency = 0 |
| 270 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
| 271 | - | lol.Font = "ArialBold" |
| 271 | + | else |
| 272 | - | lol.Text = "-"..damage |
| 272 | + | local i = 0 |
| 273 | - | |
| 273 | + | if m11 > m00 then |
| 274 | - | wait(3) |
| 274 | + | i = 1 |
| 275 | - | prt:Destroy() |
| 275 | + | |
| 276 | - | end)() |
| 276 | + | if m22 > (i == 0 and m00 or m11) then |
| 277 | i = 2 | |
| 278 | - | if hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
|
| 278 | + | |
| 279 | - | hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage |
| 279 | + | if i == 0 then |
| 280 | - | coroutine.wrap(function() |
| 280 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
| 281 | - | local prt = Instance.new("Part", char)
|
| 281 | + | local recip = 0.5 / s |
| 282 | - | prt.FormFactor = "Custom" |
| 282 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
| 283 | - | prt.Size = Vector3.new(0.1, 0.1, 0.1) |
| 283 | + | elseif i == 1 then |
| 284 | - | prt.Transparency = 1 |
| 284 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
| 285 | - | prt.CanCollide = false |
| 285 | + | local recip = 0.5 / s |
| 286 | - | prt.CFrame = CFrame.new(rayPart.CFrame.x, rayPart.CFrame.y, rayPart.CFrame.z) |
| 286 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
| 287 | - | prt.Anchored = true |
| 287 | + | elseif i == 2 then |
| 288 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 289 | - | for i = 2, 10, 0.1 do |
| 289 | + | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
| 290 | - | if prt == nil then return end |
| 290 | + | |
| 291 | - | prt.CFrame = prt.CFrame * CFrame.new(0, 0.05, 0) |
| 291 | + | |
| 292 | - | game:service'RunService'.Stepped:wait() |
| 292 | + | |
| 293 | ||
| 294 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 295 | - | |
| 295 | + | local xs, ys, zs = x + x, y + y, z + z |
| 296 | - | local bg = Instance.new("BillboardGui")
|
| 296 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
| 297 | - | bg.Parent = prt |
| 297 | + | local xx = x * xs |
| 298 | - | bg.Adornee = prt |
| 298 | + | local xy = x * ys |
| 299 | - | bg.Size = UDim2.new(4, 0, 3.5, 0) |
| 299 | + | local xz = x * zs |
| 300 | - | bg.ExtentsOffset = Vector3.new(0, 0, 0) |
| 300 | + | local yy = y * ys |
| 301 | - | local lol = Instance.new("TextLabel")
|
| 301 | + | local yz = y * zs |
| 302 | - | lol.Size = UDim2.new(1.3, 0, 0.4, 0) |
| 302 | + | local zz = z * zs |
| 303 | - | lol.TextScaled = true |
| 303 | + | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
| 304 | - | lol.TextWrapped = true |
| 304 | + | |
| 305 | - | lol.BackgroundTransparency = 1 |
| 305 | + | |
| 306 | - | lol.Parent = bg |
| 306 | + | function QuaternionSlerp(a, b, t) |
| 307 | - | lol.FontSize = "Size24" |
| 307 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
| 308 | - | lol.TextColor3 = Color3.new(1, 0, 0) |
| 308 | + | local startInterp, finishInterp; |
| 309 | - | lol.TextStrokeTransparency = 0 |
| 309 | + | if cosTheta >= 0.0001 then |
| 310 | - | lol.Font = "ArialBold" |
| 310 | + | if (1 - cosTheta) > 0.0001 then |
| 311 | - | lol.Text = "-"..damage |
| 311 | + | local theta = ACOS(cosTheta) |
| 312 | - | |
| 312 | + | local invSinTheta = 1 / SIN(theta) |
| 313 | - | wait(3) |
| 313 | + | startInterp = SIN((1 - t) * theta) * invSinTheta |
| 314 | - | prt:Destroy() |
| 314 | + | finishInterp = SIN(t * theta) * invSinTheta |
| 315 | - | end)() |
| 315 | + | |
| 316 | - | end |
| 316 | + | startInterp = 1 - t |
| 317 | - | bulletposition = hitposition |
| 317 | + | finishInterp = t |
| 318 | - | rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) |
| 318 | + | |
| 319 | - | rayPart:Destroy() |
| 319 | + | else |
| 320 | - | break |
| 320 | + | if (1 + cosTheta) > 0.0001 then |
| 321 | local theta = ACOS(-cosTheta) | |
| 322 | - | rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) |
| 322 | + | local invSinTheta = 1 / SIN(theta) |
| 323 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 324 | finishInterp = SIN(t * theta) * invSinTheta | |
| 325 | - | end)() |
| 325 | + | |
| 326 | startInterp = t - 1 | |
| 327 | - | wait(0.3) |
| 327 | + | finishInterp = t |
| 328 | - | debounce = false |
| 328 | + | |
| 329 | - | |
| 329 | + | |
| 330 | - | end) |
| 330 | + | 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 |
| 331 | end | |
| 332 | ||
| 333 | function Clerp(a, b, t) | |
| 334 | local qa = {QuaternionFromCFrame(a)}
| |
| 335 | local qb = {QuaternionFromCFrame(b)}
| |
| 336 | local ax, ay, az = a.x, a.y, a.z | |
| 337 | local bx, by, bz = b.x, b.y, b.z | |
| 338 | local _t = 1 - t | |
| 339 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 340 | end | |
| 341 | ||
| 342 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 343 | local frame = IT("Frame")
| |
| 344 | frame.BackgroundTransparency = TRANSPARENCY | |
| 345 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 346 | frame.Position = POSITION | |
| 347 | frame.Size = SIZE | |
| 348 | frame.BackgroundColor3 = COLOR | |
| 349 | frame.BorderColor3 = BORDERCOLOR | |
| 350 | frame.Name = NAME | |
| 351 | frame.Parent = PARENT | |
| 352 | return frame | |
| 353 | end | |
| 354 | ||
| 355 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 356 | local label = IT("TextLabel")
| |
| 357 | label.BackgroundTransparency = 1 | |
| 358 | label.Size = UD2(1, 0, 1, 0) | |
| 359 | label.Position = UD2(0, 0, 0, 0) | |
| 360 | label.TextColor3 = TEXTCOLOR | |
| 361 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 362 | label.TextTransparency = TRANSPARENCY | |
| 363 | label.FontSize = TEXTFONTSIZE | |
| 364 | label.Font = TEXTFONT | |
| 365 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 366 | label.TextScaled = false | |
| 367 | label.Text = TEXT | |
| 368 | label.Name = NAME | |
| 369 | label.Parent = PARENT | |
| 370 | return label | |
| 371 | end | |
| 372 | ||
| 373 | function NoOutlines(PART) | |
| 374 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 375 | end | |
| 376 | ||
| 377 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 378 | local NEWWELD = IT(TYPE) | |
| 379 | NEWWELD.Part0 = PART0 | |
| 380 | NEWWELD.Part1 = PART1 | |
| 381 | NEWWELD.C0 = C0 | |
| 382 | NEWWELD.C1 = C1 | |
| 383 | NEWWELD.Parent = PARENT | |
| 384 | return NEWWELD | |
| 385 | end | |
| 386 | ||
| 387 | local S = IT("Sound")
| |
| 388 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 389 | local NEWSOUND = nil | |
| 390 | coroutine.resume(coroutine.create(function() | |
| 391 | NEWSOUND = S:Clone() | |
| 392 | NEWSOUND.Parent = PARENT | |
| 393 | NEWSOUND.Volume = VOLUME | |
| 394 | NEWSOUND.Pitch = PITCH | |
| 395 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 396 | NEWSOUND:play() | |
| 397 | if DOESLOOP == true then | |
| 398 | NEWSOUND.Looped = true | |
| 399 | else | |
| 400 | repeat wait(1) until NEWSOUND.Playing == false | |
| 401 | NEWSOUND:remove() | |
| 402 | end | |
| 403 | end)) | |
| 404 | return NEWSOUND | |
| 405 | end | |
| 406 | ||
| 407 | function CFrameFromTopBack(at, top, back) | |
| 408 | local right = top:Cross(back) | |
| 409 | 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) | |
| 410 | end | |
| 411 | ||
| 412 | --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})
| |
| 413 | function WACKYEFFECT(Table) | |
| 414 | local TYPE = (Table.EffectType or "Sphere") | |
| 415 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 416 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 417 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 418 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 419 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 420 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 421 | local ROTATION1 = (Table.RotationX or 0) | |
| 422 | local ROTATION2 = (Table.RotationY or 0) | |
| 423 | local ROTATION3 = (Table.RotationZ or 0) | |
| 424 | local MATERIAL = (Table.Material or "Neon") | |
| 425 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 426 | local TIME = (Table.Time or 45) | |
| 427 | local SOUNDID = (Table.SoundID or nil) | |
| 428 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 429 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 430 | coroutine.resume(coroutine.create(function() | |
| 431 | local PLAYSSOUND = false | |
| 432 | local SOUND = nil | |
| 433 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 434 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 435 | PLAYSSOUND = true | |
| 436 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 437 | end | |
| 438 | EFFECT.Color = COLOR | |
| 439 | local MSH = nil | |
| 440 | if TYPE == "Sphere" then | |
| 441 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 442 | elseif TYPE == "Block" then | |
| 443 | MSH = IT("BlockMesh",EFFECT)
| |
| 444 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 445 | elseif TYPE == "Wave" then | |
| 446 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 447 | elseif TYPE == "Ring" then | |
| 448 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 449 | elseif TYPE == "Slash" then | |
| 450 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 451 | elseif TYPE == "Round Slash" then | |
| 452 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 453 | elseif TYPE == "Swirl" then | |
| 454 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 455 | elseif TYPE == "Skull" then | |
| 456 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 457 | elseif TYPE == "Crystal" then | |
| 458 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 459 | end | |
| 460 | if MSH ~= nil then | |
| 461 | local MOVESPEED = nil | |
| 462 | if MOVEDIRECTION ~= nil then | |
| 463 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 464 | end | |
| 465 | local GROWTH = SIZE - ENDSIZE | |
| 466 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 467 | if TYPE == "Block" then | |
| 468 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 469 | else | |
| 470 | EFFECT.CFrame = CFRAME | |
| 471 | end | |
| 472 | for LOOP = 1, TIME+1 do | |
| 473 | Swait() | |
| 474 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 475 | if TYPE == "Wave" then | |
| 476 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 477 | end | |
| 478 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 479 | if TYPE == "Block" then | |
| 480 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 481 | else | |
| 482 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 483 | end | |
| 484 | if MOVEDIRECTION ~= nil then | |
| 485 | local ORI = EFFECT.Orientation | |
| 486 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 487 | EFFECT.Orientation = ORI | |
| 488 | end | |
| 489 | end | |
| 490 | EFFECT.Transparency = 1 | |
| 491 | if PLAYSSOUND == false then | |
| 492 | EFFECT:remove() | |
| 493 | else | |
| 494 | repeat Swait() until SOUND.Playing == false | |
| 495 | EFFECT:remove() | |
| 496 | end | |
| 497 | else | |
| 498 | if PLAYSSOUND == false then | |
| 499 | EFFECT:remove() | |
| 500 | else | |
| 501 | repeat Swait() until SOUND.Playing == false | |
| 502 | EFFECT:remove() | |
| 503 | end | |
| 504 | end | |
| 505 | end)) | |
| 506 | end | |
| 507 | ||
| 508 | function MakeForm(PART,TYPE) | |
| 509 | if TYPE == "Cyl" then | |
| 510 | local MSH = IT("CylinderMesh",PART)
| |
| 511 | elseif TYPE == "Ball" then | |
| 512 | local MSH = IT("SpecialMesh",PART)
| |
| 513 | MSH.MeshType = "Sphere" | |
| 514 | elseif TYPE == "Wedge" then | |
| 515 | local MSH = IT("SpecialMesh",PART)
| |
| 516 | MSH.MeshType = "Wedge" | |
| 517 | end | |
| 518 | end | |
| 519 | ||
| 520 | Debris = game:GetService("Debris")
| |
| 521 | ||
| 522 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 523 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 524 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
| |
| 525 | end | |
| 526 | ||
| 527 | local FIRECOLOR = C3(1,85/255,0) | |
| 528 | ||
| 529 | local Particle = IT("ParticleEmitter",nil)
| |
| 530 | Particle.Enabled = false | |
| 531 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.6),NumberSequenceKeypoint.new(1,1)})
| |
| 532 | Particle.LightEmission = 0.5 | |
| 533 | Particle.Rate = 500 | |
| 534 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 535 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 536 | Particle.Texture = "http://www.roblox.com/asset/?id=1460745664" | |
| 537 | Particle.Color = ColorSequence.new(FIRECOLOR) | |
| 538 | ||
| 539 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 540 | function ParticleEmitter(Table) | |
| 541 | local PRTCL = Particle:Clone() | |
| 542 | local Speed = Table.Speed or 5 | |
| 543 | local Drag = Table.Drag or 0 | |
| 544 | local Size1 = Table.Size1 or 1 | |
| 545 | local Size2 = Table.Size2 or 5 | |
| 546 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 547 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 548 | local Parent = Table.Parent or Torso | |
| 549 | local Emit = Table.Emit or 100 | |
| 550 | local Offset = Table.Offset or 360 | |
| 551 | local Accel = Table.Accel or VT(0,0,0) | |
| 552 | local Enabled = Table.Enabled or false | |
| 553 | PRTCL.Parent = Parent | |
| 554 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 555 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 556 | PRTCL.Speed = NumberRange.new(Speed) | |
| 557 | PRTCL.VelocitySpread = Offset | |
| 558 | PRTCL.Drag = Drag | |
| 559 | PRTCL.Acceleration = Accel | |
| 560 | if Enabled == false then | |
| 561 | PRTCL:Emit(Emit) | |
| 562 | Debris:AddItem(PRTCL,Lifetime2) | |
| 563 | else | |
| 564 | PRTCL.Enabled = true | |
| 565 | end | |
| 566 | return PRTCL | |
| 567 | end | |
| 568 | ||
| 569 | function Pheonix(Size) | |
| 570 | local PHEONIX = IT("Model",nil)
| |
| 571 | PHEONIX.Name = "PHEONIX" | |
| 572 | local BASEPART = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Wyvern Base",VT(0,0,0),false) | |
| 573 | CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, BASEPART, CF(0 , 4*Size, 3*Size), CF(0, 0, 0))
| |
| 574 | CreateMesh("SpecialMesh", BASEPART, "FileMesh", "90615474", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
| |
| 575 | local RWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Right Wing", VT(0,0,0),false) | |
| 576 | local RWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, RWING, CF(2*Size , 2*Size, 0.75*Size), CF(-2*Size, 0, 0))
| |
| 577 | local LWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Left Wing", VT(0,0,0),false) | |
| 578 | local LWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, LWING, CF(-2*Size , 2*Size, 0.75*Size), CF(2*Size, 0, 0))
| |
| 579 | CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
| |
| 580 | CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
| |
| 581 | for _, c in pairs(PHEONIX:GetChildren()) do | |
| 582 | if c.ClassName == "Part" then | |
| 583 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 584 | c.Color = FIRECOLOR | |
| 585 | end | |
| 586 | end | |
| 587 | PHEONIX.Parent = Weapon | |
| 588 | return PHEONIX,BASEPART,RWING,LWING,RWELD,LWELD | |
| 589 | end | |
| 590 | ||
| 591 | function turnto(position) | |
| 592 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 593 | end | |
| 594 | ||
| 595 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 596 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 597 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
| |
| 598 | wave.CFrame = CFRAME | |
| 599 | coroutine.resume(coroutine.create(function(PART) | |
| 600 | for i = 1, WAIT do | |
| 601 | Swait() | |
| 602 | mesh.Scale = mesh.Scale * GROW | |
| 603 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 604 | if wave.Transparency > 0.99 then | |
| 605 | wave:remove() | |
| 606 | end | |
| 607 | end | |
| 608 | end)) | |
| 609 | end | |
| 610 | ||
| 611 | function AddChildrenToTable(FROM,PARENT,DIST,TABLE) | |
| 612 | for _, c in pairs(PARENT:GetDescendants()) do | |
| 613 | if c.ClassName == "Model" then | |
| 614 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
| |
| 615 | local HUMANOID = c:FindFirstChildOfClass("Humanoid")
| |
| 616 | local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
| |
| 617 | if (TORSO.Position - FROM).Magnitude < DIST then | |
| 618 | table.insert(TABLE,c) | |
| 619 | end | |
| 620 | end | |
| 621 | end | |
| 622 | end | |
| 623 | end | |
| 624 | ||
| 625 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
| 626 | if FLOOR ~= nil then | |
| 627 | coroutine.resume(coroutine.create(function() | |
| 628 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
| 629 | PART.CFrame = CF(POSITION) | |
| 630 | for i = 1, 45 do | |
| 631 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
| 632 | RingPiece.Material = FLOOR.Material | |
| 633 | RingPiece.Color = FLOOR.Color | |
| 634 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 635 | Debris:AddItem(RingPiece,SWAIT/100) | |
| 636 | end | |
| 637 | PART:remove() | |
| 638 | end)) | |
| 639 | end | |
| 640 | end | |
| 641 | ||
| 642 | --//=================================\\ | |
| 643 | --|| WEAPON CREATION | |
| 644 | --\\=================================// | |
| 645 | ||
| 646 | function chatfunc(text) | |
| 647 | local chat = coroutine.wrap(function() | |
| 648 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 649 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 650 | end | |
| 651 | local Bill = Instance.new("BillboardGui",Character)
| |
| 652 | Bill.Size = UDim2.new(0,100,0,40) | |
| 653 | Bill.StudsOffset = Vector3.new(0,3,0) | |
| 654 | Bill.Adornee = Character.Head | |
| 655 | Bill.Name = "TalkingBillBoard" | |
| 656 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 657 | Hehe.BackgroundTransparency = 1 | |
| 658 | Hehe.BorderSizePixel = 0 | |
| 659 | Hehe.Text = "" | |
| 660 | Hehe.Font = "Garamond" | |
| 661 | Hehe.TextSize = 40 | |
| 662 | Hehe.TextStrokeTransparency = 0 | |
| 663 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 664 | coroutine.resume(coroutine.create(function() | |
| 665 | while Hehe ~= nil do | |
| 666 | Swait() | |
| 667 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 668 | Hehe.Rotation = math.random(-5,5) | |
| 669 | Hehe.TextColor3 = Color3.new(0,0,0) | |
| 670 | Hehe.TextStrokeColor3 = C3(188/255, 155/255, 93/255) | |
| 671 | end | |
| 672 | end)) | |
| 673 | for i = 1,string.len(text),1 do | |
| 674 | Swait() | |
| 675 | Hehe.Text = string.sub(text,1,i) | |
| 676 | end | |
| 677 | Swait(90)--Re[math.random(1, 93)] | |
| 678 | for i = 0, 1, .025 do | |
| 679 | Swait() | |
| 680 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
| 681 | Hehe.TextStrokeTransparency = i | |
| 682 | Hehe.TextTransparency = i | |
| 683 | end | |
| 684 | Bill:Destroy() | |
| 685 | end) | |
| 686 | chat() | |
| 687 | end | |
| 688 | ||
| 689 | function onChatted(msg) | |
| 690 | chatfunc(msg) | |
| 691 | end | |
| 692 | ||
| 693 | Player.Chatted:connect(onChatted) | |
| 694 | ||
| 695 | Humanoid.DisplayDistanceType = "None" | |
| 696 | local naeeym2 = IT("BillboardGui",Character)
| |
| 697 | naeeym2.AlwaysOnTop = true | |
| 698 | naeeym2.Size = UDim2.new(2,35,1,15) | |
| 699 | naeeym2.StudsOffset = Vector3.new(0,1.5,0) | |
| 700 | naeeym2.MaxDistance = 75 | |
| 701 | naeeym2.Adornee = Character.Head | |
| 702 | naeeym2.Name = "Name" | |
| 703 | naeeym2.PlayerToHideFrom = Player | |
| 704 | local tecks2 = IT("TextLabel",naeeym2)
| |
| 705 | tecks2.BackgroundTransparency = 1 | |
| 706 | tecks2.TextScaled = true | |
| 707 | tecks2.BorderSizePixel = 0 | |
| 708 | tecks2.Text = "Pharaoh" | |
| 709 | tecks2.Font = "Bodoni" | |
| 710 | tecks2.TextSize = 30 | |
| 711 | tecks2.TextStrokeTransparency = 0 | |
| 712 | tecks2.TextColor3 = C3(0,0,0) | |
| 713 | tecks2.TextStrokeColor3 = C3(188/255, 155/255, 93/255) | |
| 714 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 715 | tecks2.Parent = naeeym2 | |
| 716 | local top = Instance.new("Shirt")
| |
| 717 | top.ShirtTemplate = "rbxassetid://182802864" | |
| 718 | top.Parent = Character | |
| 719 | top.Name = "Cloth" | |
| 720 | local bottom = Instance.new("Pants")
| |
| 721 | bottom.PantsTemplate = "rbxassetid://182802941" | |
| 722 | bottom.Parent = Character | |
| 723 | bottom.Name = "Cloth" | |
| 724 | ||
| 725 | --Head.Transparency = 1 | |
| 726 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
| 727 | PRT.Color = C3(0,0,0) | |
| 728 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.1,0.05), CF(0, 0, 0))
| |
| 729 | CreateMesh("SpecialMesh", PRT, "FileMesh", "10661327", "10661334", VT(1,1,1)*1.1, VT(0,0,0))
| |
| 730 | CreateMesh("SpecialMesh", Head, "FileMesh", "16150909", "16150889", VT(1,1,1), VT(0,0,0))
| |
| 731 | local Eye = CreatePart(3, Weapon, "Concrete", 0, 1, "Cork", "Eye", VT(0,0,0),false) | |
| 732 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Eye, CF(0,Part.Size.Y/2+0.17,-0.05), CF(0, 0, 0))
| |
| 733 | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Black", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) | |
| 734 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 735 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) | |
| 736 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 737 | ||
| 738 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
| 739 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 740 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
| 741 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 742 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
| 743 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 744 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
| 745 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 746 | ||
| 747 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) | |
| 748 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 749 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Black", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) | |
| 750 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 751 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
| 752 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 753 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
| 754 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 755 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
| 756 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 757 | ||
| 758 | ||
| 759 | for _, c in pairs(Weapon:GetChildren()) do | |
| 760 | if c.ClassName == "Part" then | |
| 761 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 762 | end | |
| 763 | end | |
| 764 | ||
| 765 | local SKILLTEXTCOLOR = C3(188/255, 155/255, 93/255) | |
| 766 | local SKILLFONT = "Bodoni" | |
| 767 | local SKILLTEXTSIZE = 6 | |
| 768 | ||
| 769 | Weapon.Parent = Character | |
| 770 | ||
| 771 | Humanoid.Died:connect(function() | |
| 772 | ATTACK = true | |
| 773 | end) | |
| 774 | ||
| 775 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 776 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 777 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 778 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 779 | ||
| 780 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Pharaoh Punch", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
| 781 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Pharaoh Begone", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
| 782 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Spook", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
| 783 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Pharaoh SUPER PUNCH", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
| 784 | ||
| 785 | --//=================================\\ | |
| 786 | --|| DAMAGING | |
| 787 | --\\=================================// | |
| 788 | ||
| 789 | function BAN(CHARACTER) | |
| 790 | local BANFOLDER = IT("Folder",Effects)
| |
| 791 | local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
| |
| 792 | naeeym2.AlwaysOnTop = false | |
| 793 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 794 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
| 795 | naeeym2.Name = "AAAA" | |
| 796 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 797 | tecks2.BackgroundTransparency = 1 | |
| 798 | tecks2.TextScaled = true | |
| 799 | tecks2.BorderSizePixel = 0 | |
| 800 | tecks2.Text = "" | |
| 801 | tecks2.Font = "Code" | |
| 802 | tecks2.TextSize = 30 | |
| 803 | tecks2.TextStrokeTransparency = 1 | |
| 804 | tecks2.TextColor3 = Color3.new(0,0,0) | |
| 805 | tecks2.TextStrokeColor3 = C3(188/255, 155/255, 93/255) | |
| 806 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 807 | tecks2.Parent = naeeym2 | |
| 808 | for i,v in ipairs(CHARACTER:GetChildren()) do | |
| 809 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
| 810 | if v.Name ~= "HumanoidRootPart" then | |
| 811 | local BOD = v:Clone() | |
| 812 | BOD.CanCollide = false | |
| 813 | BOD.Anchored = true | |
| 814 | BOD.CFrame = v.CFrame | |
| 815 | BOD.Parent = BANFOLDER | |
| 816 | BOD.Material = "Neon" | |
| 817 | BOD.Color = C3(1,0,0) | |
| 818 | if BOD:FindFirstChildOfClass("Decal") then
| |
| 819 | BOD:FindFirstChildOfClass("Decal"):remove()
| |
| 820 | end | |
| 821 | if BOD.Name == "Head" then | |
| 822 | naeeym2.Adornee = BOD | |
| 823 | end | |
| 824 | if BOD.ClassName == "MeshPart" then | |
| 825 | BOD.TextureID = "" | |
| 826 | end | |
| 827 | end | |
| 828 | end | |
| 829 | end | |
| 830 | CHARACTER:remove() | |
| 831 | coroutine.resume(coroutine.create(function() | |
| 832 | for i = 1, 50 do | |
| 833 | Swait() | |
| 834 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
| 835 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
| 836 | v.Transparency = 1 | |
| 837 | end | |
| 838 | naeeym2.Enabled = false | |
| 839 | end | |
| 840 | Swait() | |
| 841 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
| 842 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
| 843 | v.Transparency = 0 | |
| 844 | end | |
| 845 | naeeym2.Enabled = true | |
| 846 | end | |
| 847 | end | |
| 848 | BANFOLDER:remove() | |
| 849 | end)) | |
| 850 | end | |
| 851 | ||
| 852 | function killnearest(POS,RANGE) | |
| 853 | for i,v in ipairs(workspace:GetChildren()) do | |
| 854 | local body = v:GetChildren() | |
| 855 | for part = 1, #body do | |
| 856 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 857 | if(body[part].Position - POS).Magnitude < RANGE then | |
| 858 | if v:FindFirstChildOfClass("Humanoid") then
| |
| 859 | BAN(v) | |
| 860 | if game.Players:FindFirstChild(v.Name) then | |
| 861 | local Value = IT("BoolValue",Delete)
| |
| 862 | Value.Name = v.Name | |
| 863 | end | |
| 864 | end | |
| 865 | end | |
| 866 | end | |
| 867 | end | |
| 868 | end | |
| 869 | end | |
| 870 | ||
| 871 | --//=================================\\ | |
| 872 | --|| ATTACK FUNCTIONS AND STUFF | |
| 873 | --\\=================================// | |
| 874 | ||
| 875 | function AttackTemplate() | |
| 876 | ATTACK = true | |
| 877 | Rooted = false | |
| 878 | for i=0, 0, 0.1 / Animation_Speed do | |
| 879 | Swait() | |
| 880 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 881 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 882 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 883 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 884 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 885 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 886 | end | |
| 887 | ATTACK = false | |
| 888 | Rooted = false | |
| 889 | end | |
| 890 | ||
| 891 | function GoldenPunch() | |
| 892 | ATTACK = true | |
| 893 | Rooted = false | |
| 894 | local SPEED = Speed | |
| 895 | Speed = 8 | |
| 896 | CreateSound("169445572", RightArm, 10, 1.1)
| |
| 897 | for i=0, 0, 0.1 / Animation_Speed do | |
| 898 | Swait() | |
| 899 | turnto(Mouse.Hit.p) | |
| 900 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-1/15,-1/15,-1/15)) | |
| 901 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15)) | |
| 902 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
| 903 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
| 904 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 905 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 906 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 907 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 908 | end | |
| 909 | for i=0, 0, 0.1 / Animation_Speed do | |
| 910 | Swait() | |
| 911 | turnto(Mouse.Hit.p) | |
| 912 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
| 913 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
| 914 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 915 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 916 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 917 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 918 | end | |
| 919 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Really black", "Punch", VT(50,50,50),false) | |
| 920 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
| 921 | PART.Shape = "Ball" | |
| 922 | local bv = Instance.new("BodyVelocity")
| |
| 923 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 924 | bv.velocity = RootPart.CFrame.lookVector*600 | |
| 925 | bv.Parent = PART | |
| 926 | bv.Name = "PROJECTILEVELOCITY" | |
| 927 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2.5,0.2,2.5)) | |
| 928 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(3,0.2,3)) | |
| 929 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2)) | |
| 930 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Black",VT(2.2,0.6,2.2)) | |
| 931 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
| |
| 932 | coroutine.resume(coroutine.create(function() | |
| 933 | for i = 1, 10 do | |
| 934 | Swait() | |
| 935 | PART.Transparency = PART.Transparency + 0.2/10 | |
| 936 | PART.Size = PART.Size + VT(5,5,5) | |
| 937 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
| 938 | end | |
| 939 | PART:Destroy() | |
| 940 | end)) | |
| 941 | for i=0, 0, 0.1 / Animation_Speed do | |
| 942 | Swait() | |
| 943 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
| 944 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
| 945 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 946 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 947 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 948 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 949 | end | |
| 950 | Speed = SPEED | |
| 951 | ATTACK = false | |
| 952 | Rooted = false | |
| 953 | end | |
| 954 | ||
| 955 | function GoldenGrasp() | |
| 956 | ATTACK = true | |
| 957 | Rooted = false | |
| 958 | local HASGRABBED = false | |
| 959 | local WELD = nil | |
| 960 | local TORS = nil | |
| 961 | local hitting = FIST.Touched:connect(function(hit) | |
| 962 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 963 | if hit.Parent.Humanoid.Health ~= 0 then | |
| 964 | UNANCHOR = false | |
| 965 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 966 | TORS.Anchored = true | |
| 967 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 968 | WELD = weldBetween(RightArm,TORS) | |
| 969 | HASGRABBED = true | |
| 970 | Rooted = true | |
| 971 | end | |
| 972 | end | |
| 973 | end) | |
| 974 | for i=0, 1, 0.1 / Animation_Speed do | |
| 975 | Swait() | |
| 976 | if HASGRABBED == true then | |
| 977 | break | |
| 978 | end | |
| 979 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
| 980 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
| 981 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 982 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 983 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 984 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 985 | end | |
| 986 | hitting:disconnect() | |
| 987 | if HASGRABBED == true then | |
| 988 | TORS.Anchored = false | |
| 989 | RootPart.Anchored = true | |
| 990 | for i=0, 1, 0.5 / Animation_Speed do | |
| 991 | Swait() | |
| 992 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 993 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 994 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 995 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 996 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 997 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 998 | end | |
| 999 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Gold",VT(0.5,0.3,0.5)) | |
| 1000 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Gold",VT(0.6,0.3,0.6)) | |
| 1001 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Sound", VT(0,0,0)) | |
| 1002 | SOUNDPART.CFrame = RootPart.CFrame | |
| 1003 | Debris:AddItem(SOUNDPART,5) | |
| 1004 | CreateSound("1295446488", SOUNDPART, 2, 1)
| |
| 1005 | for i = 1, 7 do | |
| 1006 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Really red", 1 + MRANDOM(1,30)/15) | |
| 1007 | end | |
| 1008 | for i=0, 1, 0 / Animation_Speed do | |
| 1009 | Swait() | |
| 1010 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 1011 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1012 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1013 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1014 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1015 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1016 | end | |
| 1017 | for i=0, 1, 0 / Animation_Speed do | |
| 1018 | Swait() | |
| 1019 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1020 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1021 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 1022 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 1023 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1024 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1025 | end | |
| 1026 | if HITFLOOR ~= nil then | |
| 1027 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) | |
| 1028 | end | |
| 1029 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
| |
| 1030 | WELD:remove() | |
| 1031 | for i = 1, 12 do | |
| 1032 | Swait() | |
| 1033 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
| 1034 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Really black",VT(0.3,3,0.3)) | |
| 1035 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Gold",VT(1,0.4,1)) | |
| 1036 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Black",VT(2.3,0.3,2.3)) | |
| 1037 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really red", 1 + MRANDOM(1,30)/5) | |
| 1038 | Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Gold", 1 + MRANDOM(1,30)/15) | |
| 1039 | end | |
| 1040 | end | |
| 1041 | UNANCHOR = true | |
| 1042 | ATTACK = false | |
| 1043 | Rooted = false | |
| 1044 | end | |
| 1045 | ||
| 1046 | function Mach20() | |
| 1047 | local ORIGIN = RootPart.Position | |
| 1048 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really black",VT(0.2,3,0.4)) | |
| 1049 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Gold",VT(0.2,3.1,0.6)) | |
| 1050 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Sound", VT(0,0,0)) | |
| 1051 | SOUNDPART.CFrame = RootPart.CFrame | |
| 1052 | Debris:AddItem(SOUNDPART,5) | |
| 1053 | CreateSound("1295446488", SOUNDPART, 2, 1)
| |
| 1054 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
| 1055 | Swait() | |
| 1056 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3,0.4)) | |
| 1057 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3.1,0.6)) | |
| 1058 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "Sound", VT(0,0,0)) | |
| 1059 | SOUNDPART.CFrame = RootPart.CFrame | |
| 1060 | Debris:AddItem(SOUNDPART,5) | |
| 1061 | CreateSound("1295446488", SOUNDPART, 2, 1)
| |
| 1062 | if MRANDOM(1,8) == 1 then | |
| 1063 | ATTACK = true | |
| 1064 | Rooted = true | |
| 1065 | local FRUITSTABLE = {
| |
| 1066 | {MeshId = "16190555", TextureId = "16190577", Color = "Gold"},
| |
| 1067 | {MeshId = "119574562", TextureId = "64374853", Color = "Really black"},
| |
| 1068 | {MeshId = "24394186", TextureId = "24394178", Color = "Black"}
| |
| 1069 | } | |
| 1070 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
| 1071 | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) | |
| 1072 | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
| |
| 1073 | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) | |
| 1074 | weldBetween(RightArm,FRUITMODEL) | |
| 1075 | for i=0, 0, 0.1 / Animation_Speed do | |
| 1076 | Swait() | |
| 1077 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1078 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1079 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1080 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1081 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1082 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1083 | end | |
| 1084 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
| |
| 1085 | FRUITMODEL:remove() | |
| 1086 | for i = 1, 15 do | |
| 1087 | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) | |
| 1088 | end | |
| 1089 | for i=0, 0, 0.1 / Animation_Speed do | |
| 1090 | Swait() | |
| 1091 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1092 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1093 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1094 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1095 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1096 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1097 | end | |
| 1098 | ATTACK = false | |
| 1099 | Rooted = false | |
| 1100 | end | |
| 1101 | end | |
| 1102 | ||
| 1103 | function ImplosionCollision() | |
| 1104 | ATTACK = true | |
| 1105 | Rooted = true | |
| 1106 | CreateSound("169445572", RightArm, 10, 0.8)
| |
| 1107 | for i=0, 0, 0.1 / Animation_Speed do | |
| 1108 | Swait() | |
| 1109 | turnto(Mouse.Hit.p) | |
| 1110 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Gold",VT(0.2,0,0.2)) | |
| 1111 | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1.1) | |
| 1112 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Really black",VT(0.001,0.001,1),0) | |
| 1113 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Really black",VT(0.001,0.001,2),0) | |
| 1114 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-1/15,-1/15,-1/15)) | |
| 1115 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15)) | |
| 1116 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
| 1117 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
| 1118 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 1119 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1120 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1121 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1122 | end | |
| 1123 | for i=0, 0, 0.1 / Animation_Speed do | |
| 1124 | Swait() | |
| 1125 | turnto(Mouse.Hit.p) | |
| 1126 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
| 1127 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
| 1128 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1129 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1130 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1131 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1132 | end | |
| 1133 | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.04,-0.04,-0.04)) | |
| 1134 | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Gold",VT(-0.035,-0.035,-0.035)) | |
| 1135 | coroutine.resume(coroutine.create(function() | |
| 1136 | Swait(100) | |
| 1137 | for i = 1, 5 do | |
| 1138 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Gold",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
| 1139 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4.5*i,0.2,4.5*i)) | |
| 1140 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5*i,0.2,5*i)) | |
| 1141 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4*i,0.6,4*i)) | |
| 1142 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5.2*i,0.6,5.2*i)) | |
| 1143 | end | |
| 1144 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
| 1145 | for i = 1, 5 do | |
| 1146 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
| |
| 1147 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
| |
| 1148 | end | |
| 1149 | coroutine.resume(coroutine.create(function() | |
| 1150 | for i = 1, 10 do | |
| 1151 | Swait() | |
| 1152 | for i = 1, 1 do | |
| 1153 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1 + MRANDOM(1,30)/5) | |
| 1154 | end | |
| 1155 | for i = 1, 4 do | |
| 1156 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really black", 1 + MRANDOM(1,30)/3) | |
| 1157 | end | |
| 1158 | end | |
| 1159 | end)) | |
| 1160 | end)) | |
| 1161 | for i=0, 0, 0.01 / Animation_Speed do | |
| 1162 | Swait() | |
| 1163 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
| 1164 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
| 1165 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 1166 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 1167 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1168 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1169 | end | |
| 1170 | ATTACK = false | |
| 1171 | Rooted = false | |
| 1172 | end | |
| 1173 | ||
| 1174 | --//=================================\\ | |
| 1175 | --|| ASSIGN THINGS TO KEYS | |
| 1176 | --\\=================================// | |
| 1177 | ||
| 1178 | function MouseDown(Mouse) | |
| 1179 | if ATTACK == false then | |
| 1180 | end | |
| 1181 | end | |
| 1182 | ||
| 1183 | function MouseUp(Mouse) | |
| 1184 | HOLD = false | |
| 1185 | end | |
| 1186 | ||
| 1187 | function KeyDown(Key) | |
| 1188 | KEYHOLD = true | |
| 1189 | if Key == "z" and ATTACK == false then | |
| 1190 | GoldenPunch() | |
| 1191 | end | |
| 1192 | ||
| 1193 | if Key == "b" and ATTACK == false then | |
| 1194 | GoldenGrasp() | |
| 1195 | end | |
| 1196 | ||
| 1197 | if Key == "c" and ATTACK == false then | |
| 1198 | Mach20() | |
| 1199 | end | |
| 1200 | ||
| 1201 | if Key == "x" and ATTACK == false then | |
| 1202 | ImplosionCollision() | |
| 1203 | end | |
| 1204 | ||
| 1205 | if Key == "p" and ATTACK == false then | |
| 1206 | if Speed == 16 then | |
| 1207 | Speed = 150 | |
| 1208 | elseif Speed == 150 then | |
| 1209 | Speed = 16 | |
| 1210 | end | |
| 1211 | end | |
| 1212 | end | |
| 1213 | ||
| 1214 | function KeyUp(Key) | |
| 1215 | KEYHOLD = false | |
| 1216 | end | |
| 1217 | ||
| 1218 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1219 | MouseDown(NEWKEY) | |
| 1220 | end) | |
| 1221 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1222 | MouseUp(NEWKEY) | |
| 1223 | end) | |
| 1224 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1225 | KeyDown(NEWKEY) | |
| 1226 | end) | |
| 1227 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1228 | KeyUp(NEWKEY) | |
| 1229 | end) | |
| 1230 | ||
| 1231 | --//=================================\\ | |
| 1232 | --\\=================================// | |
| 1233 | ||
| 1234 | ||
| 1235 | function unanchor() | |
| 1236 | if UNANCHOR == true then | |
| 1237 | RootPart.Anchored = false | |
| 1238 | end | |
| 1239 | g = Character:GetChildren() | |
| 1240 | for i = 1, #g do | |
| 1241 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
| 1242 | g[i].Anchored = false | |
| 1243 | end | |
| 1244 | end | |
| 1245 | g = Weapon:GetChildren() | |
| 1246 | for i = 1, #g do | |
| 1247 | if g[i].ClassName == "Part" then | |
| 1248 | g[i].Anchored = false | |
| 1249 | end | |
| 1250 | end | |
| 1251 | end | |
| 1252 | ||
| 1253 | ||
| 1254 | --//=================================\\ | |
| 1255 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1256 | --\\=================================// | |
| 1257 | ||
| 1258 | Humanoid.Changed:connect(function(Jump) | |
| 1259 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1260 | Humanoid.Jump = false | |
| 1261 | end | |
| 1262 | end) | |
| 1263 | ||
| 1264 | while true do | |
| 1265 | Swait() | |
| 1266 | ANIMATE.Parent = nil | |
| 1267 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 1268 | IDLEANIMATION:Play() | |
| 1269 | SINE = SINE + CHANGE | |
| 1270 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1271 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1272 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1273 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 1274 | local WALKSPEEDVALUE = 0 | |
| 1275 | if Speed < 35 then | |
| 1276 | WALKSPEEDVALUE = 6 | |
| 1277 | else | |
| 1278 | WALKSPEEDVALUE = 3 | |
| 1279 | end | |
| 1280 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
| 1281 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed) | |
| 1282 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1283 | if Speed < 35 then | |
| 1284 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 1285 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 1286 | else | |
| 1287 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 1288 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
| 1289 | end | |
| 1290 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
| 1291 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1292 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1293 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1294 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1295 | end | |
| 1296 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1297 | ANIM = "Jump" | |
| 1298 | if ATTACK == false then | |
| 1299 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1300 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1301 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1302 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1303 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1304 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1305 | end | |
| 1306 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1307 | ANIM = "Fall" | |
| 1308 | if ATTACK == false then | |
| 1309 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1310 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1311 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1312 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1313 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1314 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1315 | end | |
| 1316 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1317 | ANIM = "Idle" | |
| 1318 | if ATTACK == false then | |
| 1319 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1320 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1321 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1322 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1323 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1324 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1325 | end | |
| 1326 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then | |
| 1327 | ANIM = "Walk" | |
| 1328 | WALK = WALK + 1 / Animation_Speed | |
| 1329 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
| 1330 | WALK = 0 | |
| 1331 | if WALKINGANIM == true then | |
| 1332 | WALKINGANIM = false | |
| 1333 | elseif WALKINGANIM == false then | |
| 1334 | WALKINGANIM = true | |
| 1335 | end | |
| 1336 | end | |
| 1337 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1338 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1339 | if ATTACK == false then | |
| 1340 | if Speed < 35 then | |
| 1341 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1342 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1343 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1344 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1345 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 1346 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1347 | else | |
| 1348 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1349 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1350 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1351 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1352 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 1353 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1354 | end | |
| 1355 | end | |
| 1356 | end | |
| 1357 | unanchor() | |
| 1358 | Humanoid.MaxHealth = "inf" | |
| 1359 | Humanoid.Health = "inf" | |
| 1360 | if Rooted == false then | |
| 1361 | Disable_Jump = false | |
| 1362 | Humanoid.WalkSpeed = Speed | |
| 1363 | elseif Rooted == true then | |
| 1364 | Disable_Jump = true | |
| 1365 | Humanoid.WalkSpeed = 0 | |
| 1366 | end | |
| 1367 | for _, c in pairs(Character:GetChildren()) do | |
| 1368 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
| 1369 | c.Material = "Neon" | |
| 1370 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 1371 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 1372 | end | |
| 1373 | c.Color = C3(0,0,0) | |
| 1374 | if c == Head then | |
| 1375 | if c:FindFirstChild("face") then
| |
| 1376 | c.face:remove() | |
| 1377 | end | |
| 1378 | end | |
| 1379 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 1380 | c:remove() | |
| 1381 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 1382 | c:remove() | |
| 1383 | end | |
| 1384 | end | |
| 1385 | sick.SoundId = "rbxassetid://1551788627" | |
| 1386 | sick.Looped = true | |
| 1387 | sick.Pitch = 1 | |
| 1388 | sick.Volume = 3 | |
| 1389 | sick.Parent = Torso | |
| 1390 | sick:Resume() | |
| 1391 | Humanoid.Name = "Pharaoh" | |
| 1392 | end | |
| 1393 | ||
| 1394 | --//=================================\\ | |
| 1395 | --\\=================================// | |
| 1396 | ||
| 1397 | ||
| 1398 | ||
| 1399 | ||
| 1400 | ||
| 1401 | --//====================================================\\-- | |
| 1402 | --|| END OF SCRIPT | |
| 1403 | --\\====================================================//-- |