SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player=game:GetService("Players").LocalPlayer
|
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by Artkiller_exe")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | - | mouse=Player:GetMouse() |
| 53 | + | t.Function(t.Name,io.UserInputState,io) |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | - | Player=game:GetService('Players').LocalPlayer
|
| 87 | + | |
| 88 | Player=owner | |
| 89 | - | Mouse=Player:GetMouse() |
| 89 | + | |
| 90 | Character=Player.Character | |
| 91 | PlayerGui=Player.PlayerGui | |
| 92 | Backpack=Player.Backpack | |
| 93 | Torso=Character.Torso | |
| 94 | Head=Character.Head | |
| 95 | Humanoid=Character.Humanoid | |
| 96 | m=Instance.new('Model',Character)
| |
| 97 | LeftArm=Character["Left Arm"] | |
| 98 | LeftLeg=Character["Left Leg"] | |
| 99 | RightArm=Character["Right Arm"] | |
| 100 | RightLeg=Character["Right Leg"] | |
| 101 | LS=Torso["Left Shoulder"] | |
| 102 | LH=Torso["Left Hip"] | |
| 103 | RS=Torso["Right Shoulder"] | |
| 104 | RH=Torso["Right Hip"] | |
| 105 | Face = Head.face | |
| 106 | Neck=Torso.Neck | |
| 107 | it=Instance.new | |
| 108 | attacktype=1 | |
| 109 | vt=Vector3.new | |
| 110 | cf=CFrame.new | |
| 111 | euler=CFrame.fromEulerAnglesXYZ | |
| 112 | angles=CFrame.Angles | |
| 113 | cloaked=false | |
| 114 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 115 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 116 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 117 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 118 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 119 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 120 | RootPart=Character.HumanoidRootPart | |
| 121 | RootJoint=RootPart.RootJoint | |
| 122 | RootCF=euler(-1.57,0,3.14) | |
| 123 | attack = false | |
| 124 | attackdebounce = false | |
| 125 | deb=false | |
| 126 | equipped=true | |
| 127 | hand=false | |
| 128 | MMouse=nil | |
| 129 | combo=0 | |
| 130 | mana=0 | |
| 131 | trispeed=.2 | |
| 132 | attackmode='none' | |
| 133 | local idle=0 | |
| 134 | local Anim="Idle" | |
| 135 | local Effects={}
| |
| 136 | local gun=false | |
| 137 | local shoot=false | |
| 138 | player=nil | |
| 139 | mana=0 | |
| 140 | ||
| 141 | --save shoulders | |
| 142 | RSH, LSH=nil, nil | |
| 143 | --welds | |
| 144 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 145 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 146 | LH=Torso["Left Hip"] | |
| 147 | RH=Torso["Right Hip"] | |
| 148 | TorsoColor=Torso.BrickColor | |
| 149 | function NoOutline(Part) | |
| 150 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 151 | end | |
| 152 | player=Player | |
| 153 | ch=Character | |
| 154 | RSH=ch.Torso["Right Shoulder"] | |
| 155 | LSH=ch.Torso["Left Shoulder"] | |
| 156 | -- | |
| 157 | RSH.Parent=nil | |
| 158 | LSH.Parent=nil | |
| 159 | -- | |
| 160 | RW.Name="Right Shoulder" | |
| 161 | RW.Part0=ch.Torso | |
| 162 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 163 | RW.C1=cf(0, 0.5, 0) | |
| 164 | RW.Part1=ch["Right Arm"] | |
| 165 | RW.Parent=ch.Torso | |
| 166 | -- | |
| 167 | LW.Name="Left Shoulder" | |
| 168 | LW.Part0=ch.Torso | |
| 169 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 170 | LW.C1=cf(0, 0.5, 0) | |
| 171 | LW.Part1=ch["Left Arm"] | |
| 172 | LW.Parent=ch.Torso | |
| 173 | ||
| 174 | Player=owner | |
| 175 | Character=Player.Character | |
| 176 | m=Instance.new('Model',Character)
| |
| 177 | ||
| 178 | ||
| 179 | local function weldBetween(a, b) | |
| 180 | local weldd = Instance.new("ManualWeld")
| |
| 181 | weldd.Part0 = a | |
| 182 | weldd.Part1 = b | |
| 183 | weldd.C0 = CFrame.new() | |
| 184 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 185 | weldd.Parent = a | |
| 186 | return weldd | |
| 187 | end | |
| 188 | ||
| 189 | function swait(num) | |
| 190 | if num==0 or num==nil then | |
| 191 | game:service'RunService'.Stepped:wait(0) | |
| 192 | else | |
| 193 | for i=0,num do | |
| 194 | game:service'RunService'.Stepped:wait(0) | |
| 195 | end | |
| 196 | end | |
| 197 | end | |
| 198 | ||
| 199 | function nooutline(part) | |
| 200 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 201 | end | |
| 202 | ||
| 203 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 204 | local fp=it("Part")
| |
| 205 | fp.formFactor=formfactor | |
| 206 | fp.Parent=parent | |
| 207 | fp.Reflectance=reflectance | |
| 208 | fp.Transparency=transparency | |
| 209 | fp.CanCollide=false | |
| 210 | fp.Locked=true | |
| 211 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 212 | fp.Name=name | |
| 213 | fp.Size=size | |
| 214 | fp.Position=Character.Torso.Position | |
| 215 | nooutline(fp) | |
| 216 | fp.Material=material | |
| 217 | fp:BreakJoints() | |
| 218 | return fp | |
| 219 | end | |
| 220 | ||
| 221 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 222 | local mesh=it(Mesh) | |
| 223 | mesh.Parent=part | |
| 224 | if Mesh=="SpecialMesh" then | |
| 225 | mesh.MeshType=meshtype | |
| 226 | mesh.MeshId=meshid | |
| 227 | end | |
| 228 | mesh.Offset=offset | |
| 229 | mesh.Scale=scale | |
| 230 | return mesh | |
| 231 | end | |
| 232 | ||
| 233 | function weld(parent,part0,part1,c0,c1) | |
| 234 | local weld=it("Weld")
| |
| 235 | weld.Parent=parent | |
| 236 | weld.Part0=part0 | |
| 237 | weld.Part1=part1 | |
| 238 | weld.C0=c0 | |
| 239 | weld.C1=c1 | |
| 240 | return weld | |
| 241 | end | |
| 242 | ||
| 243 | ||
| 244 | local function CFrameFromTopBack(at, top, back) | |
| 245 | local right = top:Cross(back) | |
| 246 | return CFrame.new(at.x, at.y, at.z, | |
| 247 | right.x, top.x, back.x, | |
| 248 | right.y, top.y, back.y, | |
| 249 | right.z, top.z, back.z) | |
| 250 | end | |
| 251 | ||
| 252 | function Triangle(a, b, c) | |
| 253 | local edg1 = (c-a):Dot((b-a).unit) | |
| 254 | local edg2 = (a-b):Dot((c-b).unit) | |
| 255 | local edg3 = (b-c):Dot((a-c).unit) | |
| 256 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 257 | a, b, c = a, b, c | |
| 258 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 259 | a, b, c = b, c, a | |
| 260 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 261 | a, b, c = c, a, b | |
| 262 | else | |
| 263 | assert(false, "unreachable") | |
| 264 | end | |
| 265 | ||
| 266 | local len1 = (c-a):Dot((b-a).unit) | |
| 267 | local len2 = (b-a).magnitude - len1 | |
| 268 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 269 | ||
| 270 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 271 | ||
| 272 | local list = {}
| |
| 273 | ||
| 274 | local Color = BrickColor.new("Dark grey")
| |
| 275 | ||
| 276 | if len1 > 0.01 then | |
| 277 | local w1 = Instance.new('WedgePart', m)
| |
| 278 | game:GetService("Debris"):AddItem(w1,5)
| |
| 279 | w1.Material = "SmoothPlastic" | |
| 280 | w1.FormFactor = 'Custom' | |
| 281 | w1.BrickColor = BrickColor.new(Color) | |
| 282 | w1.Transparency = 0 | |
| 283 | w1.Reflectance = 0 | |
| 284 | w1.Material = "SmoothPlastic" | |
| 285 | w1.CanCollide = false | |
| 286 | NoOutline(w1) | |
| 287 | local sz = Vector3.new(0.2, width, len1) | |
| 288 | w1.Size = sz | |
| 289 | local sp = Instance.new("SpecialMesh",w1)
| |
| 290 | sp.MeshType = "Wedge" | |
| 291 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 292 | w1:BreakJoints() | |
| 293 | w1.Anchored = true | |
| 294 | w1.Parent = workspace | |
| 295 | w1.Transparency = 0.7 | |
| 296 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 297 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 298 | table.insert(list,w1) | |
| 299 | end | |
| 300 | ||
| 301 | if len2 > 0.01 then | |
| 302 | local w2 = Instance.new('WedgePart', m)
| |
| 303 | game:GetService("Debris"):AddItem(w2,5)
| |
| 304 | w2.Material = "SmoothPlastic" | |
| 305 | w2.FormFactor = 'Custom' | |
| 306 | w2.BrickColor = BrickColor.new(Color) | |
| 307 | w2.Transparency = 0 | |
| 308 | w2.Reflectance = 0 | |
| 309 | w2.Material = "SmoothPlastic" | |
| 310 | w2.CanCollide = false | |
| 311 | NoOutline(w2) | |
| 312 | local sz = Vector3.new(0.2, width, len2) | |
| 313 | w2.Size = sz | |
| 314 | local sp = Instance.new("SpecialMesh",w2)
| |
| 315 | sp.MeshType = "Wedge" | |
| 316 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 317 | w2:BreakJoints() | |
| 318 | w2.Anchored = true | |
| 319 | w2.Parent = workspace | |
| 320 | w2.Transparency = 0.7 | |
| 321 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 322 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 323 | table.insert(list,w2) | |
| 324 | end | |
| 325 | return unpack(list) | |
| 326 | end | |
| 327 | ||
| 328 | ||
| 329 | so = function(id,par,vol,pit) | |
| 330 | coroutine.resume(coroutine.create(function() | |
| 331 | local sou = Instance.new("Sound",par or workspace)
| |
| 332 | sou.Volume=vol | |
| 333 | sou.Pitch=pit or 1 | |
| 334 | sou.SoundId=id | |
| 335 | swait() | |
| 336 | sou:play() | |
| 337 | game:GetService("Debris"):AddItem(sou,6)
| |
| 338 | end)) | |
| 339 | end | |
| 340 | ||
| 341 | function clerp(a,b,t) | |
| 342 | local qa = {QuaternionFromCFrame(a)}
| |
| 343 | local qb = {QuaternionFromCFrame(b)}
| |
| 344 | local ax, ay, az = a.x, a.y, a.z | |
| 345 | local bx, by, bz = b.x, b.y, b.z | |
| 346 | local _t = 1-t | |
| 347 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 348 | end | |
| 349 | ||
| 350 | function QuaternionFromCFrame(cf) | |
| 351 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 352 | local trace = m00 + m11 + m22 | |
| 353 | if trace > 0 then | |
| 354 | local s = math.sqrt(1 + trace) | |
| 355 | local recip = 0.5/s | |
| 356 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 357 | else | |
| 358 | local i = 0 | |
| 359 | if m11 > m00 then | |
| 360 | i = 1 | |
| 361 | end | |
| 362 | if m22 > (i == 0 and m00 or m11) then | |
| 363 | i = 2 | |
| 364 | - | c.Value=game:service("Players").LocalPlayer
|
| 364 | + | |
| 365 | if i == 0 then | |
| 366 | local s = math.sqrt(m00-m11-m22+1) | |
| 367 | local recip = 0.5/s | |
| 368 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 369 | elseif i == 1 then | |
| 370 | local s = math.sqrt(m11-m22-m00+1) | |
| 371 | local recip = 0.5/s | |
| 372 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 373 | elseif i == 2 then | |
| 374 | local s = math.sqrt(m22-m00-m11+1) | |
| 375 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 376 | end | |
| 377 | end | |
| 378 | end | |
| 379 | ||
| 380 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 381 | local xs, ys, zs = x + x, y + y, z + z | |
| 382 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 383 | local xx = x*xs | |
| 384 | local xy = x*ys | |
| 385 | local xz = x*zs | |
| 386 | local yy = y*ys | |
| 387 | local yz = y*zs | |
| 388 | local zz = z*zs | |
| 389 | 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)) | |
| 390 | end | |
| 391 | ||
| 392 | function QuaternionSlerp(a, b, t) | |
| 393 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 394 | local startInterp, finishInterp; | |
| 395 | if cosTheta >= 0.0001 then | |
| 396 | if (1 - cosTheta) > 0.0001 then | |
| 397 | local theta = math.acos(cosTheta) | |
| 398 | local invSinTheta = 1/math.sin(theta) | |
| 399 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 400 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 401 | else | |
| 402 | startInterp = 1-t | |
| 403 | finishInterp = t | |
| 404 | end | |
| 405 | else | |
| 406 | if (1+cosTheta) > 0.0001 then | |
| 407 | local theta = math.acos(-cosTheta) | |
| 408 | local invSinTheta = 1/math.sin(theta) | |
| 409 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 410 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 411 | else | |
| 412 | startInterp = t-1 | |
| 413 | finishInterp = t | |
| 414 | end | |
| 415 | end | |
| 416 | 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 | |
| 417 | end | |
| 418 | ||
| 419 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 420 | ||
| 421 | ||
| 422 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 423 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 424 | end | |
| 425 | ||
| 426 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 427 | if hit.Parent==nil then | |
| 428 | return | |
| 429 | end | |
| 430 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 431 | for _,v in pairs(hit.Parent:children()) do | |
| 432 | if v:IsA("Humanoid") then
| |
| 433 | h=v | |
| 434 | end | |
| 435 | end | |
| 436 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 437 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 438 | end | |
| 439 | if hit.Parent.className=="Hat" then | |
| 440 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 441 | end | |
| 442 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 443 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 444 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 445 | return | |
| 446 | end]] | |
| 447 | -- hs(hit,1.2) | |
| 448 | c=Instance.new("ObjectValue")
| |
| 449 | c.Name="creator" | |
| 450 | c.Value=owner | |
| 451 | c.Parent=h | |
| 452 | game:GetService("Debris"):AddItem(c,.5)
| |
| 453 | Damage=math.random(minim,maxim) | |
| 454 | -- h:TakeDamage(Damage) | |
| 455 | blocked=false | |
| 456 | block=hit.Parent:findFirstChild("Block")
| |
| 457 | if block~=nil then | |
| 458 | print(block.className) | |
| 459 | if block.className=="NumberValue" then | |
| 460 | if block.Value>0 then | |
| 461 | blocked=true | |
| 462 | if decreaseblock==nil then | |
| 463 | block.Value=block.Value-1 | |
| 464 | end | |
| 465 | end | |
| 466 | end | |
| 467 | if block.className=="IntValue" then | |
| 468 | if block.Value>0 then | |
| 469 | blocked=true | |
| 470 | if decreaseblock~=nil then | |
| 471 | block.Value=block.Value-1 | |
| 472 | end | |
| 473 | end | |
| 474 | end | |
| 475 | end | |
| 476 | if blocked==false then | |
| 477 | -- h:TakeDamage(Damage) | |
| 478 | h.Health=h.Health-Damage | |
| 479 | showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
| |
| 480 | else | |
| 481 | h.Health=h.Health-(Damage/2) | |
| 482 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
| |
| 483 | end | |
| 484 | if Type=="Knockdown" then | |
| 485 | hum=hit.Parent.Humanoid | |
| 486 | hum.PlatformStand=true | |
| 487 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 488 | swait(1) | |
| 489 | HHumanoid.PlatformStand=false | |
| 490 | end),hum) | |
| 491 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 492 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 493 | local bodvol=Instance.new("BodyVelocity")
| |
| 494 | bodvol.velocity=angle*knockback | |
| 495 | bodvol.P=5000 | |
| 496 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 497 | bodvol.Parent=hit | |
| 498 | rl=Instance.new("BodyAngularVelocity")
| |
| 499 | rl.P=3000 | |
| 500 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 501 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 502 | rl.Parent=hit | |
| 503 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 504 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 505 | elseif Type=="Normal" then | |
| 506 | vp=Instance.new("BodyVelocity")
| |
| 507 | vp.P=500 | |
| 508 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 509 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 510 | if KnockbackType==1 then | |
| 511 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 512 | elseif KnockbackType==2 then | |
| 513 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 514 | end | |
| 515 | if knockback>0 then | |
| 516 | vp.Parent=hit.Parent.Torso | |
| 517 | end | |
| 518 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 519 | elseif Type=="Up" then | |
| 520 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 521 | bodyVelocity.velocity=vt(0,60,0) | |
| 522 | bodyVelocity.P=5000 | |
| 523 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 524 | bodyVelocity.Parent=hit | |
| 525 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 526 | rl=Instance.new("BodyAngularVelocity")
| |
| 527 | rl.P=3000 | |
| 528 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 529 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
| 530 | rl.Parent=hit | |
| 531 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 532 | elseif Type=="Snare" then | |
| 533 | bp=Instance.new("BodyPosition")
| |
| 534 | bp.P=2000 | |
| 535 | bp.D=100 | |
| 536 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 537 | bp.position=hit.Parent.Torso.Position | |
| 538 | bp.Parent=hit.Parent.Torso | |
| 539 | game:GetService("Debris"):AddItem(bp,1)
| |
| 540 | elseif Type=="Target" then | |
| 541 | if Targetting==false then | |
| 542 | ZTarget=hit.Parent.Torso | |
| 543 | coroutine.resume(coroutine.create(function(Part) | |
| 544 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 545 | swait(5) | |
| 546 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 547 | end),ZTarget) | |
| 548 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 549 | targetgui=Instance.new("BillboardGui")
| |
| 550 | targetgui.Parent=ZTarget | |
| 551 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 552 | targ=Instance.new("ImageLabel")
| |
| 553 | targ.Parent=targetgui | |
| 554 | targ.BackgroundTransparency=1 | |
| 555 | targ.Image="rbxassetid://4834067" | |
| 556 | targ.Size=UDim2.new(1,0,1,0) | |
| 557 | cam.CameraType="Scriptable" | |
| 558 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 559 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 560 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 561 | Targetting=true | |
| 562 | RocketTarget=ZTarget | |
| 563 | for i=1,Property do | |
| 564 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 565 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 566 | swait() | |
| 567 | end | |
| 568 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 569 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 570 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 571 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 572 | end | |
| 573 | Targetting=false | |
| 574 | RocketTarget=nil | |
| 575 | targetgui.Parent=nil | |
| 576 | cam.CameraType="Custom" | |
| 577 | end | |
| 578 | end | |
| 579 | debounce=Instance.new("BoolValue")
| |
| 580 | debounce.Name="DebounceHit" | |
| 581 | debounce.Parent=hit.Parent | |
| 582 | debounce.Value=true | |
| 583 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 584 | c=Instance.new("ObjectValue")
| |
| 585 | c.Name="creator" | |
| 586 | c.Value=Player | |
| 587 | c.Parent=h | |
| 588 | game:GetService("Debris"):AddItem(c,.5)
| |
| 589 | CRIT=false | |
| 590 | hitDeb=true | |
| 591 | AttackPos=6 | |
| 592 | end | |
| 593 | end | |
| 594 | ||
| 595 | showDamage=function(Char,Dealt,du,Color) | |
| 596 | m=Instance.new("Model")
| |
| 597 | m.Name=tostring(Dealt) | |
| 598 | h=Instance.new("Humanoid")
| |
| 599 | h.Health=0 | |
| 600 | h.MaxHealth=0 | |
| 601 | h.Parent=m | |
| 602 | c=Instance.new("Part")
| |
| 603 | c.Transparency=0 | |
| 604 | c.BrickColor=Color | |
| 605 | c.Name="Head" | |
| 606 | c.TopSurface=0 | |
| 607 | c.BottomSurface=0 | |
| 608 | c.formFactor="Plate" | |
| 609 | c.Size=Vector3.new(1,.4,1) | |
| 610 | ms=Instance.new("CylinderMesh")
| |
| 611 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 612 | if CRIT==true then | |
| 613 | ms.Scale=Vector3.new(1,1.25,1) | |
| 614 | end | |
| 615 | ms.Parent=c | |
| 616 | c.Reflectance=0 | |
| 617 | Instance.new("BodyGyro").Parent=c
| |
| 618 | c.Parent=m | |
| 619 | if Char:findFirstChild("Head")~=nil then
| |
| 620 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 621 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 622 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 623 | end | |
| 624 | f=Instance.new("BodyPosition")
| |
| 625 | f.P=2000 | |
| 626 | f.D=100 | |
| 627 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 628 | f.position=c.Position+Vector3.new(0,3,0) | |
| 629 | f.Parent=c | |
| 630 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 631 | c.CanCollide=false | |
| 632 | m.Parent=workspace | |
| 633 | c.CanCollide=false | |
| 634 | end | |
| 635 | ||
| 636 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.356057793, 0.801126003, 0.267042011)) | |
| 637 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.516218185, -0.761173248, -0.203582764, -0.000413556583, 0.865570247, -0.500785589, -0.000715887581, -0.50078547, -0.865570009, -0.999999523, 4.89967135e-007, 0.000826762407)) | |
| 638 | Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Barrel",Vector3.new(0.356055647, 0.534083903, 0.200000003)) | |
| 639 | Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.993667603, -5.6562829, -0.00450134277, -0.499999255, -0.86602366, 0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, -0.000413693022, -0.000720331562, -0.999999404)) | |
| 640 | mesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.15718198))
| |
| 641 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.930197001, 0.200000003, 0.453971326)) | |
| 642 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00457763672, -0.765160799, 1.5292244, 8.4777188e-005, 0.000156341121, 0.999999702, -0.866025567, 0.499996573, -4.72138709e-006, -0.499996901, -0.866025567, 0.000177754438)) | |
| 643 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.0890140012, 0.100000001))
| |
| 644 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.267042011, 0.200000003)) | |
| 645 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.71396184, -0.902069092, 0.271377563, 0.8660236, -0.499999017, 1.84802866e-006, 0.499999374, 0.866023779, -4.71902313e-005, 2.19600042e-005, 4.17576521e-005, 0.999999106)) | |
| 646 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445069969, 1, 0.890139937))
| |
| 647 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356057793, 2.84844708, 0.200000003)) | |
| 648 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0047454834, -2.18133688, 0.323482513, 3.66997556e-005, 6.66387496e-005, 0.999999702, -0.866023839, 0.499998808, -1.47526384e-006, -0.499999315, -0.866023958, 7.61135016e-005)) | |
| 649 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139937))
| |
| 650 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.60000002384186,"Mid gray","Part",Vector3.new(0.445069641, 0.200000003, 0.534083962)) | |
| 651 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52576447, -1.15971661, -0.00486755371, -0.499999493, -0.866024137, 2.11432925e-005, -0.866023958, 0.499998957, -1.77337063e-006, -8.95379344e-006, -1.92798325e-005, -0.999999523)) | |
| 652 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 653 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 654 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.403086185, -0.00352478027, 1.25802231, -0.866025269, 0.499996424, -4.6921532e-006, -9.06756031e-005, -0.000166724145, -0.999999344, -0.499996811, -0.866025388, 0.000189673912)) | |
| 655 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890141726, 0.890139937, 0.445069969))
| |
| 656 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.78027892, 0.356056005, 0.356055975)) | |
| 657 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.28802133, -0.764591217, 0.00480651855, 0.866019368, -0.500006795, 1.81821065e-006, 0.500007212, 0.866019428, -3.18681123e-005, 1.42879144e-005, 2.85067945e-005, 0.999999642)) | |
| 658 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.04732227, 0.356055945, 0.200000003)) | |
| 659 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.892075658, -0.00434875488, 1.16921997, -0.866025567, 0.499996573, -4.72138709e-006, -7.90221384e-005, -0.000146495877, -0.999999702, -0.499996871, -0.866025686, 0.000166340207)) | |
| 660 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
| |
| 661 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022)) | |
| 662 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.22940516, -0.813667297, 0.00457763672, 0.866022527, -0.499998182, -2.70454257e-005, 0.499996722, 0.866019726, -0.000830525416, 0.000437630806, 0.000706389663, 0.999996006)) | |
| 663 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.69999998807907,"Mid gray","Part",Vector3.new(0.445069641, 0.200000003, 0.534083962)) | |
| 664 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52544785, -0.358213902, -0.00482177734, -0.499999493, -0.866024137, 2.40192167e-005, -0.866023958, 0.499998957, -1.77337063e-006, -1.03506318e-005, -2.18485948e-005, -0.999999523)) | |
| 665 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 666 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277)) | |
| 667 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.33963394, -0.813163757, 0.0027923584, 0.866024017, -0.499998927, -4.7385638e-005, 0.499999076, 0.866023779, -0.000830544159, 0.000456154085, 0.000695649476, 0.999999225)) | |
| 668 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
| |
| 669 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277)) | |
| 670 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.05157065, -0.813426971, 0.00283813477, 0.866022587, -0.499998361, -5.13193481e-005, 0.499996722, 0.866019726, -0.000830421108, 0.000458621944, 0.000694207207, 0.999996126)) | |
| 671 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
| |
| 672 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356057793, 0.200000003, 0.267042011)) | |
| 673 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, 0.489593506, 0, 0.99999845, 1.49011612e-007, -5.02332114e-008, 1.49011612e-007, 0.999998093, 2.11293809e-008, -5.02332114e-008, 2.11293809e-008, 0.999999702)) | |
| 674 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 675 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.890139997, 0.267042011)) | |
| 676 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.267049789, -0.0444793701, 0, 0.99999845, 1.49011612e-007, -5.02332114e-008, 1.49011612e-007, 0.999998093, 2.11293809e-008, -5.02332114e-008, 2.11293809e-008, 0.999999702)) | |
| 677 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139997, 1, 1))
| |
| 678 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.267042011)) | |
| 679 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.267055511, 0.489589691, 0, 0.99999845, 1.49011612e-007, -5.02332114e-008, 1.49011612e-007, 0.999998093, 2.11293809e-008, -5.02332114e-008, 2.11293809e-008, 0.999999702)) | |
| 680 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139997, 0.890139997, 1))
| |
| 681 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.801127911, 0.200000003, 0.267042011)) | |
| 682 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.87227118, 0.47756958, 0.00357055664, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866024077, 2.50057201e-005, -1.41441415e-005, -2.06979457e-005, 0.999999762)) | |
| 683 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 684 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.13633513, 0.200000003, 0.356055975)) | |
| 685 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1099844, -0.141490936, 0.00482177734, 0.866019368, -0.500006795, 1.81821065e-006, 0.500007212, 0.866019428, -3.18681123e-005, 1.42879144e-005, 2.85067945e-005, 0.999999642)) | |
| 686 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 687 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999)) | |
| 688 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190181732, -0.535319328, 4.57763672e-005, 0.499999255, 0.86602366, -0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, 0.000413693022, 0.000720331562, 0.999999404)) | |
| 689 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.475334674, 0.4699938, 1.67168295))
| |
| 690 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.293745786, 0.71211195, 0.369408011)) | |
| 691 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.06669998, -0.402664542, 0.0329284668, -0.499999374, -0.866023779, 1.51824788e-005, -0.866023958, 0.499998957, -1.77337063e-006, -5.93662844e-006, -1.40970806e-005, -0.999999642)) | |
| 692 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 693 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704067, 0.445069999, 0.356055915)) | |
| 694 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.264636993, -0.812721252, 0.0051574707, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866024017, -5.00066672e-005, 2.3368164e-005, 4.43152385e-005, 0.999999702)) | |
| 695 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.356055647, 0.56968981, 0.200000003)) | |
| 696 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.821731567, 7.62939453e-005, -1.15725255, -0.500571489, -0.865693092, 0.000803722185, 0.000400191813, 0.000697065494, 0.999999285, -0.86569351, 0.500571311, -2.36438291e-006)) | |
| 697 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
| |
| 698 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.356055647, 0.56968981, 0.200000003)) | |
| 699 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.82062149, 7.62939453e-005, -2.58165002, -0.500571489, -0.865693092, 0.000803722185, 0.000400191813, 0.000697065494, 0.999999285, -0.86569351, 0.500571311, -2.36438291e-006)) | |
| 700 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
| |
| 701 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277)) | |
| 702 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40779829, -0.813220978, 0.00286865234, 0.866024137, -0.499999076, -5.31224941e-005, 0.499999106, 0.866023898, -0.000830529374, 0.000461086805, 0.000692783156, 0.999999285)) | |
| 703 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
| |
| 704 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.937464, 0.356056005, 0.356055945)) | |
| 705 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.708334684, -0.41254425, 0.00485229492, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999404, 0.866023839, -2.39146757e-005, 1.03168713e-005, 2.17378838e-005, 0.999999702)) | |
| 706 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.712112248, 0.267042011, 0.200000003)) | |
| 707 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.402770758, -0.902065277, 0.137817383, 0.8660236, -0.499999017, 1.84802866e-006, 0.499999315, 0.866023958, -5.58628235e-005, 2.6284717e-005, 4.92944382e-005, 0.999999166)) | |
| 708 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
| |
| 709 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022)) | |
| 710 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.87373841, -0.813194275, 0.00457763672, 0.866024017, -0.499998868, -3.39000762e-005, 0.499999076, 0.866023839, -0.00083060388, 0.000444560981, 0.000702324207, 0.999999285)) | |
| 711 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.445069999, 0.356055915)) | |
| 712 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0422852039, -0.813350677, 0.00514221191, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999374, 0.866023779, -5.29420795e-005, 2.48118013e-005, 4.68230573e-005, 0.999999702)) | |
| 713 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139937, 1, 1))
| |
| 714 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 0.356056958, 0.356055915)) | |
| 715 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03561783, -4.05199051, -0.00440979004, -0.499999374, -0.866023779, 5.3821248e-005, -0.866023958, 0.499998957, -1.77337063e-006, -2.52545578e-005, -4.75892448e-005, -0.999999702)) | |
| 716 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 717 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999)) | |
| 718 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.5254631, -4.57763672e-005, -1.33689678, 0.499999136, 0.866023719, -0.000830871984, -0.000413789938, -0.000720565615, -0.999999225, -0.866023839, 0.499998927, -1.78828543e-006)) | |
| 719 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.551886737, 0.587492347, 2.43898368))
| |
| 720 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.445069999, 0.623098075, 0.534084022)) | |
| 721 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52507019, -4.57763672e-005, -0.758278728, 0.499999136, 0.866023719, -0.000830871984, -0.000413789938, -0.000720565615, -0.999999225, -0.866023839, 0.499998927, -1.78828543e-006)) | |
| 722 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.498478353, 0.498478293, 7.21013451))
| |
| 723 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.267041624, 0.200000003, 0.356055915)) | |
| 724 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.991195679, -4.27400589, -0.0052947998, -0.499999285, -0.866023958, 3.51352501e-005, -0.866018832, 0.499996156, -1.77348545e-006, -1.60587661e-005, -3.15416837e-005, -0.999993682)) | |
| 725 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 726 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.712112248, 0.200000003, 0.356055915)) | |
| 727 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.402687311, -0.679267883, 0.00505065918, 0.8660236, -0.499999017, 1.84802866e-006, 0.499999315, 0.866023958, -5.58628235e-005, 2.6284717e-005, 4.92944382e-005, 0.999999166)) | |
| 728 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890140235, 1))
| |
| 729 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 0.200000003, 0.356055915)) | |
| 730 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03623199, 0.0421948433, -0.00440979004, -0.499999255, -0.866023898, 5.00364113e-005, -0.866023958, 0.499998957, -1.77337063e-006, -2.34013132e-005, -4.41999873e-005, -0.999999642)) | |
| 731 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
| |
| 732 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.99999994, 1))
| |
| 733 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 734 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.11522019, -0.00350952148, 1.25802612, -0.866025269, 0.499996424, -4.6921341e-006, -9.35725402e-005, -0.00017174182, -0.999999344, -0.499996811, -0.866025388, 0.000195467321)) | |
| 735 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890141726, 0.890139937, 0.445069969))
| |
| 736 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022)) | |
| 737 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.51749039, -0.813407898, 0.00457763672, 0.866024137, -0.499999076, -4.25724756e-005, 0.499999136, 0.866023719, -0.000830633566, 0.000451922766, 0.000698114221, 0.999999344)) | |
| 738 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.84844756, 0.623098075, 0.356055915)) | |
| 739 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.18314743, -0.724628448, 0.00506591797, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866023958, -5.58628235e-005, 2.62502872e-005, 4.93772677e-005, 0.999999642)) | |
| 740 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.712112248, 0.200000003, 0.200000003)) | |
| 741 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.403198361, -0.888397217, 0.631103516, 0.8660236, -0.499999017, 1.84802866e-006, 0.43302834, 0.750028789, 0.499940455, -0.249971539, -0.432960272, 0.866058707)) | |
| 742 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139937, 0.445069969))
| |
| 743 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 2.84844851, 0.356055915)) | |
| 744 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03583908, -2.18302703, -0.0052947998, -0.499999493, -0.866023898, 7.92279025e-005, -0.866023958, 0.499998957, -1.77337063e-006, -3.79744743e-005, -6.95118215e-005, -0.999999642)) | |
| 745 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 746 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.413914353, 1.00140691, 0.200000003)) | |
| 747 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.993293762, -4.91016245, -0.00451660156, -0.499999255, -0.86602366, 0.000819979236, -0.866023958, 0.499998957, -1.77337063e-006, -0.000408323831, -0.000711051165, -0.999999464)) | |
| 748 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
| |
| 749 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.267042011, 0.801125944, 0.356055915)) | |
| 750 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.74128556, -0.635295868, 0.00506591797, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999285, 0.866024017, -3.13802739e-005, 1.40639022e-005, 2.82098772e-005, 0.999999702)) | |
| 751 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.801127911, 0.623098075, 0.267042011)) | |
| 752 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.87227416, 0.0769958496, 0.00352478027, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866024077, 2.50057201e-005, -1.41441415e-005, -2.06979457e-005, 0.999999762)) | |
| 753 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.267041951, 0.356055915)) | |
| 754 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03563309, 0.264527798, -0.00439453125, -0.499999464, -0.866024137, 5.87239629e-005, -0.866023958, 0.499998957, -1.77337063e-006, -2.77429353e-005, -5.17922454e-005, -0.999999642)) | |
| 755 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 756 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999)) | |
| 757 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.525383, -4.57763672e-005, -0.179089904, 0.499999136, 0.866023719, -0.000830871984, -0.000413789938, -0.000720565615, -0.999999225, -0.866023839, 0.499998927, -1.78828543e-006)) | |
| 758 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.551886797, 0.587492406, 2.43898368))
| |
| 759 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999)) | |
| 760 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190181732, -0.535319328, 4.57763672e-005, 0.499999255, 0.86602366, -0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, 0.000413693022, 0.000720331562, 0.999999404)) | |
| 761 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.516281128, 0.534083903, 1.67168295))
| |
| 762 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277)) | |
| 763 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.69532752, -0.813652039, 0.00280761719, 0.866024017, -0.499998927, -4.9620794e-005, 0.499999076, 0.866023779, -0.000830544159, 0.000458155992, 0.000694434391, 0.999999464)) | |
| 764 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
| |
| 765 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022)) | |
| 766 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.16124141, -0.813632965, 0.00457763672, 0.866024017, -0.499998927, -4.7102516e-005, 0.499999076, 0.866023779, -0.000830544159, 0.000455903384, 0.00069573865, 0.999999285)) | |
| 767 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022)) | |
| 768 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.58563924, -0.81344223, 0.0046081543, 0.866024017, -0.499998868, -3.2305652e-005, 0.499999076, 0.866023839, -0.00083060388, 0.000443078374, 0.000703191035, 0.999999344)) | |
| 769 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.445069909, 0.200000003)) | |
| 770 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.990428925, -4.54400349, -0.00450134277, -0.499999255, -0.86602366, 0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, -0.000413693022, -0.000720331562, -0.999999404)) | |
| 771 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.20000005, 1, 1.05036521))
| |
| 772 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.712112248, 0.267042071, 0.200000003)) | |
| 773 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.402770162, -0.902275085, -0.128295898, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999374, 0.866023779, -4.71604289e-005, 2.19338981e-005, 4.17148112e-005, 0.999999881)) | |
| 774 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
| |
| 775 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.267043382, 0.356055915)) | |
| 776 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03567123, -3.73954415, -0.00442504883, -0.499999374, -0.866023779, 6.7038578e-005, -0.866018832, 0.499996156, -1.77348545e-006, -3.20452091e-005, -5.923555e-005, -0.999993443)) | |
| 777 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 778 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.534083724, 0.890139997, 0.71211195)) | |
| 779 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.853614807, 1.73310804, -0.00483703613, -0.500008345, -0.866018832, 3.29770846e-005, -0.866018772, 0.500007927, -1.81967221e-006, -1.48173713e-005, -2.9586372e-005, -0.999999821)) | |
| 780 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 781 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356056005, 0.801126003, 0.356056005)) | |
| 782 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.05088663, -0.643760681, 0.00584411621, 0.866018832, -0.499996156, 1.77348545e-006, 0.499999464, 0.866023779, -3.45093431e-005, 1.5754078e-005, 3.11076874e-005, 0.999993443)) | |
| 783 | ||
| 784 | ready = false | |
| 785 | ||
| 786 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 787 | local fp = it("Part")
| |
| 788 | fp.formFactor = formfactor | |
| 789 | fp.Parent = parent | |
| 790 | fp.Reflectance = reflectance | |
| 791 | fp.Transparency = transparency | |
| 792 | fp.CanCollide = false | |
| 793 | fp.Locked=true | |
| 794 | fp.BrickColor = brickcolor | |
| 795 | fp.Name = name | |
| 796 | fp.Size = size | |
| 797 | fp.Position = Torso.Position | |
| 798 | NoOutline(fp) | |
| 799 | fp.Material="SmoothPlastic" | |
| 800 | fp:BreakJoints() | |
| 801 | return fp | |
| 802 | end | |
| 803 | ||
| 804 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 805 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
| 806 | prt.Anchored=true | |
| 807 | prt.CFrame=cframe | |
| 808 | msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
| |
| 809 | game:GetService("Debris"):AddItem(prt,2)
| |
| 810 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 811 | for i=0,1,delay do | |
| 812 | swait() | |
| 813 | Part.CFrame=Part.CFrame | |
| 814 | Part.Transparency=i | |
| 815 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 816 | end | |
| 817 | Part.Parent=nil | |
| 818 | end),prt,msh) | |
| 819 | end | |
| 820 | ||
| 821 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 822 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 823 | prt.Anchored=true | |
| 824 | prt.CFrame=cframe | |
| 825 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 826 | game:GetService("Debris"):AddItem(prt,2)
| |
| 827 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 828 | for i=0,1,delay do | |
| 829 | swait() | |
| 830 | Part.CFrame=Part.CFrame | |
| 831 | Part.Transparency=i | |
| 832 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 833 | end | |
| 834 | Part.Parent=nil | |
| 835 | end),prt,msh) | |
| 836 | end | |
| 837 | ||
| 838 | function LaserBarrage(Prt,Parent) | |
| 839 | attack=true | |
| 840 | --so("BeamLockon",Prt,1,1)
| |
| 841 | local efprt=part(3,Parent,0,0.5,BrickColor.new("Dark stone grey"),"Effect",vt(0.2,0.2,0.2))
| |
| 842 | efprt.Anchored=true | |
| 843 | local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
| |
| 844 | spread=vt((math.random(0,0)+math.random())*0,(math.random(0,0)+math.random())*0,(math.random(0,0)+math.random())*0)*(Prt.Position-Mouse.Hit.p).magnitude/100 | |
| 845 | --spread=vt(0,0,0) | |
| 846 | coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded) | |
| 847 | game:GetService("Debris"):AddItem(Part,6)
| |
| 848 | local TheHit=Mouse.Hit.p | |
| 849 | local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded) | |
| 850 | local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent) | |
| 851 | so("Elec",Prt,0.2,1)
| |
| 852 | local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
| |
| 853 | tefprt.CFrame=cf(pos) | |
| 854 | MagicCircle(BrickColor.new("Dark stone grey"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
| |
| 855 | so("Elec",tefprt,0.3,1)
| |
| 856 | game:GetService("Debris"):AddItem(tefprt,3)
| |
| 857 | Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0) | |
| 858 | if(hit.Parent:findFirstChild("Humanoid")~= nil)then
| |
| 859 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
| |
| 860 | hit.Parent.Humanoid:TakeDamage(50) | |
| 861 | end | |
| 862 | end | |
| 863 | local mag=(Prt.Position-pos).magnitude | |
| 864 | MagicCylinder(BrickColor.new("Dark stone grey"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
| |
| 865 | Part.Parent=nil | |
| 866 | end),efprt,efmsh,spread) | |
| 867 | end | |
| 868 | ||
| 869 | function shoot() | |
| 870 | if ready==true then | |
| 871 | attack=true | |
| 872 | ready = false | |
| 873 | LaserBarrage(Barrel,m) | |
| 874 | so("http://roblox.com/asset/?id=130767489",Barrel,1,1)
| |
| 875 | so("http://roblox.com/asset/?id=151112832",Barrel,1,1)
| |
| 876 | for i=0,1,0.1 do | |
| 877 | swait() | |
| 878 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 879 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-10),math.rad(0)),.3) | |
| 880 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(100), math.rad(0), math.rad(0)), 0.3) | |
| 881 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(120), math.rad(0), math.rad(30)), 0.3) | |
| 882 | RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3) | |
| 883 | LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3) | |
| 884 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 885 | end | |
| 886 | for i=0,1,0.1 do | |
| 887 | swait() | |
| 888 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 889 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-10),math.rad(0)),.3) | |
| 890 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.3) | |
| 891 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3) | |
| 892 | RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3) | |
| 893 | LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3) | |
| 894 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 895 | end | |
| 896 | attack=false | |
| 897 | end | |
| 898 | end | |
| 899 | ||
| 900 | mouse.Button1Down:connect(function() | |
| 901 | pcall(function() | |
| 902 | shoot() | |
| 903 | end) | |
| 904 | end) | |
| 905 | ||
| 906 | mouse.KeyDown:connect(function(k) | |
| 907 | k=k:lower() | |
| 908 | if k=='f' then | |
| 909 | if ready==false then | |
| 910 | ready=true | |
| 911 | attack=true | |
| 912 | elseif ready==true then | |
| 913 | ready=false | |
| 914 | attack=false | |
| 915 | end | |
| 916 | end | |
| 917 | end) | |
| 918 | ||
| 919 | ||
| 920 | ||
| 921 | local sine = 0 | |
| 922 | local change = 1 | |
| 923 | local val = 0 | |
| 924 | ||
| 925 | while true do | |
| 926 | swait() | |
| 927 | sine = sine + change | |
| 928 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 929 | local velderp=RootPart.Velocity.y | |
| 930 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 931 | if equipped==true or equipped==false then | |
| 932 | if attack==false then | |
| 933 | idle=idle+1 | |
| 934 | else | |
| 935 | idle=0 | |
| 936 | end | |
| 937 | if idle>=500 then | |
| 938 | if attack==false then | |
| 939 | --Sheath() | |
| 940 | end | |
| 941 | end | |
| 942 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 943 | Anim="Jump" | |
| 944 | if attack==false then | |
| 945 | Humanoid.WalkSpeed = 16 | |
| 946 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 947 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 948 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 949 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 950 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
| 951 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 952 | end | |
| 953 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 954 | Anim="Fall" | |
| 955 | if attack==false then | |
| 956 | Humanoid.WalkSpeed = 16 | |
| 957 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 958 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 959 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 960 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 961 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
| 962 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 963 | end | |
| 964 | elseif torvel<1 and hitfloor~=nil then | |
| 965 | Anim="Idle" | |
| 966 | if attack==false then | |
| 967 | Humanoid.WalkSpeed = 16 | |
| 968 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
| 969 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 970 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(70), math.rad(0), math.rad(0)), 0.3) | |
| 971 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(80), math.rad(0), math.rad(60)), 0.3) | |
| 972 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(-5)),.3) | |
| 973 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 974 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 975 | end | |
| 976 | elseif torvel>2 and hitfloor~=nil then | |
| 977 | Anim="Walk" | |
| 978 | if attack==false then | |
| 979 | change=3 | |
| 980 | Humanoid.WalkSpeed = 16 | |
| 981 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 982 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 983 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(70), math.rad(0), math.rad(0)), 0.3) | |
| 984 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(80), math.rad(0), math.rad(60)), 0.3) | |
| 985 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
| 986 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 987 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 988 | end | |
| 989 | end | |
| 990 | end | |
| 991 | if ready==true then | |
| 992 | Humanoid.WalkSpeed = 5 | |
| 993 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 994 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-10),math.rad(0)),.3) | |
| 995 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.3) | |
| 996 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3) | |
| 997 | RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3) | |
| 998 | LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3) | |
| 999 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1000 | end | |
| 1001 | end |