SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | --[[NIGHTOWLACE_WEAPONRY]]-- | |
| 7 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
| 8 | secondcolor = "Really black" | |
| 9 | ||
| 10 | wait(1 / 60) | |
| 11 | Effects = { }
| |
| 12 | local Player = game.Players.localPlayer | |
| 13 | local Character = Player.Character | |
| 14 | local Humanoid = Character.Humanoid | |
| 15 | local mouse = Player:GetMouse() | |
| 16 | local m = Instance.new('Model', Character)
| |
| 17 | m.Name = "WeaponModel" | |
| 18 | local LeftArm = Character["Left Arm"] | |
| 19 | local RightArm = Character["Right Arm"] | |
| 20 | local LeftLeg = Character["Left Leg"] | |
| 21 | local RightLeg = Character["Right Leg"] | |
| 22 | local Head = Character.Head | |
| 23 | local Torso = Character.Torso | |
| 24 | local cam = game.Workspace.CurrentCamera | |
| 25 | local RootPart = Character.HumanoidRootPart | |
| 26 | local RootJoint = RootPart.RootJoint | |
| 27 | local equipped = false | |
| 28 | local attack = false | |
| 29 | local Anim = 'Idle' | |
| 30 | local idle = 0 | |
| 31 | local attacktype = 1 | |
| 32 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 33 | local velocity = RootPart.Velocity.y | |
| 34 | local sine = 0 | |
| 35 | local change = 1 | |
| 36 | local grabbed = false | |
| 37 | local cn = CFrame.new | |
| 38 | local mr = math.rad | |
| 39 | local angles = CFrame.Angles | |
| 40 | local ud = UDim2.new | |
| 41 | local c3 = Color3.new | |
| 42 | ||
| 43 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 44 | Humanoid.Animator:Destroy() | |
| 45 | Character.Animate:Destroy() | |
| 46 | ||
| 47 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 48 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 49 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 50 | ||
| 51 | RSH, LSH = nil, nil | |
| 52 | ||
| 53 | RW = Instance.new("Weld")
| |
| 54 | LW = Instance.new("Weld")
| |
| 55 | ||
| 56 | RH = Torso["Right Hip"] | |
| 57 | LH = Torso["Left Hip"] | |
| 58 | ||
| 59 | RSH = Torso["Right Shoulder"] | |
| 60 | LSH = Torso["Left Shoulder"] | |
| 61 | ||
| 62 | RSH.Parent = nil | |
| 63 | LSH.Parent = nil | |
| 64 | ||
| 65 | RW.Name = "RW" | |
| 66 | RW.Part0 = Torso | |
| 67 | RW.C0 = cn(1.5, 0.5, 0) | |
| 68 | RW.C1 = cn(0, 0.5, 0) | |
| 69 | RW.Part1 = RightArm | |
| 70 | RW.Parent = Torso | |
| 71 | ||
| 72 | LW.Name = "LW" | |
| 73 | LW.Part0 = Torso | |
| 74 | LW.C0 = cn(-1.5, 0.5, 0) | |
| 75 | LW.C1 = cn(0, 0.5, 0) | |
| 76 | LW.Part1 = LeftArm | |
| 77 | LW.Parent = Torso | |
| 78 | ||
| 79 | function clerp(a, b, t) | |
| 80 | local qa = {
| |
| 81 | QuaternionFromCFrame(a) | |
| 82 | } | |
| 83 | local qb = {
| |
| 84 | QuaternionFromCFrame(b) | |
| 85 | } | |
| 86 | local ax, ay, az = a.x, a.y, a.z | |
| 87 | local bx, by, bz = b.x, b.y, b.z | |
| 88 | local _t = 1 - t | |
| 89 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 90 | end | |
| 91 | ||
| 92 | function QuaternionFromCFrame(cf) | |
| 93 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 94 | local trace = m00 + m11 + m22 | |
| 95 | if trace > 0 then | |
| 96 | local s = math.sqrt(1 + trace) | |
| 97 | local recip = 0.5 / s | |
| 98 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 99 | else | |
| 100 | local i = 0 | |
| 101 | if m11 > m00 then | |
| 102 | i = 1 | |
| 103 | end | |
| 104 | if m22 > (i == 0 and m00 or m11) then | |
| 105 | i = 2 | |
| 106 | end | |
| 107 | if i == 0 then | |
| 108 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 109 | local recip = 0.5 / s | |
| 110 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 111 | elseif i == 1 then | |
| 112 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 113 | local recip = 0.5 / s | |
| 114 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 115 | elseif i == 2 then | |
| 116 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 117 | local recip = 0.5 / s | |
| 118 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 119 | end | |
| 120 | end | |
| 121 | end | |
| 122 | ||
| 123 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 124 | local xs, ys, zs = x + x, y + y, z + z | |
| 125 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 126 | local xx = x * xs | |
| 127 | local xy = x * ys | |
| 128 | local xz = x * zs | |
| 129 | local yy = y * ys | |
| 130 | local yz = y * zs | |
| 131 | local zz = z * zs | |
| 132 | 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)) | |
| 133 | end | |
| 134 | ||
| 135 | function QuaternionSlerp(a, b, t) | |
| 136 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 137 | local startInterp, finishInterp; | |
| 138 | if cosTheta >= 0.0001 then | |
| 139 | if (1 - cosTheta) > 0.0001 then | |
| 140 | local theta = math.acos(cosTheta) | |
| 141 | local invSinTheta = 1 / math.sin(theta) | |
| 142 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 143 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 144 | else | |
| 145 | startInterp = 1 - t | |
| 146 | finishInterp = t | |
| 147 | end | |
| 148 | else | |
| 149 | if (1 + cosTheta) > 0.0001 then | |
| 150 | local theta = math.acos(-cosTheta) | |
| 151 | local invSinTheta = 1 / math.sin(theta) | |
| 152 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 153 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 154 | else | |
| 155 | startInterp = t - 1 | |
| 156 | finishInterp = t | |
| 157 | end | |
| 158 | end | |
| 159 | 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 | |
| 160 | end | |
| 161 | ||
| 162 | function swait(num) | |
| 163 | if num == 0 or num == nil then | |
| 164 | game:service'RunService'.RenderStepped:wait(0) | |
| 165 | else | |
| 166 | for i = 0, num do | |
| 167 | game:service'RunService'.RenderStepped:wait(0) | |
| 168 | end | |
| 169 | end | |
| 170 | end | |
| 171 | ||
| 172 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 173 | local Create = RbxUtility.Create | |
| 174 | ||
| 175 | function RemoveOutlines(part) | |
| 176 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 177 | end | |
| 178 | ||
| 179 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 180 | local Part = Create("Part"){
| |
| 181 | formFactor = FormFactor, | |
| 182 | Parent = Parent, | |
| 183 | Reflectance = Reflectance, | |
| 184 | Transparency = Transparency, | |
| 185 | CanCollide = false, | |
| 186 | Locked = true, | |
| 187 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 188 | Name = Name, | |
| 189 | Size = Size, | |
| 190 | Material = Material, | |
| 191 | } | |
| 192 | RemoveOutlines(Part) | |
| 193 | return Part | |
| 194 | end | |
| 195 | ||
| 196 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 197 | local Msh = Create(Mesh){
| |
| 198 | Parent = Part, | |
| 199 | Offset = OffSet, | |
| 200 | Scale = Scale, | |
| 201 | } | |
| 202 | if Mesh == "SpecialMesh" then | |
| 203 | Msh.MeshType = MeshType | |
| 204 | Msh.MeshId = MeshId | |
| 205 | end | |
| 206 | return Msh | |
| 207 | end | |
| 208 | ||
| 209 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 210 | local Weld = Create("Weld"){
| |
| 211 | Parent = Parent, | |
| 212 | Part0 = Part0, | |
| 213 | Part1 = Part1, | |
| 214 | C0 = C0, | |
| 215 | C1 = C1, | |
| 216 | } | |
| 217 | return Weld | |
| 218 | end | |
| 219 | ||
| 220 | function rayCast(Position, Direction, Range, Ignore) | |
| 221 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 222 | end | |
| 223 | ||
| 224 | function CreateSound(id, par, vol, pit) | |
| 225 | coroutine.resume(coroutine.create(function() | |
| 226 | local sou = Instance.new("Sound", par or workspace)
| |
| 227 | sou.Volume = vol | |
| 228 | sou.Pitch = pit or 1 | |
| 229 | sou.SoundId = id | |
| 230 | wait() | |
| 231 | sou:play() | |
| 232 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 233 | end)) | |
| 234 | end | |
| 235 | ||
| 236 | local function getclosest(obj, distance) | |
| 237 | local last, lastx = distance + 1 | |
| 238 | for i, v in pairs(workspace:GetChildren()) do | |
| 239 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 240 | local t = v.Torso | |
| 241 | local dist = (t.Position - obj.Position).magnitude | |
| 242 | if dist <= distance then | |
| 243 | if dist < last then | |
| 244 | last = dist | |
| 245 | lastx = v | |
| 246 | end | |
| 247 | end | |
| 248 | end | |
| 249 | end | |
| 250 | return lastx | |
| 251 | end | |
| 252 | ||
| 253 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 254 | for i, v in pairs(hit:GetChildren()) do | |
| 255 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 256 | local find = v:FindFirstChild("Hitz")
| |
| 257 | if not find then | |
| 258 | if v.Parent:findFirstChild("Head") then
| |
| 259 | local BillG = Create("BillboardGui"){
| |
| 260 | Parent = v.Parent.Head, | |
| 261 | Size = UDim2.new(1, 0, 1, 0), | |
| 262 | Adornee = v.Parent.Head, | |
| 263 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 264 | } | |
| 265 | local TL = Create("TextLabel"){
| |
| 266 | Parent = BillG, | |
| 267 | Size = UDim2.new(3, 3, 3, 3), | |
| 268 | BackgroundTransparency = 1, | |
| 269 | Text = tostring(damage).."-", | |
| 270 | TextColor3 = Color1.Color, | |
| 271 | TextStrokeColor3 = Color2.Color, | |
| 272 | TextStrokeTransparency = 0, | |
| 273 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 274 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 275 | FontSize = Enum.FontSize.Size18, | |
| 276 | Font = "ArialBold", | |
| 277 | } | |
| 278 | coroutine.resume(coroutine.create(function() | |
| 279 | wait(1) | |
| 280 | for i = 0, 1, .1 do | |
| 281 | wait(.1) | |
| 282 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 283 | end | |
| 284 | BillG:Destroy() | |
| 285 | end)) | |
| 286 | end | |
| 287 | v.Health = v.Health - damage | |
| 288 | local bool = Create("BoolValue"){
| |
| 289 | Parent = v, | |
| 290 | Name = 'Hitz', | |
| 291 | } | |
| 292 | if HSound ~= nil and HPitch ~= nil then | |
| 293 | CreateSound(HSound, hit, 1, HPitch) | |
| 294 | end | |
| 295 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 296 | end | |
| 297 | end | |
| 298 | end | |
| 299 | end | |
| 300 | ||
| 301 | BeltHandle=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,1,maincolor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 302 | 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)) | |
| 303 | CreateMesh("SpecialMesh",Handle,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 304 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 305 | 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)) | |
| 306 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 307 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 308 | 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)) | |
| 309 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 310 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 311 | 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)) | |
| 312 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 313 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 314 | 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)) | |
| 315 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 316 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 317 | 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)) | |
| 318 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 319 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.399999976)) | |
| 320 | 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)) | |
| 321 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.5))
| |
| 322 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1)) | |
| 323 | 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)) | |
| 324 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
| |
| 325 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 326 | 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)) | |
| 327 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 328 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1.20000005, 0.200000003, 0.200000003)) | |
| 329 | 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)) | |
| 330 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 331 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 332 | 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)) | |
| 333 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 334 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1)) | |
| 335 | 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)) | |
| 336 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
| |
| 337 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 338 | 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)) | |
| 339 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 340 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 341 | 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)) | |
| 342 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 343 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012)) | |
| 344 | 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)) | |
| 345 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
| |
| 346 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 347 | 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)) | |
| 348 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 349 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003)) | |
| 350 | 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)) | |
| 351 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
| |
| 352 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2)) | |
| 353 | 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)) | |
| 354 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
| |
| 355 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2)) | |
| 356 | 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)) | |
| 357 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
| |
| 358 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 359 | 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)) | |
| 360 | 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))
| |
| 361 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 362 | 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)) | |
| 363 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
| |
| 364 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 365 | 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)) | |
| 366 | 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))
| |
| 367 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 368 | 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)) | |
| 369 | 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))
| |
| 370 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 371 | 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)) | |
| 372 | 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))
| |
| 373 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003)) | |
| 374 | 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)) | |
| 375 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
| |
| 376 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 377 | 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)) | |
| 378 | 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))
| |
| 379 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533)) | |
| 380 | 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)) | |
| 381 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 382 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 383 | 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)) | |
| 384 | 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))
| |
| 385 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159)) | |
| 386 | 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)) | |
| 387 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
| |
| 388 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 389 | 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)) | |
| 390 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 391 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 392 | 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)) | |
| 393 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 394 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 395 | 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)) | |
| 396 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 397 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159)) | |
| 398 | 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)) | |
| 399 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 400 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159)) | |
| 401 | 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)) | |
| 402 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
| |
| 403 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 404 | 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)) | |
| 405 | 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))
| |
| 406 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533)) | |
| 407 | 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)) | |
| 408 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 409 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 410 | 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)) | |
| 411 | 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))
| |
| 412 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003)) | |
| 413 | 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)) | |
| 414 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
| |
| 415 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 416 | 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)) | |
| 417 | 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))
| |
| 418 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 419 | 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)) | |
| 420 | 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))
| |
| 421 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 422 | 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)) | |
| 423 | 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))
| |
| 424 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 425 | 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)) | |
| 426 | 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))
| |
| 427 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 428 | 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)) | |
| 429 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
| |
| 430 | ||
| 431 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 432 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 433 | prt.Anchored = true | |
| 434 | prt.CFrame = cframe | |
| 435 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 436 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 437 | if Type == 1 or Type == nil then | |
| 438 | table.insert(Effects, {
| |
| 439 | prt, | |
| 440 | "Block1", | |
| 441 | delay, | |
| 442 | x3, | |
| 443 | y3, | |
| 444 | z3, | |
| 445 | msh | |
| 446 | }) | |
| 447 | elseif Type == 2 then | |
| 448 | table.insert(Effects, {
| |
| 449 | prt, | |
| 450 | "Block2", | |
| 451 | delay, | |
| 452 | x3, | |
| 453 | y3, | |
| 454 | z3, | |
| 455 | msh | |
| 456 | }) | |
| 457 | end | |
| 458 | end | |
| 459 | ||
| 460 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 461 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 462 | prt.Anchored = true | |
| 463 | prt.CFrame = cframe | |
| 464 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 465 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 466 | table.insert(Effects, {
| |
| 467 | prt, | |
| 468 | "Cylinder", | |
| 469 | delay, | |
| 470 | x3, | |
| 471 | y3, | |
| 472 | z3, | |
| 473 | msh | |
| 474 | }) | |
| 475 | end | |
| 476 | ||
| 477 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 478 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 479 | prt.Anchored = true | |
| 480 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 481 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 482 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 483 | table.insert(Effects, {
| |
| 484 | prt, | |
| 485 | "Cylinder", | |
| 486 | delay, | |
| 487 | x3, | |
| 488 | y3, | |
| 489 | z3, | |
| 490 | msh | |
| 491 | }) | |
| 492 | end | |
| 493 | ||
| 494 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 495 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 496 | prt.Anchored = true | |
| 497 | prt.CFrame = cframe | |
| 498 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 499 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 500 | table.insert(Effects, {
| |
| 501 | prt, | |
| 502 | "Cylinder", | |
| 503 | delay, | |
| 504 | x3, | |
| 505 | y3, | |
| 506 | z3, | |
| 507 | msh | |
| 508 | }) | |
| 509 | end | |
| 510 | ||
| 511 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 512 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 513 | prt.Anchored = true | |
| 514 | prt.CFrame = cframe | |
| 515 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 516 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 517 | table.insert(Effects, {
| |
| 518 | prt, | |
| 519 | "Cylinder", | |
| 520 | delay, | |
| 521 | x3, | |
| 522 | y3, | |
| 523 | z3, | |
| 524 | msh | |
| 525 | }) | |
| 526 | end | |
| 527 | ||
| 528 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 529 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 530 | prt.Anchored = true | |
| 531 | prt.CFrame = cframe | |
| 532 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 533 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 534 | table.insert(Effects, {
| |
| 535 | prt, | |
| 536 | "Cylinder", | |
| 537 | delay, | |
| 538 | x3, | |
| 539 | y3, | |
| 540 | z3, | |
| 541 | msh | |
| 542 | }) | |
| 543 | end | |
| 544 | ||
| 545 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 546 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 547 | prt.Anchored = true | |
| 548 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 549 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 550 | local num = math.random(10, 50) / 1000 | |
| 551 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 552 | table.insert(Effects, {
| |
| 553 | prt, | |
| 554 | "Shatter", | |
| 555 | num, | |
| 556 | prt.CFrame, | |
| 557 | math.random() - math.random(), | |
| 558 | 0, | |
| 559 | math.random(50, 100) / 100 | |
| 560 | }) | |
| 561 | end | |
| 562 | ||
| 563 | local GrenadeModel = Instance.new("Model")
| |
| 564 | GrenadeModel.Parent = nil | |
| 565 | GrenadeModel.Name = "GrenadeModel" | |
| 566 | GrenadeHandle = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Handle", Vector3.new(0.720000029, 0.720000029, 0.720000029)) | |
| 567 | 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)) | |
| 568 | GrenadeHandleWeld.Name = "HandleWeld" | |
| 569 | CreateMesh("SpecialMesh", GrenadeHandle, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 570 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 571 | 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)) | |
| 572 | 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))
| |
| 573 | Button = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Button", Vector3.new(0.287999928, 0.24000001, 0.251999915)) | |
| 574 | 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)) | |
| 575 | CreateMesh("CylinderMesh", Button, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.150000006, 1))
| |
| 576 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Part", Vector3.new(0.287999928, 0.24000001, 0.287999928)) | |
| 577 | 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)) | |
| 578 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.299999982, 1))
| |
| 579 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 580 | 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)) | |
| 581 | 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))
| |
| 582 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 583 | 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)) | |
| 584 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 0.300000012, 0.300000012))
| |
| 585 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 586 | 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)) | |
| 587 | 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))
| |
| 588 | Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928)) | |
| 589 | 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)) | |
| 590 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 591 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 592 | 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)) | |
| 593 | 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))
| |
| 594 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 595 | 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)) | |
| 596 | 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))
| |
| 597 | Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001)) | |
| 598 | 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)) | |
| 599 | 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))
| |
| 600 | Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928)) | |
| 601 | 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)) | |
| 602 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 603 | ||
| 604 | local charge = false | |
| 605 | ||
| 606 | local CanThrow = true | |
| 607 | ||
| 608 | function ThrowGrenade() | |
| 609 | attack = true | |
| 610 | for i = 0, 1, 0.05 do | |
| 611 | swait() | |
| 612 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 613 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 614 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, .1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.1) | |
| 615 | if Torsovelocity > 2 then | |
| 616 | 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) | |
| 617 | 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) | |
| 618 | 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) | |
| 619 | elseif Torsovelocity < 1 then | |
| 620 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 621 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 622 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 623 | end | |
| 624 | end | |
| 625 | Grenade = GrenadeModel:Clone() | |
| 626 | Grenade.Parent = Character | |
| 627 | CreateSound("http://roblox.com/asset/?id=175783708",Grenade.Handle,1,1)
| |
| 628 | for i = 0, 1, 0.05 do | |
| 629 | swait() | |
| 630 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 631 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 632 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 633 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.1) | |
| 634 | if Torsovelocity > 2 then | |
| 635 | 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) | |
| 636 | 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) | |
| 637 | 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) | |
| 638 | elseif Torsovelocity < 1 then | |
| 639 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 640 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 641 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 642 | end | |
| 643 | end | |
| 644 | local Beep = Instance.new("Sound")
| |
| 645 | Beep.Name = "Beep" | |
| 646 | Beep.SoundId = "rbxassetid://146785518" | |
| 647 | Beep.Volume = 1 | |
| 648 | Beep.Looped = true | |
| 649 | Beep.Pitch = 4 | |
| 650 | Beep.Parent = Grenade.Handle | |
| 651 | Beep:Play() | |
| 652 | while wait() do | |
| 653 | if charge == true then | |
| 654 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 655 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 656 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.5) | |
| 657 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1) | |
| 658 | if Torsovelocity > 2 then | |
| 659 | 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) | |
| 660 | 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) | |
| 661 | 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) | |
| 662 | elseif Torsovelocity < 1 then | |
| 663 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 664 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 665 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 666 | end | |
| 667 | elseif charge == false then | |
| 668 | break | |
| 669 | end | |
| 670 | end | |
| 671 | for i = 0, 1, 0.1 do | |
| 672 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 673 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 674 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 675 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1) | |
| 676 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 677 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 678 | if Torsovelocity > 2 then | |
| 679 | 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) | |
| 680 | 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) | |
| 681 | 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) | |
| 682 | elseif Torsovelocity < 1 then | |
| 683 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 684 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 685 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 686 | end | |
| 687 | end | |
| 688 | CreateSound("rbxassetid://320557413",LeftArm,1,1)
| |
| 689 | Grenade.HandleWeld:remove() | |
| 690 | local BodyVelocity = Instance.new("BodyVelocity")
| |
| 691 | BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 692 | BodyVelocity.velocity = (mouse.Hit.p - Grenade.Handle.Position).unit * 200 | |
| 693 | BodyVelocity.Parent = Grenade.Handle | |
| 694 | game:GetService("Debris"):AddItem(BodyVelocity, 0.1)
| |
| 695 | game:GetService("Debris"):AddItem(Grenade, 10)
| |
| 696 | wait() | |
| 697 | ExplodeCon = Grenade.Handle.Touched:connect(function(Hit) | |
| 698 | ExplodeCon:disconnect() | |
| 699 | Grenade.Parent = workspace | |
| 700 | CreateSound("rbxassetid://240036913",Grenade.Handle,1,1)
| |
| 701 | if Hit.Parent == Grenade.Handle.Parent then | |
| 702 | return | |
| 703 | end | |
| 704 | for _, Part in pairs(Grenade:GetChildren()) do | |
| 705 | pcall(function() | |
| 706 | Part.CanCollide = true | |
| 707 | end) | |
| 708 | end | |
| 709 | local Weld = Instance.new("Weld")
| |
| 710 | Weld.Part0 = Grenade.Handle | |
| 711 | Weld.Part1 = Hit | |
| 712 | Weld.C0 = Grenade.Handle.CFrame:inverse() * CFrame.new(Grenade.Handle.Position) | |
| 713 | Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Grenade.Handle.Position) | |
| 714 | Weld.Parent = Grenade.Handle | |
| 715 | for i = 4, 10, 0.075 do | |
| 716 | Beep.Pitch = i | |
| 717 | swait() | |
| 718 | end | |
| 719 | for i = 1, 5 do | |
| 720 | local Sound = Instance.new("Sound")
| |
| 721 | Sound.Name = "Explode" | |
| 722 | Sound.SoundId = "rbxassetid://166221646" | |
| 723 | Sound.Volume = 1 | |
| 724 | Sound.Pitch = math.random(700, 900) / 1000 | |
| 725 | Sound.Parent = Grenade.Handle | |
| 726 | Sound:Play() | |
| 727 | end | |
| 728 | local S = Instance.new("Explosion", workspace)
| |
| 729 | S.ExplosionType = "NoCraters" | |
| 730 | S.Position = Grenade.Handle.Position | |
| 731 | S.BlastPressure = 5 | |
| 732 | S.BlastRadius = 10 | |
| 733 | S.ExplosionType = 2 | |
| 734 | Grenade:remove() | |
| 735 | end) | |
| 736 | for i = 0, 1, 0.05 do | |
| 737 | swait() | |
| 738 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 739 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 740 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 741 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 742 | if Torsovelocity > 2 then | |
| 743 | 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) | |
| 744 | 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) | |
| 745 | 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) | |
| 746 | elseif Torsovelocity < 1 then | |
| 747 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 748 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 749 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 750 | end | |
| 751 | end | |
| 752 | attack = false | |
| 753 | end | |
| 754 | ||
| 755 | mouse.Button1Down:connect(function() | |
| 756 | if attack == false and CanThrow == true then | |
| 757 | charge = true | |
| 758 | ThrowGrenade() | |
| 759 | end | |
| 760 | end) | |
| 761 | ||
| 762 | mouse.Button1Up:connect(function() | |
| 763 | if charge == true and attack == true then | |
| 764 | charge = false | |
| 765 | end | |
| 766 | end) | |
| 767 | ||
| 768 | mouse.KeyDown:connect(function(k) | |
| 769 | k = k:lower() | |
| 770 | if attack == false and k == '' then | |
| 771 | ||
| 772 | end | |
| 773 | end) | |
| 774 | ||
| 775 | mouse.KeyUp:connect(function(k) | |
| 776 | k = k:lower() | |
| 777 | if attack == true and k == '' then | |
| 778 | ||
| 779 | end | |
| 780 | end) | |
| 781 | ||
| 782 | game:GetService'RunService'.Stepped:connect(function() | |
| 783 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 784 | velocity = RootPart.Velocity.y | |
| 785 | sine = sine + change | |
| 786 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 787 | if equipped == true or equipped == false then | |
| 788 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 789 | Anim = "Jump" | |
| 790 | if attack == false then | |
| 791 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 792 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 793 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1) | |
| 794 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1) | |
| 795 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
| 796 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
| 797 | end | |
| 798 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 799 | Anim = "Fall" | |
| 800 | if attack == false then | |
| 801 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 802 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 803 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
| 804 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
| 805 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 806 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 807 | end | |
| 808 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 809 | Anim = "Idle" | |
| 810 | if attack == false then | |
| 811 | change = 1 | |
| 812 | 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) | |
| 813 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3) | |
| 814 | 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) | |
| 815 | 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) | |
| 816 | 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) | |
| 817 | 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) | |
| 818 | end | |
| 819 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 820 | Anim = "Walk" | |
| 821 | if attack == false then | |
| 822 | 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) | |
| 823 | 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) | |
| 824 | 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) | |
| 825 | 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) | |
| 826 | 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) | |
| 827 | 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) | |
| 828 | end | |
| 829 | end | |
| 830 | end | |
| 831 | if #Effects > 0 then | |
| 832 | for e = 1, #Effects do | |
| 833 | if Effects[e] ~= nil then | |
| 834 | local Thing = Effects[e] | |
| 835 | if Thing ~= nil then | |
| 836 | local Part = Thing[1] | |
| 837 | local Mode = Thing[2] | |
| 838 | local Delay = Thing[3] | |
| 839 | local IncX = Thing[4] | |
| 840 | local IncY = Thing[5] | |
| 841 | local IncZ = Thing[6] | |
| 842 | if Thing[1].Transparency <= 1 then | |
| 843 | if Thing[2] == "Block1" then | |
| 844 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 845 | local Mesh = Thing[1].Mesh | |
| 846 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 847 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 848 | elseif Thing[2] == "Block2" then | |
| 849 | Thing[1].CFrame = Thing[1].CFrame | |
| 850 | local Mesh = Thing[7] | |
| 851 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 852 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 853 | elseif Thing[2] == "Cylinder" then | |
| 854 | local Mesh = Thing[1].Mesh | |
| 855 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 856 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 857 | elseif Thing[2] == "Blood" then | |
| 858 | local Mesh = Thing[7] | |
| 859 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 860 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 861 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 862 | elseif Thing[2] == "Elec" then | |
| 863 | local Mesh = Thing[1].Mesh | |
| 864 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 865 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 866 | elseif Thing[2] == "Disappear" then | |
| 867 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 868 | elseif Thing[2] == "Shatter" then | |
| 869 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 870 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 871 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 872 | Thing[6] = Thing[6] + Thing[5] | |
| 873 | end | |
| 874 | else | |
| 875 | Part.Parent = nil | |
| 876 | table.remove(Effects, e) | |
| 877 | end | |
| 878 | end | |
| 879 | end | |
| 880 | end | |
| 881 | end | |
| 882 | end) |