SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --[[Deadly Ace Grenade]]-- |
| 1 | + | --[[Star Ace Grenade]]-- |
| 2 | - | maincolor = "Really red" |
| 2 | + | maincolor = "New Yeller" |
| 3 | secondcolor = "Institutional white" | |
| 4 | ||
| 5 | MH = Instance.new("Sound", game.Players.LocalPlayer.Character)
| |
| 6 | MH.SoundId = "rbxassetid://239403615" | |
| 7 | MH.Looped = true | |
| 8 | MH.Volume = 0.7 | |
| 9 | MH:Play() | |
| 10 | ||
| 11 | wait(1 / 60) | |
| 12 | Effects = { }
| |
| 13 | local Player = game.Players.localPlayer | |
| 14 | local Character = Player.Character | |
| 15 | local Humanoid = Character.Humanoid | |
| 16 | local mouse = Player:GetMouse() | |
| 17 | local m = Instance.new('Model', Character)
| |
| 18 | m.Name = "WeaponModel" | |
| 19 | local LeftArm = Character["Left Arm"] | |
| 20 | local RightArm = Character["Right Arm"] | |
| 21 | local LeftLeg = Character["Left Leg"] | |
| 22 | local RightLeg = Character["Right Leg"] | |
| 23 | local Head = Character.Head | |
| 24 | local Torso = Character.Torso | |
| 25 | local cam = game.Workspace.CurrentCamera | |
| 26 | local RootPart = Character.HumanoidRootPart | |
| 27 | local RootJoint = RootPart.RootJoint | |
| 28 | local equipped = false | |
| 29 | local attack = false | |
| 30 | local Anim = 'Idle' | |
| 31 | local idle = 0 | |
| 32 | local attacktype = 1 | |
| 33 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 34 | local velocity = RootPart.Velocity.y | |
| 35 | local sine = 0 | |
| 36 | local change = 1 | |
| 37 | local grabbed = false | |
| 38 | local cn = CFrame.new | |
| 39 | local mr = math.rad | |
| 40 | local angles = CFrame.Angles | |
| 41 | local ud = UDim2.new | |
| 42 | local c3 = Color3.new | |
| 43 | ||
| 44 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 45 | Humanoid.Animator:Destroy() | |
| 46 | Character.Animate:Destroy() | |
| 47 | ||
| 48 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 49 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 50 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 51 | ||
| 52 | RSH, LSH = nil, nil | |
| 53 | ||
| 54 | RW = Instance.new("Weld")
| |
| 55 | LW = Instance.new("Weld")
| |
| 56 | ||
| 57 | RH = Torso["Right Hip"] | |
| 58 | LH = Torso["Left Hip"] | |
| 59 | ||
| 60 | RSH = Torso["Right Shoulder"] | |
| 61 | LSH = Torso["Left Shoulder"] | |
| 62 | ||
| 63 | RSH.Parent = nil | |
| 64 | LSH.Parent = nil | |
| 65 | ||
| 66 | RW.Name = "RW" | |
| 67 | RW.Part0 = Torso | |
| 68 | RW.C0 = cn(1.5, 0.5, 0) | |
| 69 | RW.C1 = cn(0, 0.5, 0) | |
| 70 | RW.Part1 = RightArm | |
| 71 | RW.Parent = Torso | |
| 72 | ||
| 73 | LW.Name = "LW" | |
| 74 | LW.Part0 = Torso | |
| 75 | LW.C0 = cn(-1.5, 0.5, 0) | |
| 76 | LW.C1 = cn(0, 0.5, 0) | |
| 77 | LW.Part1 = LeftArm | |
| 78 | LW.Parent = Torso | |
| 79 | ||
| 80 | function clerp(a, b, t) | |
| 81 | local qa = {
| |
| 82 | QuaternionFromCFrame(a) | |
| 83 | } | |
| 84 | local qb = {
| |
| 85 | QuaternionFromCFrame(b) | |
| 86 | } | |
| 87 | local ax, ay, az = a.x, a.y, a.z | |
| 88 | local bx, by, bz = b.x, b.y, b.z | |
| 89 | local _t = 1 - t | |
| 90 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 91 | end | |
| 92 | ||
| 93 | function QuaternionFromCFrame(cf) | |
| 94 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 95 | local trace = m00 + m11 + m22 | |
| 96 | if trace > 0 then | |
| 97 | local s = math.sqrt(1 + trace) | |
| 98 | local recip = 0.5 / s | |
| 99 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 100 | else | |
| 101 | local i = 0 | |
| 102 | if m11 > m00 then | |
| 103 | i = 1 | |
| 104 | end | |
| 105 | if m22 > (i == 0 and m00 or m11) then | |
| 106 | i = 2 | |
| 107 | end | |
| 108 | if i == 0 then | |
| 109 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 110 | local recip = 0.5 / s | |
| 111 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 112 | elseif i == 1 then | |
| 113 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 114 | local recip = 0.5 / s | |
| 115 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 116 | elseif i == 2 then | |
| 117 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 118 | local recip = 0.5 / s | |
| 119 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 120 | end | |
| 121 | end | |
| 122 | end | |
| 123 | ||
| 124 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 125 | local xs, ys, zs = x + x, y + y, z + z | |
| 126 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 127 | local xx = x * xs | |
| 128 | local xy = x * ys | |
| 129 | local xz = x * zs | |
| 130 | local yy = y * ys | |
| 131 | local yz = y * zs | |
| 132 | local zz = z * zs | |
| 133 | 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)) | |
| 134 | end | |
| 135 | ||
| 136 | function QuaternionSlerp(a, b, t) | |
| 137 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 138 | local startInterp, finishInterp; | |
| 139 | if cosTheta >= 0.0001 then | |
| 140 | if (1 - cosTheta) > 0.0001 then | |
| 141 | local theta = math.acos(cosTheta) | |
| 142 | local invSinTheta = 1 / math.sin(theta) | |
| 143 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 144 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 145 | else | |
| 146 | startInterp = 1 - t | |
| 147 | finishInterp = t | |
| 148 | end | |
| 149 | else | |
| 150 | if (1 + cosTheta) > 0.0001 then | |
| 151 | local theta = math.acos(-cosTheta) | |
| 152 | local invSinTheta = 1 / math.sin(theta) | |
| 153 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 154 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 155 | else | |
| 156 | startInterp = t - 1 | |
| 157 | finishInterp = t | |
| 158 | end | |
| 159 | end | |
| 160 | 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 | |
| 161 | end | |
| 162 | ||
| 163 | function swait(num) | |
| 164 | if num == 0 or num == nil then | |
| 165 | game:service'RunService'.RenderStepped:wait(0) | |
| 166 | else | |
| 167 | for i = 0, num do | |
| 168 | game:service'RunService'.RenderStepped:wait(0) | |
| 169 | end | |
| 170 | end | |
| 171 | end | |
| 172 | ||
| 173 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 174 | local Create = RbxUtility.Create | |
| 175 | ||
| 176 | function RemoveOutlines(part) | |
| 177 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 178 | end | |
| 179 | ||
| 180 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 181 | local Part = Create("Part"){
| |
| 182 | formFactor = FormFactor, | |
| 183 | Parent = Parent, | |
| 184 | Reflectance = Reflectance, | |
| 185 | Transparency = Transparency, | |
| 186 | CanCollide = false, | |
| 187 | Locked = true, | |
| 188 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 189 | Name = Name, | |
| 190 | Size = Size, | |
| 191 | Material = Material, | |
| 192 | } | |
| 193 | RemoveOutlines(Part) | |
| 194 | return Part | |
| 195 | end | |
| 196 | ||
| 197 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 198 | local Msh = Create(Mesh){
| |
| 199 | Parent = Part, | |
| 200 | Offset = OffSet, | |
| 201 | Scale = Scale, | |
| 202 | } | |
| 203 | if Mesh == "SpecialMesh" then | |
| 204 | Msh.MeshType = MeshType | |
| 205 | Msh.MeshId = MeshId | |
| 206 | end | |
| 207 | return Msh | |
| 208 | end | |
| 209 | ||
| 210 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 211 | local Weld = Create("Weld"){
| |
| 212 | Parent = Parent, | |
| 213 | Part0 = Part0, | |
| 214 | Part1 = Part1, | |
| 215 | C0 = C0, | |
| 216 | C1 = C1, | |
| 217 | } | |
| 218 | return Weld | |
| 219 | end | |
| 220 | ||
| 221 | function rayCast(Position, Direction, Range, Ignore) | |
| 222 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 223 | end | |
| 224 | ||
| 225 | function CreateSound(id, par, vol, pit) | |
| 226 | coroutine.resume(coroutine.create(function() | |
| 227 | local sou = Instance.new("Sound", par or workspace)
| |
| 228 | sou.Volume = vol | |
| 229 | sou.Pitch = pit or 1 | |
| 230 | sou.SoundId = id | |
| 231 | wait() | |
| 232 | sou:play() | |
| 233 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 234 | end)) | |
| 235 | end | |
| 236 | ||
| 237 | local function getclosest(obj, distance) | |
| 238 | local last, lastx = distance + 1 | |
| 239 | for i, v in pairs(workspace:GetChildren()) do | |
| 240 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 241 | local t = v.Torso | |
| 242 | local dist = (t.Position - obj.Position).magnitude | |
| 243 | if dist <= distance then | |
| 244 | if dist < last then | |
| 245 | last = dist | |
| 246 | lastx = v | |
| 247 | end | |
| 248 | end | |
| 249 | end | |
| 250 | end | |
| 251 | return lastx | |
| 252 | end | |
| 253 | ||
| 254 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 255 | for i, v in pairs(hit:GetChildren()) do | |
| 256 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 257 | local find = v:FindFirstChild("Hitz")
| |
| 258 | if not find then | |
| 259 | if v.Parent:findFirstChild("Head") then
| |
| 260 | local BillG = Create("BillboardGui"){
| |
| 261 | Parent = v.Parent.Head, | |
| 262 | Size = UDim2.new(1, 0, 1, 0), | |
| 263 | Adornee = v.Parent.Head, | |
| 264 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 265 | } | |
| 266 | local TL = Create("TextLabel"){
| |
| 267 | Parent = BillG, | |
| 268 | Size = UDim2.new(3, 3, 3, 3), | |
| 269 | BackgroundTransparency = 1, | |
| 270 | Text = tostring(damage).."-", | |
| 271 | TextColor3 = Color1.Color, | |
| 272 | TextStrokeColor3 = Color2.Color, | |
| 273 | TextStrokeTransparency = 0, | |
| 274 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 275 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 276 | FontSize = Enum.FontSize.Size18, | |
| 277 | Font = "ArialBold", | |
| 278 | } | |
| 279 | coroutine.resume(coroutine.create(function() | |
| 280 | wait(1) | |
| 281 | for i = 0, 1, .1 do | |
| 282 | wait(.1) | |
| 283 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 284 | end | |
| 285 | BillG:Destroy() | |
| 286 | end)) | |
| 287 | end | |
| 288 | v.Health = v.Health - damage | |
| 289 | local bool = Create("BoolValue"){
| |
| 290 | Parent = v, | |
| 291 | Name = 'Hitz', | |
| 292 | } | |
| 293 | if HSound ~= nil and HPitch ~= nil then | |
| 294 | CreateSound(HSound, hit, 1, HPitch) | |
| 295 | end | |
| 296 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 297 | end | |
| 298 | end | |
| 299 | end | |
| 300 | end | |
| 301 | ||
| 302 | BeltHandle=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,1,maincolor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 303 | BeltHandleWeld=CreateWeld(m,Character["Torso"],BeltHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100003839, -0.10000658, 0.039604187, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 304 | CreateMesh("SpecialMesh",Handle,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 305 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 306 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00000143, 0.800000191, -0.900024414, 1.00000095, 0, 0, 0, 1.00000095, 0, 0, 0, 1)) | |
| 307 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 308 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 309 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199999452, 0.800000191, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 310 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 311 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 312 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000095, 0.800000668, -0.600036621, 1.00000095, 0, 0, 0, 1.00000095, 0, 0, 0, 1)) | |
| 313 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 314 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 315 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 0.800000191, -1.20002747, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 316 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 317 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 318 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.999999285, 1.20000017, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 319 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 320 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.399999976)) | |
| 321 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399996519, 1.19997859, -0.900001526, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 322 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.5))
| |
| 323 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1)) | |
| 324 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.873519182, 0.875028849, 7.62939453e-006, 1.00000048, 2.98023224e-008, 0, -2.98023224e-008, 1.00000048, 0, 0, 0, 1)) | |
| 325 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
| |
| 326 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 327 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.19999969, 1.20000017, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 328 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 329 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1.20000005, 0.200000003, 0.200000003)) | |
| 330 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.383595228, 0.873704672, 0.561660767, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 331 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 332 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 333 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.20000017, -0.600036621, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 334 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 335 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1)) | |
| 336 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.10000467, -0.839025259, 7.62939453e-006, 1.00000048, 2.98023224e-008, 0, -2.98023224e-008, 1.00000048, 0, 0, 0, 1)) | |
| 337 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
| |
| 338 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 339 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.20000017, -1.20002747, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 340 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 341 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 342 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00000143, 1.00000095, -0.900024414, 1.00000095, 0, 0, 0, 1.00000095, 0, 0, 0, 1)) | |
| 343 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 344 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 345 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199999571, 1.00000024, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 346 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 347 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 348 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.00000024, -1.20002747, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 349 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 350 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 351 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.00000024, -0.600036621, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 352 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 353 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2)) | |
| 354 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600006104, -0.550998211, -0.264925003, 0, 0, 1, 0.866030455, -0.50000298, 0, 0.50000298, 0.866030455, 0)) | |
| 355 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
| |
| 356 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2)) | |
| 357 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.551292419, -0.550997257, -0.264920235, 0, 0, 1, 0.866026282, -0.500000596, 0, 0.500000596, 0.866026282, 0)) | |
| 358 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
| |
| 359 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 360 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.618934631, -1.11904907, -0.378275394, -7.22996483e-005, 0.258449346, 0.966024876, -0.258846909, -0.933106005, 0.249622881, 0.965918303, -0.250034481, 0.0669662654)) | |
| 361 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 362 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 363 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146978378, 0.819980621, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872)) | |
| 364 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
| |
| 365 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 366 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146780014, -0.618598938, 0.819963455, -0.965918303, 0.250127673, -0.0666192323, 0.000367853441, 0.258694977, 0.965959072, 0.258847147, 0.933012903, -0.249970183)) | |
| 367 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0353727117, 0.0353727117, 0.195910335))
| |
| 368 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 369 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.618911743, -1.11906242, 0.0842905045, -7.22996483e-005, 0.258449346, 0.966024876, -0.258846909, -0.933106005, 0.249622881, 0.965918303, -0.250034481, 0.0669662654)) | |
| 370 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 371 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 372 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146529675, -1.11931229, -0.849815369, -0.966026366, 0.249645084, -0.0668619275, -0.258443773, -0.93311727, 0.249998152, 2.07903122e-005, 0.258784831, 0.965935051)) | |
| 373 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 374 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003)) | |
| 375 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146978855, 0.833585739, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872)) | |
| 376 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
| |
| 377 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 378 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146543503, -1.11932945, -0.387252808, -0.966026366, 0.249645084, -0.0668619275, -0.258443773, -0.93311727, 0.249998152, 2.07903122e-005, 0.258784831, 0.965935051)) | |
| 379 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 380 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533)) | |
| 381 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146978378, 1.11928749, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872)) | |
| 382 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 383 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 384 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146780968, -0.618598938, 0.887987137, -0.965918303, 0.250127673, -0.0666192323, 0.000367853441, 0.258694977, 0.965959072, 0.258847147, 0.933012903, -0.249970183)) | |
| 385 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 386 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159)) | |
| 387 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146979332, 0.874403, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872)) | |
| 388 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
| |
| 389 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 390 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.147661209, 0.618507385, -1.11928749, -0.965925753, 0.250000179, -0.0669872537, 9.5304955e-009, -0.258818716, -0.965925992, -0.258819222, -0.933012724, 0.249999642)) | |
| 391 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 392 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 393 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.618507385, 0.147660732, -1.11928558, 1.63101575e-007, 0.258819103, 0.965925872, -0.965925813, 0.249999955, -0.0669871345, -0.258818984, -0.933012784, 0.250000089)) | |
| 394 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 395 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 396 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.811385632, 1.0717392, -0.472206116, -0.965925872, -0.249999747, -0.0669872984, -3.85198042e-008, 0.258819461, -0.965925813, 0.258818835, -0.933012724, -0.250000447)) | |
| 397 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 398 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 399 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.07174683, -0.811385632, -0.472205162, 0, -0.258819073, 0.965925932, -0.965925813, -0.25, -0.0669872984, 0.258819044, -0.933012664, -0.25)) | |
| 400 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 401 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159)) | |
| 402 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812067032, 0.227316856, -1.07175446, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932)) | |
| 403 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
| |
| 404 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 405 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812459946, -1.07144165, 0.240917206, -0.965933323, -0.250073344, -0.0666048378, 0.000382640806, -0.258748859, 0.965944588, -0.25879091, 0.933012486, 0.250029802)) | |
| 406 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 407 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533)) | |
| 408 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812067032, 0.472203255, -1.07175446, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932)) | |
| 409 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 410 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 411 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812264442, -0.471851349, -0.840454102, -0.96582526, -0.250369936, -0.0670563057, 0.259194255, -0.932908118, -0.250001878, 3.5586083e-005, -0.258838713, 0.965920568)) | |
| 412 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 413 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003)) | |
| 414 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812066555, 0.186501503, -1.07175446, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932)) | |
| 415 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
| |
| 416 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 417 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812278271, -0.471839905, -1.30301666, -0.96582526, -0.250369936, -0.0670563057, 0.259194255, -0.932908118, -0.250001878, 3.5586083e-005, -0.258838713, 0.965920568)) | |
| 418 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 419 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 420 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0718689, -0.471829414, 1.04336882, 0.000128595711, -0.259174168, 0.965830684, 0.258791149, -0.932919323, -0.250377089, 0.965933323, 0.249980628, 0.066952005)) | |
| 421 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 422 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 423 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.07188416, -0.471815109, 0.580803394, 0.000128595711, -0.259174168, 0.965830684, 0.258791149, -0.932919323, -0.250377089, 0.965933323, 0.249980628, 0.066952005)) | |
| 424 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
| |
| 425 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 426 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812461376, -1.07144928, 0.172890663, -0.965933323, -0.250073344, -0.0666048378, 0.000382640806, -0.258748859, 0.965944588, -0.25879091, 0.933012486, 0.250029802)) | |
| 427 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0353727117, 0.0353727117, 0.195910335))
| |
| 428 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 429 | Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812067032, 0.172896385, -1.07176208, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932)) | |
| 430 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
| |
| 431 | ||
| 432 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 433 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 434 | prt.Anchored = true | |
| 435 | prt.CFrame = cframe | |
| 436 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 437 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 438 | if Type == 1 or Type == nil then | |
| 439 | table.insert(Effects, {
| |
| 440 | prt, | |
| 441 | "Block1", | |
| 442 | delay, | |
| 443 | x3, | |
| 444 | y3, | |
| 445 | z3, | |
| 446 | msh | |
| 447 | }) | |
| 448 | elseif Type == 2 then | |
| 449 | table.insert(Effects, {
| |
| 450 | prt, | |
| 451 | "Block2", | |
| 452 | delay, | |
| 453 | x3, | |
| 454 | y3, | |
| 455 | z3, | |
| 456 | msh | |
| 457 | }) | |
| 458 | end | |
| 459 | end | |
| 460 | ||
| 461 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 462 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 463 | prt.Anchored = true | |
| 464 | prt.CFrame = cframe | |
| 465 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 466 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 467 | table.insert(Effects, {
| |
| 468 | prt, | |
| 469 | "Cylinder", | |
| 470 | delay, | |
| 471 | x3, | |
| 472 | y3, | |
| 473 | z3, | |
| 474 | msh | |
| 475 | }) | |
| 476 | end | |
| 477 | ||
| 478 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 479 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 480 | prt.Anchored = true | |
| 481 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 482 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 483 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 484 | table.insert(Effects, {
| |
| 485 | prt, | |
| 486 | "Cylinder", | |
| 487 | delay, | |
| 488 | x3, | |
| 489 | y3, | |
| 490 | z3, | |
| 491 | msh | |
| 492 | }) | |
| 493 | end | |
| 494 | ||
| 495 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 496 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 497 | prt.Anchored = true | |
| 498 | prt.CFrame = cframe | |
| 499 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 500 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 501 | table.insert(Effects, {
| |
| 502 | prt, | |
| 503 | "Cylinder", | |
| 504 | delay, | |
| 505 | x3, | |
| 506 | y3, | |
| 507 | z3, | |
| 508 | msh | |
| 509 | }) | |
| 510 | end | |
| 511 | ||
| 512 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 513 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 514 | prt.Anchored = true | |
| 515 | prt.CFrame = cframe | |
| 516 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 517 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 518 | table.insert(Effects, {
| |
| 519 | prt, | |
| 520 | "Cylinder", | |
| 521 | delay, | |
| 522 | x3, | |
| 523 | y3, | |
| 524 | z3, | |
| 525 | msh | |
| 526 | }) | |
| 527 | end | |
| 528 | ||
| 529 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 530 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 531 | prt.Anchored = true | |
| 532 | prt.CFrame = cframe | |
| 533 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 534 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 535 | table.insert(Effects, {
| |
| 536 | prt, | |
| 537 | "Cylinder", | |
| 538 | delay, | |
| 539 | x3, | |
| 540 | y3, | |
| 541 | z3, | |
| 542 | msh | |
| 543 | }) | |
| 544 | end | |
| 545 | ||
| 546 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 547 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 548 | prt.Anchored = true | |
| 549 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 550 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 551 | local num = math.random(10, 50) / 1000 | |
| 552 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 553 | table.insert(Effects, {
| |
| 554 | prt, | |
| 555 | "Shatter", | |
| 556 | num, | |
| 557 | prt.CFrame, | |
| 558 | math.random() - math.random(), | |
| 559 | 0, | |
| 560 | math.random(50, 100) / 100 | |
| 561 | }) | |
| 562 | end | |
| 563 | ||
| 564 | local GrenadeModel = Instance.new("Model")
| |
| 565 | GrenadeModel.Parent = nil | |
| 566 | GrenadeModel.Name = "GrenadeModel" | |
| 567 | GrenadeHandle = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Handle", Vector3.new(0.720000029, 0.720000029, 0.720000029)) | |
| 568 | GrenadeHandleWeld = CreateWeld(GrenadeModel, Character["Left Arm"], GrenadeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0399894714, 0.0880355835, -1.03497469, -1, -1.29144695e-010, -1.65926451e-007, 1.65926451e-007, -5.96046377e-008, -1, 1.291348e-010, -1, 5.96046377e-008)) | |
| 569 | GrenadeHandleWeld.Name = "HandleWeld" | |
| 570 | CreateMesh("SpecialMesh", GrenadeHandle, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 571 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 572 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-005, 6.07967377e-006, -0.305992126, -0.99999994, 2.91125325e-005, 0.000388413115, 0.0003884123, -2.87742059e-005, 1, 2.91237066e-005, 1, 2.87628955e-005)) | |
| 573 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
| |
| 574 | Button = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Button", Vector3.new(0.287999928, 0.24000001, 0.251999915)) | |
| 575 | Buttonweld = CreateWeld(GrenadeModel, GrenadeHandle, Button, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.378005981, -2.2649765e-006, 1, 0, 4.87636868e-018, 0, 1, 0, 4.87636868e-018, 0, 1)) | |
| 576 | CreateMesh("CylinderMesh", Button, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.150000006, 1))
| |
| 577 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Part", Vector3.new(0.287999928, 0.24000001, 0.287999928)) | |
| 578 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.81469727e-006, -0.323997498, 4.05311584e-006, 1, 0, 4.87636868e-018, 0, 1, 0, 4.87636868e-018, 0, 1)) | |
| 579 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.299999982, 1))
| |
| 580 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 581 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-005, 9.77516174e-006, -0.395996094, -0.99999994, 2.91125325e-005, 0.000388413115, 0.0003884123, -2.87742059e-005, 1, 2.91237066e-005, 1, 2.87628955e-005)) | |
| 582 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.0468000025, 0.0468000025, 0.259199947))
| |
| 583 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 584 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.396003723, 5.96046448e-007, 1, 0, 4.87636868e-018, 0, 1, 0, 4.87636868e-018, 0, 1)) | |
| 585 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 0.300000012, 0.300000012))
| |
| 586 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 587 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.67572021e-006, -7.62939453e-006, -0.305995941, 2.90565495e-005, -0.000388383865, 0.99999994, -2.88907795e-005, -0.99999994, -0.000388383021, 1, -2.88794927e-005, -2.90677672e-005)) | |
| 588 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
| |
| 589 | Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928)) | |
| 590 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.000904083252, 0, 3.6234119e-012, 0, 1, -1, -1.42108547e-014, 3.62340236e-012, 1.42108547e-014, -1, 0)) | |
| 591 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 592 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 593 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.67028809e-005, 0, 0.306002617, -0.99999994, -0.000388418615, 2.90845201e-005, 0.0003884178, -1, -2.87741423e-005, 2.90956923e-005, -2.87628409e-005, 1)) | |
| 594 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
| |
| 595 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 596 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.14440918e-005, 1.52587891e-005, -0.306001425, -0.99999994, -0.000388418615, 2.90845201e-005, 0.0003884178, -1, -2.87741423e-005, 2.90956923e-005, -2.87628409e-005, 1)) | |
| 597 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
| |
| 598 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 599 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.45571136e-005, -3.05175781e-005, 0.305992126, 2.90565495e-005, -0.000388383865, 0.99999994, -2.88907795e-005, -0.99999994, -0.000388383021, 1, -2.88794927e-005, -2.90677672e-005)) | |
| 600 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
| |
| 601 | Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928)) | |
| 602 | Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000904083252, -5.96046448e-007, 0, -1, 2.46687932e-007, -5.96051919e-008, 5.96052629e-008, 3.27825546e-007, -1, -2.46687904e-007, -1, -3.27825546e-007)) | |
| 603 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 604 | ||
| 605 | local charge = false | |
| 606 | ||
| 607 | local CanThrow = true | |
| 608 | ||
| 609 | function ThrowGrenade() | |
| 610 | attack = true | |
| 611 | for i = 0, 1, 0.05 do | |
| 612 | swait() | |
| 613 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 614 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 615 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, .1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.1) | |
| 616 | if Torsovelocity > 2 then | |
| 617 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 618 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 619 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 620 | elseif Torsovelocity < 1 then | |
| 621 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 622 | - | CreateSound("http://roblox.com/asset/?id=175783708",Grenade.Handle,1,1)
|
| 622 | + | |
| 623 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 624 | end | |
| 625 | end | |
| 626 | Grenade = GrenadeModel:Clone() | |
| 627 | Grenade.Parent = Character | |
| 628 | CreateSound("http://roblox.com/asset/?id=156221488",Grenade.Handle,1,1)
| |
| 629 | for i = 0, 1, 0.05 do | |
| 630 | swait() | |
| 631 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 632 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 633 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 634 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.1) | |
| 635 | if Torsovelocity > 2 then | |
| 636 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 637 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 638 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 639 | elseif Torsovelocity < 1 then | |
| 640 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 641 | - | Beep.SoundId = "rbxassetid://146785518" |
| 641 | + | |
| 642 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 643 | end | |
| 644 | - | Beep.Pitch = 4 |
| 644 | + | |
| 645 | local Beep = Instance.new("Sound")
| |
| 646 | Beep.Name = "Beep" | |
| 647 | Beep.SoundId = "rbxassetid://151715959" | |
| 648 | Beep.Volume = 1 | |
| 649 | Beep.Looped = true | |
| 650 | Beep.Pitch = 1 | |
| 651 | Beep.Parent = Grenade.Handle | |
| 652 | Beep:Play() | |
| 653 | while wait() do | |
| 654 | if charge == true then | |
| 655 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 656 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 657 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.5) | |
| 658 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1) | |
| 659 | if Torsovelocity > 2 then | |
| 660 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 661 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 662 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 663 | elseif Torsovelocity < 1 then | |
| 664 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 665 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 666 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 667 | end | |
| 668 | elseif charge == false then | |
| 669 | break | |
| 670 | end | |
| 671 | end | |
| 672 | for i = 0, 1, 0.1 do | |
| 673 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 674 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 675 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 676 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1) | |
| 677 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 678 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 679 | if Torsovelocity > 2 then | |
| 680 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 681 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 682 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 683 | - | CreateSound("rbxassetid://320557413",LeftArm,1,1)
|
| 683 | + | |
| 684 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 685 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 686 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 687 | end | |
| 688 | end | |
| 689 | CreateSound("rbxassetid://608509471",LeftArm,1,1)
| |
| 690 | Grenade.HandleWeld:remove() | |
| 691 | local BodyVelocity = Instance.new("BodyVelocity")
| |
| 692 | BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 693 | BodyVelocity.velocity = (mouse.Hit.p - Grenade.Handle.Position).unit * 200 | |
| 694 | BodyVelocity.Parent = Grenade.Handle | |
| 695 | game:GetService("Debris"):AddItem(BodyVelocity, 0.1)
| |
| 696 | game:GetService("Debris"):AddItem(Grenade, 10)
| |
| 697 | wait() | |
| 698 | ExplodeCon = Grenade.Handle.Touched:connect(function(Hit) | |
| 699 | ExplodeCon:disconnect() | |
| 700 | Grenade.Parent = workspace | |
| 701 | CreateSound("rbxassetid://240036913",Grenade.Handle,1,1)
| |
| 702 | if Hit.Parent == Grenade.Handle.Parent then | |
| 703 | return | |
| 704 | end | |
| 705 | for _, Part in pairs(Grenade:GetChildren()) do | |
| 706 | pcall(function() | |
| 707 | Part.CanCollide = true | |
| 708 | end) | |
| 709 | end | |
| 710 | local Weld = Instance.new("Weld")
| |
| 711 | Weld.Part0 = Grenade.Handle | |
| 712 | Weld.Part1 = Hit | |
| 713 | Weld.C0 = Grenade.Handle.CFrame:inverse() * CFrame.new(Grenade.Handle.Position) | |
| 714 | Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Grenade.Handle.Position) | |
| 715 | Weld.Parent = Grenade.Handle | |
| 716 | for i = 4, 10, 0.075 do | |
| 717 | - | Sound.SoundId = "rbxassetid://166221646" |
| 717 | + | |
| 718 | - | Sound.Volume = 1 |
| 718 | + | |
| 719 | end | |
| 720 | - | Sound.Parent = Grenade.Handle |
| 720 | + | |
| 721 | local Sound = Instance.new("Sound")
| |
| 722 | Sound.Name = "Explode" | |
| 723 | Sound.SoundId = "rbxassetid://130779009" | |
| 724 | Sound.Volume = 10 | |
| 725 | Sound.Pitch = math.random(700, 900) / 1000 | |
| 726 | - | S.BlastPressure = 1000 |
| 726 | + | Sound.Parent = Instance.new("Sound", game.Players.LocalPlayer.Character)
|
| 727 | - | S.BlastRadius = 1000000 |
| 727 | + | |
| 728 | end | |
| 729 | local S = Instance.new("Explosion", workspace)
| |
| 730 | S.ExplosionType = "NoCraters" | |
| 731 | S.Position = Grenade.Handle.Position | |
| 732 | S.BlastPressure = 25000 | |
| 733 | S.BlastRadius = 35 | |
| 734 | S.ExplosionType = 2 | |
| 735 | Grenade:remove() | |
| 736 | end) | |
| 737 | for i = 0, 1, 0.05 do | |
| 738 | swait() | |
| 739 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 740 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 741 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 742 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 743 | if Torsovelocity > 2 then | |
| 744 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 745 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 746 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 747 | elseif Torsovelocity < 1 then | |
| 748 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 749 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 750 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 751 | end | |
| 752 | end | |
| 753 | attack = false | |
| 754 | end | |
| 755 | ||
| 756 | mouse.Button1Down:connect(function() | |
| 757 | if attack == false and CanThrow == true then | |
| 758 | charge = true | |
| 759 | ThrowGrenade() | |
| 760 | end | |
| 761 | end) | |
| 762 | ||
| 763 | mouse.Button1Up:connect(function() | |
| 764 | if charge == true and attack == true then | |
| 765 | charge = false | |
| 766 | end | |
| 767 | end) | |
| 768 | ||
| 769 | mouse.KeyDown:connect(function(k) | |
| 770 | k = k:lower() | |
| 771 | if attack == false and k == '' then | |
| 772 | ||
| 773 | end | |
| 774 | end) | |
| 775 | ||
| 776 | mouse.KeyUp:connect(function(k) | |
| 777 | k = k:lower() | |
| 778 | if attack == true and k == '' then | |
| 779 | ||
| 780 | end | |
| 781 | end) | |
| 782 | ||
| 783 | game:GetService'RunService'.Stepped:connect(function() | |
| 784 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 785 | velocity = RootPart.Velocity.y | |
| 786 | sine = sine + change | |
| 787 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 788 | if equipped == true or equipped == false then | |
| 789 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 790 | Anim = "Jump" | |
| 791 | if attack == false then | |
| 792 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 793 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 794 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1) | |
| 795 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1) | |
| 796 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
| 797 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
| 798 | end | |
| 799 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 800 | Anim = "Fall" | |
| 801 | if attack == false then | |
| 802 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 803 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 804 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
| 805 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
| 806 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 807 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 808 | end | |
| 809 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 810 | Anim = "Idle" | |
| 811 | if attack == false then | |
| 812 | change = 1 | |
| 813 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .3) | |
| 814 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3) | |
| 815 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.3) | |
| 816 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3) | |
| 817 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3) | |
| 818 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3) | |
| 819 | end | |
| 820 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 821 | Anim = "Walk" | |
| 822 | if attack == false then | |
| 823 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2) | |
| 824 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
| 825 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 826 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 827 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 828 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 829 | end | |
| 830 | end | |
| 831 | end | |
| 832 | if #Effects > 0 then | |
| 833 | for e = 1, #Effects do | |
| 834 | if Effects[e] ~= nil then | |
| 835 | local Thing = Effects[e] | |
| 836 | if Thing ~= nil then | |
| 837 | local Part = Thing[1] | |
| 838 | local Mode = Thing[2] | |
| 839 | local Delay = Thing[3] | |
| 840 | local IncX = Thing[4] | |
| 841 | local IncY = Thing[5] | |
| 842 | local IncZ = Thing[6] | |
| 843 | if Thing[1].Transparency <= 1 then | |
| 844 | if Thing[2] == "Block1" then | |
| 845 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 846 | local Mesh = Thing[1].Mesh | |
| 847 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 848 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 849 | elseif Thing[2] == "Block2" then | |
| 850 | Thing[1].CFrame = Thing[1].CFrame | |
| 851 | local Mesh = Thing[7] | |
| 852 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 853 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 854 | elseif Thing[2] == "Cylinder" then | |
| 855 | local Mesh = Thing[1].Mesh | |
| 856 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 857 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 858 | elseif Thing[2] == "Blood" then | |
| 859 | local Mesh = Thing[7] | |
| 860 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 861 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 862 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 863 | elseif Thing[2] == "Elec" then | |
| 864 | local Mesh = Thing[1].Mesh | |
| 865 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 866 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 867 | elseif Thing[2] == "Disappear" then | |
| 868 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 869 | elseif Thing[2] == "Shatter" then | |
| 870 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 871 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 872 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 873 | Thing[6] = Thing[6] + Thing[5] | |
| 874 | end | |
| 875 | else | |
| 876 | Part.Parent = nil | |
| 877 | table.remove(Effects, e) | |
| 878 | end | |
| 879 | end | |
| 880 | end | |
| 881 | end | |
| 882 | end | |
| 883 | end) |