SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | 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 | |
5 | ||
6 | Player=game:GetService("Players").LocalPlayer | |
7 | Character=Player.Character | |
8 | PlayerGui=Player.PlayerGui | |
9 | Backpack=Player.Backpack | |
10 | Torso=Character.Torso | |
11 | Head=Character.Head | |
12 | Humanoid=Character.Humanoid | |
13 | m=Instance.new('Model',Character) | |
14 | LeftArm=Character["Left Arm"] | |
15 | LeftLeg=Character["Left Leg"] | |
16 | RightArm=Character["Right Arm"] | |
17 | RightLeg=Character["Right Leg"] | |
18 | LS=Torso["Left Shoulder"] | |
19 | LH=Torso["Left Hip"] | |
20 | RS=Torso["Right Shoulder"] | |
21 | RH=Torso["Right Hip"] | |
22 | Face = Head.face | |
23 | Neck=Torso.Neck | |
24 | it=Instance.new | |
25 | attacktype=1 | |
26 | vt=Vector3.new | |
27 | cf=CFrame.new | |
28 | euler=CFrame.fromEulerAnglesXYZ | |
29 | angles=CFrame.Angles | |
30 | cloaked=false | |
31 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
32 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
33 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
34 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
35 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
36 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
37 | RootPart=Character.HumanoidRootPart | |
38 | RootJoint=RootPart.RootJoint | |
39 | RootCF=euler(-1.57,0,3.14) | |
40 | attack = false | |
41 | attackdebounce = false | |
42 | deb=false | |
43 | equipped=true | |
44 | hand=false | |
45 | MMouse=nil | |
46 | combo=0 | |
47 | mana=0 | |
48 | trispeed=.2 | |
49 | attackmode='none' | |
50 | local idle=0 | |
51 | local Anim="Idle" | |
52 | local Effects={} | |
53 | local gun=false | |
54 | local shoot=false | |
55 | player=nil | |
56 | mana=0 | |
57 | cam = workspace.CurrentCamera | |
58 | ZTarget = nil | |
59 | RocketTarget = nil | |
60 | ||
61 | mouse=Player:GetMouse() | |
62 | --save shoulders | |
63 | RSH, LSH=nil, nil | |
64 | --welds | |
65 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
66 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
67 | LH=Torso["Left Hip"] | |
68 | RH=Torso["Right Hip"] | |
69 | TorsoColor=Torso.BrickColor | |
70 | function NoOutline(Part) | |
71 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
72 | end | |
73 | player=Player | |
74 | ch=Character | |
75 | RSH=ch.Torso["Right Shoulder"] | |
76 | LSH=ch.Torso["Left Shoulder"] | |
77 | -- | |
78 | RSH.Parent=nil | |
79 | LSH.Parent=nil | |
80 | -- | |
81 | RW.Name="Right Shoulder" | |
82 | RW.Part0=ch.Torso | |
83 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
84 | RW.C1=cf(0, 0.5, 0) | |
85 | RW.Part1=ch["Right Arm"] | |
86 | RW.Parent=ch.Torso | |
87 | -- | |
88 | LW.Name="Left Shoulder" | |
89 | LW.Part0=ch.Torso | |
90 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
91 | LW.C1=cf(0, 0.5, 0) | |
92 | LW.Part1=ch["Left Arm"] | |
93 | LW.Parent=ch.Torso | |
94 | ||
95 | m=Instance.new('Model',Character) | |
96 | ||
97 | ||
98 | local function weldBetween(a, b) | |
99 | local weldd = Instance.new("ManualWeld") | |
100 | weldd.Part0 = a | |
101 | weldd.Part1 = b | |
102 | weldd.C0 = CFrame.new() | |
103 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
104 | weldd.Parent = a | |
105 | return weldd | |
106 | end | |
107 | ||
108 | function swait(num) | |
109 | if num==0 or num==nil then | |
110 | game:service'RunService'.Heartbeat:wait(0) | |
111 | else | |
112 | for i=0,num do | |
113 | game:service'RunService'.Heartbeat:wait(0) | |
114 | end | |
115 | end | |
116 | end | |
117 | ||
118 | function nooutline(part) | |
119 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
120 | end | |
121 | ||
122 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
123 | local fp=it("Part") | |
124 | fp.formFactor=formfactor | |
125 | fp.Parent=parent | |
126 | fp.Reflectance=reflectance | |
127 | fp.Transparency=transparency | |
128 | fp.CanCollide=true | |
129 | fp.Locked=true | |
130 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
131 | fp.Name=name | |
132 | fp.Size=size | |
133 | fp.Position=Character.Torso.Position | |
134 | nooutline(fp) | |
135 | fp.Material=material | |
136 | fp:BreakJoints() | |
137 | return fp | |
138 | end | |
139 | ||
140 | function Seat(parent,material,reflectance,transparency,brickcolor,name,size) | |
141 | local fp=it("VehicleSeat") | |
142 | fp.Parent=parent | |
143 | fp.Reflectance=reflectance | |
144 | fp.Transparency=transparency | |
145 | fp.CanCollide=false | |
146 | fp.Locked=true | |
147 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
148 | fp.Name=name | |
149 | fp.Size=size | |
150 | nooutline(fp) | |
151 | fp.Material=material | |
152 | fp:BreakJoints() | |
153 | return fp | |
154 | end | |
155 | ||
156 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
157 | local mesh=it(Mesh) | |
158 | mesh.Parent=part | |
159 | if Mesh=="SpecialMesh" then | |
160 | mesh.MeshType=meshtype | |
161 | mesh.MeshId=meshid | |
162 | end | |
163 | mesh.Offset=offset | |
164 | mesh.Scale=scale | |
165 | return mesh | |
166 | end | |
167 | ||
168 | function weld(parent,part0,part1,c0,c1) | |
169 | local weld=it("Weld") | |
170 | weld.Parent=parent | |
171 | weld.Part0=part0 | |
172 | weld.Part1=part1 | |
173 | weld.C0=c0 | |
174 | weld.C1=c1 | |
175 | return weld | |
176 | end | |
177 | ||
178 | ||
179 | local function CFrameFromTopBack(at, top, back) | |
180 | local right = top:Cross(back) | |
181 | return CFrame.new(at.x, at.y, at.z, | |
182 | right.x, top.x, back.x, | |
183 | right.y, top.y, back.y, | |
184 | right.z, top.z, back.z) | |
185 | end | |
186 | ||
187 | function Triangle(a, b, c) | |
188 | local edg1 = (c-a):Dot((b-a).unit) | |
189 | local edg2 = (a-b):Dot((c-b).unit) | |
190 | local edg3 = (b-c):Dot((a-c).unit) | |
191 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
192 | a, b, c = a, b, c | |
193 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
194 | a, b, c = b, c, a | |
195 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
196 | a, b, c = c, a, b | |
197 | else | |
198 | assert(false, "unreachable") | |
199 | end | |
200 | ||
201 | local len1 = (c-a):Dot((b-a).unit) | |
202 | local len2 = (b-a).magnitude - len1 | |
203 | local width = (a + (b-a).unit*len1 - c).magnitude | |
204 | ||
205 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
206 | ||
207 | local list = {} | |
208 | ||
209 | local TrailColor = ("Dark grey") | |
210 | ||
211 | if len1 > 0.01 then | |
212 | local w1 = Instance.new('WedgePart', m) | |
213 | game:GetService("Debris"):AddItem(w1,5) | |
214 | w1.Material = "SmoothPlastic" | |
215 | w1.FormFactor = 'Custom' | |
216 | w1.BrickColor = BrickColor.new(TrailColor) | |
217 | w1.Transparency = 0 | |
218 | w1.Reflectance = 0 | |
219 | w1.Material = "SmoothPlastic" | |
220 | w1.CanCollide = false | |
221 | NoOutline(w1) | |
222 | local sz = Vector3.new(0.2, width, len1) | |
223 | w1.Size = sz | |
224 | local sp = Instance.new("SpecialMesh",w1) | |
225 | sp.MeshType = "Wedge" | |
226 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
227 | w1:BreakJoints() | |
228 | w1.Anchored = true | |
229 | w1.Parent = workspace | |
230 | w1.Transparency = 0.7 | |
231 | table.insert(Effects,{w1,"Disappear",.01}) | |
232 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
233 | table.insert(list,w1) | |
234 | end | |
235 | ||
236 | if len2 > 0.01 then | |
237 | local w2 = Instance.new('WedgePart', m) | |
238 | game:GetService("Debris"):AddItem(w2,5) | |
239 | w2.Material = "SmoothPlastic" | |
240 | w2.FormFactor = 'Custom' | |
241 | w2.BrickColor = BrickColor.new(TrailColor) | |
242 | w2.Transparency = 0 | |
243 | w2.Reflectance = 0 | |
244 | w2.Material = "SmoothPlastic" | |
245 | w2.CanCollide = false | |
246 | NoOutline(w2) | |
247 | local sz = Vector3.new(0.2, width, len2) | |
248 | w2.Size = sz | |
249 | local sp = Instance.new("SpecialMesh",w2) | |
250 | sp.MeshType = "Wedge" | |
251 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
252 | w2:BreakJoints() | |
253 | w2.Anchored = true | |
254 | w2.Parent = workspace | |
255 | w2.Transparency = 0.7 | |
256 | table.insert(Effects,{w2,"Disappear",.01}) | |
257 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
258 | table.insert(list,w2) | |
259 | end | |
260 | return unpack(list) | |
261 | end | |
262 | ||
263 | ||
264 | so = function(id,par,vol,pit) | |
265 | coroutine.resume(coroutine.create(function() | |
266 | local sou = Instance.new("Sound",par or workspace) | |
267 | sou.Volume=vol | |
268 | sou.Pitch=pit or 1 | |
269 | sou.SoundId=id | |
270 | swait() | |
271 | sou:play() | |
272 | game:GetService("Debris"):AddItem(sou,6) | |
273 | end)) | |
274 | end | |
275 | ||
276 | function clerp(a,b,t) | |
277 | local qa = {QuaternionFromCFrame(a)} | |
278 | local qb = {QuaternionFromCFrame(b)} | |
279 | local ax, ay, az = a.x, a.y, a.z | |
280 | local bx, by, bz = b.x, b.y, b.z | |
281 | local _t = 1-t | |
282 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
283 | end | |
284 | ||
285 | function QuaternionFromCFrame(cf) | |
286 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
287 | local trace = m00 + m11 + m22 | |
288 | if trace > 0 then | |
289 | local s = math.sqrt(1 + trace) | |
290 | local recip = 0.5/s | |
291 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
292 | else | |
293 | local i = 0 | |
294 | if m11 > m00 then | |
295 | i = 1 | |
296 | end | |
297 | if m22 > (i == 0 and m00 or m11) then | |
298 | i = 2 | |
299 | end | |
300 | if i == 0 then | |
301 | local s = math.sqrt(m00-m11-m22+1) | |
302 | local recip = 0.5/s | |
303 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
304 | elseif i == 1 then | |
305 | local s = math.sqrt(m11-m22-m00+1) | |
306 | local recip = 0.5/s | |
307 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
308 | elseif i == 2 then | |
309 | local s = math.sqrt(m22-m00-m11+1) | |
310 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
311 | end | |
312 | end | |
313 | end | |
314 | ||
315 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
316 | local xs, ys, zs = x + x, y + y, z + z | |
317 | local wx, wy, wz = w*xs, w*ys, w*zs | |
318 | local xx = x*xs | |
319 | local xy = x*ys | |
320 | local xz = x*zs | |
321 | local yy = y*ys | |
322 | local yz = y*zs | |
323 | local zz = z*zs | |
324 | 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)) | |
325 | end | |
326 | ||
327 | function QuaternionSlerp(a, b, t) | |
328 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
329 | local startInterp, finishInterp; | |
330 | if cosTheta >= 0.0001 then | |
331 | if (1 - cosTheta) > 0.0001 then | |
332 | local theta = math.acos(cosTheta) | |
333 | local invSinTheta = 1/math.sin(theta) | |
334 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
335 | finishInterp = math.sin(t*theta)*invSinTheta | |
336 | else | |
337 | startInterp = 1-t | |
338 | finishInterp = t | |
339 | end | |
340 | else | |
341 | if (1+cosTheta) > 0.0001 then | |
342 | local theta = math.acos(-cosTheta) | |
343 | local invSinTheta = 1/math.sin(theta) | |
344 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
345 | finishInterp = math.sin(t*theta)*invSinTheta | |
346 | else | |
347 | startInterp = t-1 | |
348 | finishInterp = t | |
349 | end | |
350 | end | |
351 | 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 | |
352 | end | |
353 | ||
354 | --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) | |
355 | ||
356 | ||
357 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
358 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
359 | end | |
360 | ||
361 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
362 | if hit.Parent==nil then | |
363 | return | |
364 | end | |
365 | local h=hit.Parent:FindFirstChild("Humanoid") | |
366 | for _,v in pairs(hit.Parent:children()) do | |
367 | if v:IsA("Humanoid") then | |
368 | h=v | |
369 | end | |
370 | end | |
371 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
372 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
373 | end | |
374 | if hit.Parent.className=="Hat" then | |
375 | hit=hit.Parent.Parent:findFirstChild("Head") | |
376 | end | |
377 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
378 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
379 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
380 | return | |
381 | end]] | |
382 | -- hs(hit,1.2) | |
383 | local c=Instance.new("ObjectValue") | |
384 | c.Name="creator" | |
385 | c.Value=game:service("Players").LocalPlayer | |
386 | c.Parent=h | |
387 | game:GetService("Debris"):AddItem(c,.5) | |
388 | local Damage=math.random(minim,maxim) | |
389 | -- h:TakeDamage(Damage) | |
390 | local blocked=false | |
391 | local block=hit.Parent:findFirstChild("Block") | |
392 | if block~=nil then | |
393 | print(block.className) | |
394 | if block.className=="NumberValue" then | |
395 | if block.Value>0 then | |
396 | blocked=true | |
397 | if decreaseblock==nil then | |
398 | block.Value=block.Value-1 | |
399 | end | |
400 | end | |
401 | end | |
402 | if block.className=="IntValue" then | |
403 | if block.Value>0 then | |
404 | blocked=true | |
405 | if decreaseblock~=nil then | |
406 | block.Value=block.Value-1 | |
407 | end | |
408 | end | |
409 | end | |
410 | end | |
411 | if blocked==false then | |
412 | -- h:TakeDamage(Damage) | |
413 | h.Health=h.Health-Damage | |
414 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Hitbox.BrickColor.Color) | |
415 | else | |
416 | h.Health=h.Health-(Damage/2) | |
417 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
418 | end | |
419 | if Type=="Knockdown" then | |
420 | local hum=hit.Parent.Humanoid | |
421 | hum.PlatformStand=true | |
422 | coroutine.resume(coroutine.create(function(HHumanoid) | |
423 | swait(1) | |
424 | HHumanoid.PlatformStand=false | |
425 | end),hum) | |
426 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
427 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
428 | local bodvol=Instance.new("BodyVelocity") | |
429 | bodvol.velocity=angle*knockback | |
430 | bodvol.P=5000 | |
431 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
432 | bodvol.Parent=hit | |
433 | local rl=Instance.new("BodyAngularVelocity") | |
434 | rl.P=3000 | |
435 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
436 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
437 | rl.Parent=hit | |
438 | game:GetService("Debris"):AddItem(bodvol,.5) | |
439 | game:GetService("Debris"):AddItem(rl,.5) | |
440 | elseif Type=="Normal" then | |
441 | local vp=Instance.new("BodyVelocity") | |
442 | vp.P=500 | |
443 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
444 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
445 | if KnockbackType==1 then | |
446 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
447 | elseif KnockbackType==2 then | |
448 | vp.velocity=Property.CFrame.lookVector*knockback | |
449 | end | |
450 | if knockback>0 then | |
451 | vp.Parent=hit.Parent.Torso | |
452 | end | |
453 | game:GetService("Debris"):AddItem(vp,.5) | |
454 | elseif Type=="Up" then | |
455 | local bodyVelocity=Instance.new("BodyVelocity") | |
456 | bodyVelocity.velocity=vt(0,60,0) | |
457 | bodyVelocity.P=5000 | |
458 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
459 | bodyVelocity.Parent=hit | |
460 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
461 | local rl=Instance.new("BodyAngularVelocity") | |
462 | rl.P=3000 | |
463 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
464 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
465 | rl.Parent=hit | |
466 | game:GetService("Debris"):AddItem(rl,.5) | |
467 | elseif Type=="Snare" then | |
468 | local bp=Instance.new("BodyPosition") | |
469 | bp.P=2000 | |
470 | bp.D=100 | |
471 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
472 | bp.position=hit.Parent.Torso.Position | |
473 | bp.Parent=hit.Parent.Torso | |
474 | game:GetService("Debris"):AddItem(bp,1) | |
475 | elseif Type=="Target" then | |
476 | local Targetting = false | |
477 | if Targetting==false then | |
478 | ZTarget=hit.Parent.Torso | |
479 | coroutine.resume(coroutine.create(function(Part) | |
480 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
481 | swait(5) | |
482 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
483 | end),ZTarget) | |
484 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
485 | local targetgui=Instance.new("BillboardGui") | |
486 | targetgui.Parent=ZTarget | |
487 | targetgui.Size=UDim2.new(10,100,10,100) | |
488 | local targ=Instance.new("ImageLabel") | |
489 | targ.Parent=targetgui | |
490 | targ.BackgroundTransparency=1 | |
491 | targ.Image="rbxassetid://4834067" | |
492 | targ.Size=UDim2.new(1,0,1,0) | |
493 | cam.CameraType="Scriptable" | |
494 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
495 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
496 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
497 | Targetting=true | |
498 | RocketTarget=ZTarget | |
499 | for i=1,Property do | |
500 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
501 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
502 | swait() | |
503 | end | |
504 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
505 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
506 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
507 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
508 | end | |
509 | Targetting=false | |
510 | RocketTarget=nil | |
511 | targetgui.Parent=nil | |
512 | cam.CameraType="Custom" | |
513 | end | |
514 | end | |
515 | local debounce=Instance.new("BoolValue") | |
516 | debounce.Name="DebounceHit" | |
517 | debounce.Parent=hit.Parent | |
518 | debounce.Value=true | |
519 | game:GetService("Debris"):AddItem(debounce,Delay) | |
520 | c=Instance.new("ObjectValue") | |
521 | c.Name="creator" | |
522 | c.Value=Player | |
523 | c.Parent=h | |
524 | game:GetService("Debris"):AddItem(c,.5) | |
525 | end | |
526 | end | |
527 | ||
528 | ||
529 | function ShowDamage(Pos, Text, Time, Color) | |
530 | local Rate = (1 / 30) | |
531 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
532 | local Text = (Text or "") | |
533 | local Time = (Time or 2) | |
534 | local Color = (Color or Color3.new(1, 0, 0)) | |
535 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
536 | EffectPart.Anchored = true | |
537 | local BillboardGui = Instance.new("BillboardGui") | |
538 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
539 | BillboardGui.Adornee = EffectPart | |
540 | local TextLabel = Instance.new("TextLabel") | |
541 | TextLabel.BackgroundTransparency = 1 | |
542 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
543 | TextLabel.Text = Text | |
544 | TextLabel.TextColor3 = Color | |
545 | TextLabel.TextScaled = true | |
546 | TextLabel.Font = Enum.Font.ArialBold | |
547 | TextLabel.Parent = BillboardGui | |
548 | BillboardGui.Parent = EffectPart | |
549 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
550 | EffectPart.Parent = game:GetService("Workspace") | |
551 | Delay(0, function() | |
552 | local Frames = (Time / Rate) | |
553 | for Frame = 1, Frames do | |
554 | wait(Rate) | |
555 | local Percent = (Frame / Frames) | |
556 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
557 | TextLabel.TextTransparency = Percent | |
558 | end | |
559 | if EffectPart and EffectPart.Parent then | |
560 | EffectPart:Destroy() | |
561 | end | |
562 | end) | |
563 | end | |
564 | ||
565 | Seat=Seat(m,Enum.Material.SmoothPlastic,0,1,"Cyan","Seat",Vector3.new(2, 2, 3)) | |
566 | Seatweld=weld(m,Seat,Seat,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.39999628, -1.94995117, -0.399997115, 1, 6.68508878e-023, -1.49907616e-020, -6.68508878e-023, 1, 1.6211516e-023, 1.49907616e-020, -1.6211516e-023, 1)) | |
567 | LightPart1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Medium stone grey","LightPart1",Vector3.new(1.99999905, 1.20000005, 1.60000002)) | |
568 | LightPart1weld=weld(m,Seat,LightPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.60063505, -1.49921799, -0.0267181396, 8.40731718e-006, -9.63358252e-006, 1.00000072, -0.000813663588, 1.00000143, 9.64029641e-006, -1.00000274, -0.000813686929, 8.48886702e-006)) | |
569 | LightPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","LightPart2",Vector3.new(1.20000005, 2.48000002, 0.800000072)) | |
570 | LightPart2weld=weld(m,Seat,LightPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09911251, -0.028711319, 1.60029244, 0.00120562338, 1.00000262, 6.74584317e-006, -1.00000513, 0.00120557286, 4.05480569e-006, 3.86795546e-006, -6.75111642e-006, 1.00000143)) | |
571 | mesh("CylinderMesh",LightPart2,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
572 | LightPart3=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","LightPart3",Vector3.new(1.20000005, 2.48000002, 0.800000072)) | |
573 | LightPart3weld=weld(m,Seat,LightPart3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09941339, -0.0258307457, -2.39943933, -0.00184239517, 1.00000346, 2.58815862e-006, -1.00000715, -0.00184246048, 4.810463e-006, 4.54703058e-006, -2.57986494e-006, 1.00000215)) | |
574 | mesh("CylinderMesh",LightPart3,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
575 | PEmitterPart1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","PEmitterPart1",Vector3.new(2.4000001, 0.200000003, 2.4000001)) | |
576 | PEmitterPart1weld=weld(m,Seat,PEmitterPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.69895315, -4.71988916, 0.0283708572, 0.000658218167, 1.00000167, -1.0073185e-005, 9.90134686e-006, 1.02072663e-005, 1.00000036, 1.00000262, -0.000658193254, -9.98407359e-006)) | |
577 | mesh("CylinderMesh",PEmitterPart1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
578 | PEmitterPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PEmitterPart2",Vector3.new(1.59999955, 0.400000006, 2.4000001)) | |
579 | PEmitterPart2weld=weld(m,Seat,PEmitterPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.3991456, -0.161645412, -0.026222229, 7.9485153e-006, 1.75796795e-005, -1.00000286, 0.00101725385, -1.00000632, -1.7571123e-005, -1.00001132, -0.00101734383, -7.60885086e-006)) | |
580 | mesh("CylinderMesh",PEmitterPart2,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
581 | PEmitterPart3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PEmitterPart3",Vector3.new(1.59999955, 0.400000006, 2.4000001)) | |
582 | PEmitterPart3weld=weld(m,Seat,PEmitterPart3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800851226, -0.161319733, 0.0281848907, 8.46056537e-006, -1.00613879e-005, 1.00000072, -0.0013102591, -1.00000083, -1.00499783e-005, 1.00000203, -0.001310274, -8.5631309e-006)) | |
583 | mesh("CylinderMesh",PEmitterPart3,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
584 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
585 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.10057306, -1.60665989, 1.59966803, 0.00121642661, 1.00000107, 6.69450401e-006, -1.00000203, 0.00121640088, 8.88051545e-006, 8.7829776e-006, -6.70549616e-006, 1.00000072)) | |
586 | mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
587 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
588 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.80097604, 0.50269413, -1.77186775, 1.45286026e-006, 1.00389962e-005, -1.00000358, 0.00114388636, 1.00000858, 1.00391544e-005, 1.00001395, -0.00114375819, 9.94613174e-007)) | |
589 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.20000005, 0.400000006)) | |
590 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.973210335, -2.69548035, -1.20025182, -1.00000799, -0.00127372472, -1.10720396e-006, -0.00127365696, 1.00000429, 6.68506436e-006, 1.36692302e-006, 6.68705343e-006, -1.00000215)) | |
591 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
592 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.20000005, 2.00000024)) | |
593 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.971236229, -2.69940758, 3.60063601, 1.00000632, -0.000226969263, -3.17525473e-006, 0.000227024633, 1.00000417, 5.83810788e-006, 2.99512817e-006, -5.839197e-006, 1.00000143)) | |
594 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
595 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.99999952, 0.400000006, 2.4000001)) | |
596 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800851583, 0.121459961, -0.0277256966, 8.87724491e-006, -9.97057032e-006, 1.00000072, 0.00105294876, 1.00000131, 9.96092513e-006, -1.00000226, 0.00105292327, 8.97712744e-006)) | |
597 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
598 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(1.60000002, 1.20000005, 1.60000026)) | |
599 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0266094208, 0.29872036, 3.80084038, -1.00000596, 0.000215336724, 3.02296189e-006, -0.000215385953, -1.00000346, -6.71394901e-006, 2.84271141e-006, -6.71498856e-006, 1.00000143)) | |
600 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
601 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(1.60000002, 1, 1.00000036)) | |
602 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0277814865, -2.60056448, -1.89906287, 1.00000501, 0.00147263659, 2.15560358e-005, -0.00147259212, 1.0000025, 1.70366854e-006, -2.17322777e-005, -1.73578894e-006, 1.00000143)) | |
603 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
604 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
605 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.19967914, 0.102137566, 1.7724371, -1.12341022e-005, -1.00538928e-005, 1.00000501, 0.00132563838, 1.00001132, 1.00665611e-005, -1.00001991, 0.00132545829, -1.05952149e-005)) | |
606 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
607 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
608 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.10069275, -0.202798367, 2.26717615, 0.00120945298, 1.00000107, 4.8923921e-006, -0.707215309, 0.000851864635, 0.707000434, 0.707001269, -0.000858524989, 0.707214177)) | |
609 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
610 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.20000005, 2.44000006, 1.20000005)) | |
611 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09909439, -0.0282974243, 1.60065281, 0.000954389921, 1.00000143, 6.72990882e-006, -1.00000238, 0.000954364368, 8.87872102e-006, 8.78290484e-006, -6.73857221e-006, 1.00000072)) | |
612 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
613 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.400000006, 1.67999995, 2.79999995)) | |
614 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09939575, -0.0249238014, 0.000835195184, -0.00237057498, 1.00000083, 2.07627068e-006, -1.00000334, -0.00237061712, -9.39066467e-006, -9.56443273e-006, -2.09890413e-006, 1.00000143)) | |
615 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 1, 1)) | |
616 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999917, 2, 2.4000001)) | |
617 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.3996911, -1.09863853, -0.023414135, -1.02643153e-005, -6.34739536e-006, 1.00000143, -0.00350100454, 0.999997556, 6.31165949e-006, -1.00000012, -0.00350104389, -1.01077558e-005)) | |
618 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.9999994, 0.400000006, 1.60000002)) | |
619 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.79974103, 0.121685505, -0.0247735977, -9.55743508e-006, -7.60076182e-006, 1.00000143, -0.00194565929, 1.00000179, 7.58210945e-006, -1.00000441, -0.00194570271, -9.39349047e-006)) | |
620 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1, 1.00000036)) | |
621 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.02389455, -2.59895945, -1.89978969, 1.00000012, 0.00350916269, 6.12183703e-006, -0.00350912334, 0.999997556, 6.27520785e-006, -6.27847794e-006, -6.29703845e-006, 1.00000143)) | |
622 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
623 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Medium stone grey","Part",Vector3.new(1.60000002, 1.20000005, 2.00000024)) | |
624 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0286903381, -2.69945574, 3.60064149, 1.00000596, 3.71790593e-005, -3.99851979e-006, -3.71306123e-005, 1.00000346, 6.82252312e-006, 3.81997324e-006, -6.82276277e-006, 1.00000143)) | |
625 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
626 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.59999943, 2, 2.4000001)) | |
627 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.8006928, -1.09817791, -0.0239701271, -8.98009148e-006, -7.91142156e-006, 1.00000358, -0.00275296904, 1.00000489, 7.88691887e-006, -1.00001121, -0.00275307172, -8.55504277e-006)) | |
628 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.20000005, 2.00000024)) | |
629 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.0289371, -2.69907236, 3.60064173, 1.00000286, 0.000118954362, -4.08593451e-006, -0.000118930133, 1.00000167, 7.12752535e-006, 3.99738292e-006, -7.12723522e-006, 1.00000072)) | |
630 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
631 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
632 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.09809923, 1.85493279, 1.3203733, 0.00120741897, 1.00000107, 6.69461224e-006, -1.00000203, 0.00120739336, 8.88088289e-006, 8.78340416e-006, -6.70552527e-006, 1.00000072)) | |
633 | mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
634 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(2.39999914, 0.799999952, 0.400000006)) | |
635 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.19961305, -0.500425339, -1.02260256, -6.82393784e-006, -6.99848624e-006, 1.00000215, -0.00398232276, 0.999997139, 6.97173709e-006, -1.00000083, -0.0039823791, -6.58368936e-006)) | |
636 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999964, 0.400000006, 0.400000006)) | |
637 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.39966202, 0.502758503, -1.77234411, 9.15526471e-006, 1.92923762e-005, -1.00000572, 0.00103723735, 1.00001311, 1.9299463e-005, 1.00002289, -0.00103703619, 8.42037116e-006)) | |
638 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 2.44000006, 0.819999993)) | |
639 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09971237, -0.0254769325, -1.78927946, -0.00225500413, 1.00000107, 1.23419306e-006, -1.00000358, -0.00225504651, -8.37120933e-006, -8.54711652e-006, -1.2534432e-006, 1.00000143)) | |
640 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999905, 1.20000017, 0.400000006)) | |
641 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.60065103, -1.4999485, -1.02666402, 8.7284343e-006, -1.00782472e-005, 1, -0.000945873966, 0.999999523, 1.00864991e-005, -0.999999523, -0.000945874082, 8.71889824e-006)) | |
642 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
643 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.20066595, 0.099588871, 1.82859683, 1.04471437e-005, 9.91858269e-006, -1.00000429, 0.00111895963, 1.00001025, 9.92849255e-006, 1.0000174, -0.00111880328, 9.89987166e-006)) | |
644 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
645 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.99999952, 0.400000006, 2.4000001)) | |
646 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.39914107, 0.121270657, -0.0247020721, -1.12630914e-005, -6.10568304e-006, 1.00000143, -0.00199317792, 1.00000179, 6.08319124e-006, -1.00000429, -0.00199322123, -1.10965157e-005)) | |
647 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
648 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000072, 1.20000005, 1.60000002)) | |
649 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07852316, 4.01986313, 0.0285496712, -0.000669267029, -1.00000548, 9.96278504e-006, -8.67575909e-006, -1.02379381e-005, -1.00000143, 1.00000834, -0.000669191941, -8.9371988e-006)) | |
650 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
651 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
652 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.10079098, -1.88642669, 1.31939626, 0.0012075752, 1.00000107, 6.69461588e-006, -1.00000203, 0.00120754959, 8.88090744e-006, 8.78342962e-006, -6.70552981e-006, 1.00000072)) | |
653 | mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
654 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.60000002)) | |
655 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.09899664, 4.01988506, 0.0283508301, -0.000658542325, -1.00000548, 9.94970651e-006, -8.54435893e-006, -1.02250406e-005, -1.00000143, 1.00000834, -0.000658467179, -8.80591506e-006)) | |
656 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
657 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
658 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40058184, 0.102204323, 1.77229977, -3.52337838e-006, -1.00593106e-005, 1.00000715, 0.00131403375, 1.00001681, 1.00607776e-005, -1.00002849, 0.00131377799, -2.61663718e-006)) | |
659 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
660 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
661 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.40032578, 0.102355003, -1.37541962, 8.58009025e-006, 8.64925914e-006, -1.00000572, -0.00168570655, 1.00001228, 8.63441437e-006, 1.00002205, 0.00168588117, 7.8797857e-006)) | |
662 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.20000005, 1.20000005, 1.60000002)) | |
663 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.09882975, 3.9995327, 0.0252323151, 0.00236401567, -1.00000095, 1.37274283e-005, 1.02712474e-005, -1.37032648e-005, -1.00000143, 1.00000346, 0.00236405805, 1.00601055e-005)) | |
664 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
665 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
666 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.39940953, 0.0998649597, -1.42620778, -1.10797255e-005, -5.98889392e-006, 1.00000286, -0.00107203797, 1.00000703, 5.97664257e-006, -1.00001156, -0.00107213622, -1.0728696e-005)) | |
667 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
668 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.09826088, -1.37392807, 1.60062718, 0.00068693317, -1.00000489, -7.26723147e-006, 1.00000858, 0.000687003369, -5.87700424e-006, 5.61380602e-006, -7.26377766e-006, 1.00000215)) | |
669 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
670 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 1.63999999, 2.39999986)) | |
671 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09963369, -0.0252270699, -0.199597985, -0.0023164039, 1.00000095, 2.77942377e-006, -1.00000358, -0.00231644628, -6.79737468e-006, -6.9696207e-006, -2.79554092e-006, 1.00000143)) | |
672 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.20000005, 1.20000005, 0.800000072)) | |
673 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.09937716, 3.99955177, 0.805366039, 0.0025998354, -1.00000036, 1.37882917e-005, 1.03445873e-005, -1.37615652e-005, -1.00000143, 1.00000286, 0.00259987731, 1.01300557e-005)) | |
674 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
675 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(2.39999962, 1.20000005, 1.20000017)) | |
676 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0261664391, 0.699213028, 3.99949765, 1.00000572, 0.00100220111, 1.48121271e-005, 0.00100215548, -1.00000322, -3.17156855e-006, 1.49876814e-005, 3.18679167e-006, -1.00000143)) | |
677 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
678 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999905, 1.20000005, 0.400000006)) | |
679 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.600631, -1.49826574, 0.973803997, 7.93251456e-006, -9.21295396e-006, 1.00000143, -0.00070046098, 1.00000322, 9.21823994e-006, -1.00000572, -0.00070050772, 8.10483834e-006)) | |
680 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Cyan","Part",Vector3.new(2.4000001, 0.800000012, 1.20000005)) | |
681 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0281844139, -3.69953918, 2.00111723, 1.00000632, 0.000523618481, -3.55036173e-006, -0.000523565046, 1.00000417, 3.38168029e-005, 3.38926543e-006, -3.38153877e-005, 1.00000143)) | |
682 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
683 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(5.99999952, 0.400000006, 2.4000001)) | |
684 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399641037, 0.102004528, -0.0230698586, -9.47117587e-006, -8.17592172e-006, 1.00000072, -0.00354294665, 0.999996066, 8.14245232e-006, -0.99999702, -0.00354297319, -9.41073449e-006)) | |
685 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
686 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.20072079, 0.0999488831, -1.42676711, -9.45360625e-006, -8.67914787e-006, 1.00000072, -0.000586868729, 1.00000226, 8.67347171e-006, -1.00000322, -0.000586898066, -9.36935157e-006)) | |
687 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
688 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.09831715, -1.57168865, 1.60065258, -0.00121642172, -1.00000107, -8.14043233e-006, 1.00000203, -0.00121639587, -6.87361808e-006, 6.77431854e-006, -8.1489834e-006, 1.00000072)) | |
689 | mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
690 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(2.39999962, 1.79999995, 1.20000029)) | |
691 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.027923584, -2.19997215, 3.99946332, -1.00000608, -0.000631342875, -1.41628443e-005, -0.000631296309, 1.00000358, 2.30270462e-006, 1.43401248e-005, 2.31202375e-006, -1.00000143)) | |
692 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
693 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
694 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.19959116, 0.102638721, -1.37454414, 9.5064006e-006, 1.05951704e-005, -1.00000072, -0.00102492026, 1.00000191, 1.05853314e-005, 1.00000286, 0.00102494913, 9.42790666e-006)) | |
695 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.60000002, 1.20000005, 1.60000002)) | |
696 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.09960842, 3.99954987, 0.025302887, 0.0020484766, -1.00000155, 1.44522555e-005, 1.16322881e-005, -1.44284832e-005, -1.00000143, 1.00000417, 0.00204851967, 1.14239829e-005)) | |
697 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
698 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(2.39999914, 2, 1.60000002)) | |
699 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199211806, -1.0986681, -0.0233745575, -1.11853778e-005, -6.27877898e-006, 1.00000215, -0.00353213609, 0.999999464, 6.2396125e-006, -1.00000286, -0.00353220175, -1.09394114e-005)) | |
700 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
701 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.59987855, 0.500069618, -1.82840061, -5.72391309e-006, -9.93667982e-006, 1, 0.00128525752, 0.999999285, 9.94402853e-006, -0.999999285, 0.00128525798, -5.71113651e-006)) | |
702 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(2.39999962, 1.60000002, 0.800000191)) | |
703 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0259170532, 0.499517918, 3.79930305, 0.999999762, 0.000795156462, 6.53996267e-006, 0.000795156462, -0.999999762, -2.50548419e-006, 6.53796724e-006, 2.51068354e-006, -1)) | |
704 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
705 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.20000005, 1.19999981, 1.60000002)) | |
706 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.00004363, -2.69912815, -0.0252399445, 1.02496506e-005, -8.66150822e-006, 1.00000143, -0.00142499432, 1.00000334, 8.67598465e-006, -1.00000548, -0.00142504578, 1.04160645e-005)) | |
707 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.400000006, 2.48000002, 0.800000072)) | |
708 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09877491, -0.0239162445, -1.75978482, -0.00255785463, 1.00000238, 1.9593549e-006, -1.00000584, -0.00255792309, -6.38309393e-006, -6.64610343e-006, -1.9762258e-006, 1.00000215)) | |
709 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 1, 1)) | |
710 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","Part",Vector3.new(1.60000002, 1.20000005, 0.400000006)) | |
711 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0278177261, -2.69615316, -1.2002393, -1.00000882, -0.00100973377, -1.76265053e-006, -0.00100965833, 1.00000548, 5.8631631e-006, 2.02497131e-006, 5.86550277e-006, -1.00000215)) | |
712 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
713 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.999999583, 0.999999821, 2.4000001)) | |
714 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.89941692, -2.59950495, -0.0234746933, -2.01913317e-005, -6.06103868e-006, 1.00000143, -0.00273476192, 1, 6.00589965e-006, -1.00000262, -0.00273480313, -2.00290669e-005)) | |
715 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999964, 0.400000006, 0.400000006)) | |
716 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.40056348, 0.499668121, -1.82858419, -8.54795962e-006, -1.6956734e-006, 1, 0.00110444042, 0.999999464, 1.70511328e-006, -0.999999464, 0.00110444089, -8.54608061e-006)) | |
717 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(2.39999914, 0.799999952, 0.400000006)) | |
718 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.19949466, -0.496664524, 0.977795124, -8.65785569e-006, -5.64212451e-006, 1.00000215, -0.00364382332, 0.999999046, 5.61095248e-006, -1.0000025, -0.00364388828, -8.41030123e-006)) | |
719 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.99999952, 0.400000006, 0.400000006)) | |
720 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399651527, 0.502972603, -1.77228737, 3.99069586e-006, 1.96569999e-005, -1, 0.00093543838, 0.999999583, 1.96607234e-005, 0.999999583, -0.000935438438, 3.97230588e-006)) | |
721 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999964, 0.400000006, 0.400000006)) | |
722 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.60058331, 0.502756119, -1.77220917, 3.1345669e-006, 1.90898172e-005, -1, 0.00108608603, 0.999999464, 1.90932096e-005, 0.999999464, -0.00108608603, 3.11383133e-006)) | |
723 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.99999964, 0.400000006, 0.400000006)) | |
724 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.400335431, 0.499809742, -1.82851481, -2.74840522e-006, -1.86587158e-006, 1, 0.00109240296, 0.999999464, 1.86887303e-006, -0.999999464, 0.00109240343, -2.74636477e-006)) | |
725 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
726 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.0982089, -0.177716255, 2.24350333, -0.00121559133, -1.00000107, -9.91930392e-006, 0.707227945, -0.00086669327, 0.706987441, -0.706988692, 0.000852374127, 0.707227051)) | |
727 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
728 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.20000005, 1.60000026)) | |
729 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0268414, 0.29840517, 3.80084729, -1.00000286, -0.000124700324, 3.25170913e-006, 0.000124676153, -1.00000167, -7.1612867e-006, 3.16320006e-006, -7.16107797e-006, 1.00000072)) | |
730 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
731 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
732 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.79992509, 0.499865532, -1.82837605, -5.73170928e-006, -1.33768981e-006, 1, 0.00114957907, 0.999999404, 1.3442783e-006, -0.999999404, 0.00114957953, -5.73016723e-006)) | |
733 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.19999957, 1.19999981, 0.400000095)) | |
734 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.00005484, -2.70011663, -1.02729821, 1.02740423e-005, -8.67533709e-006, 1.00000143, -0.00053286145, 1.00000417, 8.6805303e-006, -1.00000632, -0.000532914884, 1.04481869e-005)) | |
735 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.19999981, 2.4000001)) | |
736 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.80077457, -0.29885149, -0.0257496834, -9.9696108e-006, -7.46038404e-006, 1.00000286, -0.00145209511, 1.0000062, 7.44565523e-006, -1.00001085, -0.00145219057, -9.62300419e-006)) | |
737 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
738 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.59910321, 0.502381325, -1.77243471, 7.18249839e-006, 1.87215628e-005, -1, 0.00126205466, 0.999999285, 1.87306141e-005, 0.999999285, -0.0012620549, 7.15886517e-006)) | |
739 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000066, 1.20000005, 1.60000002)) | |
740 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07904243, 4.01990128, 0.828058243, 0.000253173639, -1.00000191, 7.04345894e-006, -1.1683358e-005, -7.18708998e-006, -1.00000036, 1.00000286, 0.000253197795, -1.1774493e-005)) | |
741 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
742 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000066, 1.20000005, 1.60000002)) | |
743 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07732153, 4.01985693, -0.772010803, -0.000515888387, -1.0000056, 9.91615616e-006, -8.71991506e-006, -1.01926553e-005, -1.00000143, 1.00000846, -0.000515813765, -8.98290546e-006)) | |
744 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
745 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.20000005, 1.20000005, 0.800000072)) | |
746 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.0969739, 3.99953985, -0.774913788, 0.00259982888, -1.00000036, 1.3755166e-005, 1.03445018e-005, -1.37284396e-005, -1.00000143, 1.00000286, 0.00259987079, 1.01300575e-005)) | |
747 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
748 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.20000005, 0.400000006)) | |
749 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02770901, -2.69822073, -1.20022452, -1.00000584, -0.00107230339, -1.80813197e-006, -0.00107225101, 1.0000037, 5.86305759e-006, 1.98067346e-006, 5.86536089e-006, -1.00000143)) | |
750 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
751 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.99999964, 0.400000006, 0.400000006)) | |
752 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.59950948, 0.499870777, -1.82842445, -6.28917314e-006, -1.71337194e-006, 1, 0.00114983425, 0.999999404, 1.72060265e-006, -0.999999404, 0.00114983472, -6.28719818e-006)) | |
753 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.00000012, 1.00000036)) | |
754 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.976900101, -2.59928131, -1.89929867, 1.00000262, 0.00268047908, 2.01360745e-005, -0.00268043764, 1.00000012, 5.85600083e-006, -2.02990741e-005, -5.91033995e-006, 1.00000143)) | |
755 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
756 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.20000005, 2.44000006, 1.20000005)) | |
757 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09918308, -0.0287213326, -2.39937401, 0.00113682076, 1.00000441, 6.51179835e-006, -1.00000811, 0.00113674463, 1.05428499e-005, 1.02672857e-005, -6.52436302e-006, 1.00000215)) | |
758 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
759 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
760 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.10039949, -1.40645576, 1.5996722, 0.00122026633, 1.00000107, 6.69451219e-006, -1.00000203, 0.00122024072, 8.88053819e-006, 8.78297396e-006, -6.70553845e-006, 1.00000072)) | |
761 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
762 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
763 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.39952588, 0.0996141434, 1.82832408, 8.23051596e-006, 9.98337873e-006, -1, 0.00109611196, 0.999999464, 9.99239455e-006, 0.999999464, -0.00109611242, 8.21956746e-006)) | |
764 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
765 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000006, 1.20000005, 1.60000026)) | |
766 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.973332405, 0.298690319, 3.80083895, -1.00000632, 0.000218193265, 2.34101208e-006, -0.000218248606, -1.00000417, -5.87187969e-006, 2.1609244e-006, -5.87275917e-006, 1.00000143)) | |
767 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
768 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.19999957, 1.19999981, 0.400000095)) | |
769 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.00003862, -2.69827557, 0.973701954, 1.07890164e-005, -9.35332719e-006, 1.00000143, -0.000717455172, 1.00000322, 9.3607996e-006, -1.00000572, -0.000717501913, 1.09610719e-005)) | |
770 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 2.44000006, 0.200000003)) | |
771 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0996747, -0.025454998, 1.08058298, -0.00225337758, 1.00000107, 1.23469272e-006, -1.0000037, -0.00225342019, -7.47742706e-006, -7.65333152e-006, -1.2519148e-006, 1.00000143)) | |
772 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.400000006, 2.48000002, 0.400000036)) | |
773 | Partweld=weld(m,Seat,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09876585, -0.0238280296, 1.17050171, -0.00255756709, 1.00000238, 1.95993493e-006, -1.00000584, -0.00255763577, -4.95301629e-006, -5.21601942e-006, -1.97314671e-006, 1.00000215)) | |
774 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 1, 1)) | |
775 | ||
776 | local Light1 = it("SpotLight",LightPart1) | |
777 | Light1.Angle = 90 | |
778 | Light1.Brightness = 1 | |
779 | Light1.Shadows = true | |
780 | Light1.Face = "Left" | |
781 | Light1.Range = 60 | |
782 | ||
783 | local Light2 = it("PointLight",LightPart2) | |
784 | Light2.Brightness = 5 | |
785 | Light2.Shadows = true | |
786 | Light2.Range = 8 | |
787 | ||
788 | local Light3 = it("PointLight",LightPart3) | |
789 | Light3.Brightness = 5 | |
790 | Light3.Shadows = true | |
791 | Light3.Range = 8 | |
792 | ||
793 | local PE1 = Instance.new("ParticleEmitter",PEmitterPart1) | |
794 | PE1.Color = ColorSequence.new(Color3.new (85, 255, 255), Color3.new (85, 255, 255)) | |
795 | PE1.Transparency = NumberSequence.new(.8) | |
796 | PE1.Size = NumberSequence.new(2) | |
797 | PE1.Texture = "rbxassetid://242093929" | |
798 | PE1.Lifetime = NumberRange.new(1) | |
799 | PE1.Rate = 50 | |
800 | PE1.Rotation = NumberRange.new(100) | |
801 | PE1.Speed = NumberRange.new(3) | |
802 | PE1.LightEmission = 1 | |
803 | ||
804 | local PE2 = Instance.new("ParticleEmitter",PEmitterPart2) | |
805 | PE2.Color = ColorSequence.new(Color3.new (85, 255, 255), Color3.new (85, 255, 255)) | |
806 | PE2.Transparency = NumberSequence.new(.8) | |
807 | PE2.Size = NumberSequence.new(2) | |
808 | PE2.Texture = "rbxassetid://242093929" | |
809 | PE2.Lifetime = NumberRange.new(0.5) | |
810 | PE2.Rate = 25 | |
811 | PE2.Rotation = NumberRange.new(0) | |
812 | PE2.Speed = NumberRange.new(5) | |
813 | PE2.LightEmission = 1 | |
814 | ||
815 | local PE3 = Instance.new("ParticleEmitter",PEmitterPart3) | |
816 | PE3.Color = ColorSequence.new(Color3.new (85, 255, 255), Color3.new (85, 255, 255)) | |
817 | PE3.Transparency = NumberSequence.new(.8) | |
818 | PE3.Size = NumberSequence.new(2) | |
819 | PE3.Texture = "rbxassetid://242093929" | |
820 | PE3.Lifetime = NumberRange.new(0.5) | |
821 | PE3.Rate = 25 | |
822 | PE3.Rotation = NumberRange.new(0) | |
823 | PE3.Speed = NumberRange.new(5) | |
824 | PE3.LightEmission = 1 | |
825 | ||
826 | Seat.CFrame = Torso.CFrame*CFrame.new(5,0.5,0) | |
827 | ||
828 | ||
829 | local bodypos = Instance.new("BodyPosition",Seat) | |
830 | ||
831 | bodypos.position = Torso.CFrame*CFrame.new(5,0.5,0).p | |
832 | ||
833 | bodypos.maxForce = Vector3.new(0,math.huge,0) | |
834 | local bodygyr = Instance.new("BodyGyro",m.Seat) | |
835 | bodygyr.maxTorque = Vector3.new(7e5, 0, 7e5); | |
836 | local bodyvel = Instance.new("BodyVelocity",m.Seat) | |
837 | bodyvel.velocity=Vector3.new(0,0,0) | |
838 | bodyvel.maxForce = Vector3.new(9000,9000,9000) | |
839 | local bodyang = Instance.new("BodyAngularVelocity",m.Seat) | |
840 | bodyang.angularvelocity=Vector3.new(0,0,0) | |
841 | ||
842 | ||
843 | S=Instance.new("Sound",Seat) | |
844 | S.SoundId = 'http://www.roblox.com/asset/?id=149560784' | |
845 | S.Looped = true | |
846 | S:play() | |
847 | ||
848 | ||
849 | ||
850 | ||
851 | ||
852 | game:GetService("RunService").Heartbeat:connect(function() | |
853 | ||
854 | local ray = Ray.new(Seat.Position, Vector3.new(0, -5.5, 0)) | |
855 | local hitz, enz, norm = workspace:FindPartOnRay(ray, Character) | |
856 | ||
857 | local targetPos = enz+Vector3.new(0,5 + math.sin(tick()/2)*.25,0); | |
858 | ||
859 | bodyvel.velocity = m.Seat.CFrame.lookVector*m.Seat.Throttle*80 | |
860 | S.Pitch = Seat.Throttle/80+1 | |
861 | bodyang.angularvelocity = Vector3.new(0,m.Seat.Steer*-10,0) | |
862 | bodypos.position = targetPos | |
863 | ||
864 | local dir = (Seat.CFrame.lookVector*Vector3.new(1,1,1)).unit | |
865 | bodygyr.cframe = CFrame.new(enz,enz+dir)*CFrame.Angles(-math.asin(dir:Dot(norm)),0,0) | |
866 | end) | |
867 | ||
868 | function onChildAdded(child) | |
869 | for i = 0,1,0.1 do | |
870 | swait() | |
871 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
872 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
873 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(85), math.rad(110)), 0.3) | |
874 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-85), math.rad(-110)), 0.3) | |
875 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3) | |
876 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(20)),.3) | |
877 | end | |
878 | end | |
879 | ||
880 | Seat.ChildAdded:connect(onChildAdded) | |
881 | ||
882 | local sine = 0 | |
883 | local change = 1 | |
884 | local val = 0 | |
885 | ||
886 | while true do | |
887 | swait() | |
888 | sine = sine + change | |
889 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
890 | local velderp=RootPart.Velocity.y | |
891 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
892 | if equipped==true or equipped==false then | |
893 | if attack==false then | |
894 | idle=idle+1 | |
895 | else | |
896 | idle=0 | |
897 | end | |
898 | if idle>=500 then | |
899 | if attack==false then | |
900 | --Sheath() | |
901 | end | |
902 | end | |
903 | ||
904 | --[[if Humanoid.Sit == true then | |
905 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
906 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
907 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(5)), 0.3) | |
908 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(-5)), 0.3) | |
909 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3) | |
910 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(20)),.3) | |
911 | elseif Humanoid.Sit == false then | |
912 | Anim = "Standing" | |
913 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
914 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
915 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
916 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
917 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
918 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
919 | end]]-- | |
920 | ||
921 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
922 | Anim="Jump" | |
923 | if attack==false and Humanoid.Sit == false then | |
924 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
925 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
926 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3) | |
927 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3) | |
928 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
929 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
930 | end | |
931 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
932 | Anim="Fall" | |
933 | if attack==false and Humanoid.Sit == false then | |
934 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
935 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
936 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.2) | |
937 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.2) | |
938 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
939 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
940 | end | |
941 | elseif torvel<1 and hitfloor~=nil then | |
942 | Anim="Idle" | |
943 | if attack==false and Humanoid.Sit == false then | |
944 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(5)),.3) | |
945 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-5)),.3) | |
946 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.3) | |
947 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.3) | |
948 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
949 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
950 | end | |
951 | elseif torvel>2 and hitfloor~=nil then | |
952 | Anim="Walk" | |
953 | if attack==false and Humanoid.Sit == false then | |
954 | change=3 | |
955 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
956 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
957 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30*math.cos(sine/10)), math.rad(0), math.rad(10)), 0.3) | |
958 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30*math.cos(sine/10)), math.rad(0), math.rad(-10)), 0.3) | |
959 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
960 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
961 | end | |
962 | end | |
963 | end | |
964 | if #Effects>0 then | |
965 | --table.insert(Effects,{prt,"Block1",delay}) | |
966 | for e=1,#Effects do | |
967 | if Effects[e]~=nil then | |
968 | --for j=1,#Effects[e] do | |
969 | local Thing=Effects[e] | |
970 | if Thing~=nil then | |
971 | local Part=Thing[1] | |
972 | local Mode=Thing[2] | |
973 | local Delay=Thing[3] | |
974 | local IncX=Thing[4] | |
975 | local IncY=Thing[5] | |
976 | local IncZ=Thing[6] | |
977 | if Thing[1].Transparency<=1 then | |
978 | if Thing[2]=="Block1" then | |
979 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
980 | Mesh=Thing[1].Mesh | |
981 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
982 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
983 | elseif Thing[2]=="Cylinder" then | |
984 | Mesh=Thing[1].Mesh | |
985 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
986 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
987 | elseif Thing[2]=="Blood" then | |
988 | Mesh=Thing[7] | |
989 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
990 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
991 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
992 | elseif Thing[2]=="Elec" then | |
993 | Mesh=Thing[1].Mesh | |
994 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
995 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
996 | elseif Thing[2]=="Disappear" then | |
997 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
998 | end | |
999 | else | |
1000 | Part.Parent=nil | |
1001 | table.remove(Effects,e) | |
1002 | end | |
1003 | end | |
1004 | --end | |
1005 | end | |
1006 | end | |
1007 | end | |
1008 | end |