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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end | |
5 | ----Reskinned---- | |
6 | ---By KAITO_KIRO---- | |
7 | ||
8 | Player=game:GetService("Players").LocalPlayer | |
9 | Character=Player.Character | |
10 | PlayerGui=Player.PlayerGui | |
11 | Backpack=Player.Backpack | |
12 | Torso=Character.Torso | |
13 | Head=Character.Head | |
14 | Humanoid=Character.Humanoid | |
15 | m=Instance.new('Model',Character) | |
16 | LeftArm=Character["Left Arm"] | |
17 | LeftLeg=Character["Left Leg"] | |
18 | RightArm=Character["Right Arm"] | |
19 | RightLeg=Character["Right Leg"] | |
20 | LS=Torso["Left Shoulder"] | |
21 | LH=Torso["Left Hip"] | |
22 | RS=Torso["Right Shoulder"] | |
23 | RH=Torso["Right Hip"] | |
24 | Face = Head.face | |
25 | Neck=Torso.Neck | |
26 | it=Instance.new | |
27 | attacktype=1 | |
28 | vt=Vector3.new | |
29 | cf=CFrame.new | |
30 | euler=CFrame.fromEulerAnglesXYZ | |
31 | angles=CFrame.Angles | |
32 | cloaked=false | |
33 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
34 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
35 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
36 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
37 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
38 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
39 | RootPart=Character.HumanoidRootPart | |
40 | RootJoint=RootPart.RootJoint | |
41 | RootCF=euler(-1.57,0,3.14) | |
42 | attack = false | |
43 | attackdebounce = false | |
44 | deb=false | |
45 | equipped=true | |
46 | hand=false | |
47 | MMouse=nil | |
48 | combo=0 | |
49 | mana=0 | |
50 | trispeed=.2 | |
51 | attackmode='none' | |
52 | local idle=0 | |
53 | local Anim="Idle" | |
54 | local Effects={} | |
55 | local gun=false | |
56 | local shoot=false | |
57 | player=nil | |
58 | ||
59 | mouse=Player:GetMouse() | |
60 | --save shoulders | |
61 | RSH, LSH=nil, nil | |
62 | --welds | |
63 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
64 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
65 | LH=Torso["Left Hip"] | |
66 | RH=Torso["Right Hip"] | |
67 | TorsoColor=Torso.BrickColor | |
68 | function NoOutline(Part) | |
69 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
70 | end | |
71 | player=Player | |
72 | ch=Character | |
73 | RSH=ch.Torso["Right Shoulder"] | |
74 | LSH=ch.Torso["Left Shoulder"] | |
75 | -- | |
76 | RSH.Parent=nil | |
77 | LSH.Parent=nil | |
78 | -- | |
79 | RW.Name="Right Shoulder" | |
80 | RW.Part0=ch.Torso | |
81 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
82 | RW.C1=cf(0, 0.5, 0) | |
83 | RW.Part1=ch["Right Arm"] | |
84 | RW.Parent=ch.Torso | |
85 | -- | |
86 | LW.Name="Left Shoulder" | |
87 | LW.Part0=ch.Torso | |
88 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
89 | LW.C1=cf(0, 0.5, 0) | |
90 | LW.Part1=ch["Left Arm"] | |
91 | LW.Parent=ch.Torso | |
92 | ||
93 | local Stats=Instance.new("BoolValue") | |
94 | Stats.Name="Stats" | |
95 | Stats.Parent=Character | |
96 | local Atk=Instance.new("NumberValue") | |
97 | Atk.Name="Damage" | |
98 | Atk.Parent=Stats | |
99 | Atk.Value=1 | |
100 | local Def=Instance.new("NumberValue") | |
101 | Def.Name="Defense" | |
102 | Def.Parent=Stats | |
103 | Def.Value=1 | |
104 | local Speed=Instance.new("NumberValue") | |
105 | Speed.Name="Speed" | |
106 | Speed.Parent=Stats | |
107 | Speed.Value=1 | |
108 | local Mvmt=Instance.new("NumberValue") | |
109 | Mvmt.Name="Movement" | |
110 | Mvmt.Parent=Stats | |
111 | Mvmt.Value=1 | |
112 | ||
113 | local donum=0 | |
114 | ||
115 | ||
116 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
117 | local fp=it("Part") | |
118 | fp.formFactor=formfactor | |
119 | fp.Parent=parent | |
120 | fp.Reflectance=reflectance | |
121 | fp.Transparency=transparency | |
122 | fp.CanCollide=false | |
123 | fp.Locked=true | |
124 | fp.BrickColor=brickcolor | |
125 | fp.Name=name | |
126 | fp.Size=size | |
127 | fp.Position=Torso.Position | |
128 | NoOutline(fp) | |
129 | fp.Material="SmoothPlastic" | |
130 | fp:BreakJoints() | |
131 | return fp | |
132 | end | |
133 | ||
134 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
135 | local mesh=it(Mesh) | |
136 | mesh.Parent=part | |
137 | if Mesh=="SpecialMesh" then | |
138 | mesh.MeshType=meshtype | |
139 | if meshid~="nil" then | |
140 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
141 | end | |
142 | end | |
143 | mesh.Offset=offset | |
144 | mesh.Scale=scale | |
145 | return mesh | |
146 | end | |
147 | ||
148 | function weld(parent,part0,part1,c0) | |
149 | local weld=it("Weld") | |
150 | weld.Parent=parent | |
151 | weld.Part0=part0 | |
152 | weld.Part1=part1 | |
153 | weld.C0=c0 | |
154 | return weld | |
155 | end | |
156 | ||
157 | local Color1=Torso.BrickColor | |
158 | ||
159 | local bodvel=Instance.new("BodyVelocity") | |
160 | local bg=Instance.new("BodyGyro") | |
161 | ||
162 | function swait(num) | |
163 | if num==0 or num==nil then | |
164 | game:service'RunService'.Stepped:wait(0) | |
165 | else | |
166 | for i=0,num do | |
167 | game:service'RunService'.Stepped:wait(0) | |
168 | end | |
169 | end | |
170 | end | |
171 | ||
172 | ||
173 | so = function(id,par,vol,pit) | |
174 | coroutine.resume(coroutine.create(function() | |
175 | local sou = Instance.new("Sound",par or workspace) | |
176 | sou.Volume=vol | |
177 | sou.Pitch=pit or 1 | |
178 | sou.SoundId=id | |
179 | swait() | |
180 | sou:play() | |
181 | game:GetService("Debris"):AddItem(sou,6) | |
182 | end)) | |
183 | end | |
184 | ||
185 | function clerp(a,b,t) | |
186 | local qa = {QuaternionFromCFrame(a)} | |
187 | local qb = {QuaternionFromCFrame(b)} | |
188 | local ax, ay, az = a.x, a.y, a.z | |
189 | local bx, by, bz = b.x, b.y, b.z | |
190 | local _t = 1-t | |
191 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
192 | end | |
193 | ||
194 | function QuaternionFromCFrame(cf) | |
195 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
196 | local trace = m00 + m11 + m22 | |
197 | if trace > 0 then | |
198 | local s = math.sqrt(1 + trace) | |
199 | local recip = 0.5/s | |
200 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
201 | else | |
202 | local i = 0 | |
203 | if m11 > m00 then | |
204 | i = 1 | |
205 | end | |
206 | if m22 > (i == 0 and m00 or m11) then | |
207 | i = 2 | |
208 | end | |
209 | if i == 0 then | |
210 | local s = math.sqrt(m00-m11-m22+1) | |
211 | local recip = 0.5/s | |
212 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
213 | elseif i == 1 then | |
214 | local s = math.sqrt(m11-m22-m00+1) | |
215 | local recip = 0.5/s | |
216 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
217 | elseif i == 2 then | |
218 | local s = math.sqrt(m22-m00-m11+1) | |
219 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
220 | end | |
221 | end | |
222 | end | |
223 | ||
224 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
225 | local xs, ys, zs = x + x, y + y, z + z | |
226 | local wx, wy, wz = w*xs, w*ys, w*zs | |
227 | local xx = x*xs | |
228 | local xy = x*ys | |
229 | local xz = x*zs | |
230 | local yy = y*ys | |
231 | local yz = y*zs | |
232 | local zz = z*zs | |
233 | 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)) | |
234 | end | |
235 | ||
236 | function QuaternionSlerp(a, b, t) | |
237 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
238 | local startInterp, finishInterp; | |
239 | if cosTheta >= 0.0001 then | |
240 | if (1 - cosTheta) > 0.0001 then | |
241 | local theta = math.acos(cosTheta) | |
242 | local invSinTheta = 1/math.sin(theta) | |
243 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
244 | finishInterp = math.sin(t*theta)*invSinTheta | |
245 | else | |
246 | startInterp = 1-t | |
247 | finishInterp = t | |
248 | end | |
249 | else | |
250 | if (1+cosTheta) > 0.0001 then | |
251 | local theta = math.acos(-cosTheta) | |
252 | local invSinTheta = 1/math.sin(theta) | |
253 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
254 | finishInterp = math.sin(t*theta)*invSinTheta | |
255 | else | |
256 | startInterp = t-1 | |
257 | finishInterp = t | |
258 | end | |
259 | end | |
260 | 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 | |
261 | end | |
262 | ||
263 | local function CFrameFromTopBack(at, top, back) | |
264 | local right = top:Cross(back) | |
265 | return CFrame.new(at.x, at.y, at.z, | |
266 | right.x, top.x, back.x, | |
267 | right.y, top.y, back.y, | |
268 | right.z, top.z, back.z) | |
269 | end | |
270 | ||
271 | function Triangle(a, b, c) | |
272 | local edg1 = (c-a):Dot((b-a).unit) | |
273 | local edg2 = (a-b):Dot((c-b).unit) | |
274 | local edg3 = (b-c):Dot((a-c).unit) | |
275 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
276 | a, b, c = a, b, c | |
277 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
278 | a, b, c = b, c, a | |
279 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
280 | a, b, c = c, a, b | |
281 | else | |
282 | assert(false, "unreachable") | |
283 | end | |
284 | ||
285 | local len1 = (c-a):Dot((b-a).unit) | |
286 | local len2 = (b-a).magnitude - len1 | |
287 | local width = (a + (b-a).unit*len1 - c).magnitude | |
288 | ||
289 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
290 | ||
291 | local list = {} | |
292 | ||
293 | if len1 > 0.01 then | |
294 | local w1 = Instance.new('WedgePart', m) | |
295 | game:GetService("Debris"):AddItem(w1,5) | |
296 | w1.Material = "SmoothPlastic" | |
297 | w1.FormFactor = 'Custom' | |
298 | w1.BrickColor = BrickColor.new("Toothpaste") | |
299 | w1.Transparency = 0 | |
300 | w1.Reflectance = 0 | |
301 | w1.Material = "SmoothPlastic" | |
302 | w1.CanCollide = false | |
303 | local l1 = Instance.new("PointLight",w1) | |
304 | l1.Color = Color3.new(170,0,0) | |
305 | NoOutline(w1) | |
306 | local sz = Vector3.new(0.2, width, len1) | |
307 | w1.Size = sz | |
308 | local sp = Instance.new("SpecialMesh",w1) | |
309 | sp.MeshType = "Wedge" | |
310 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
311 | w1:BreakJoints() | |
312 | w1.Anchored = true | |
313 | w1.Parent = workspace | |
314 | w1.Transparency = 0.7 | |
315 | table.insert(Effects,{w1,"Disappear",.01}) | |
316 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
317 | table.insert(list,w1) | |
318 | end | |
319 | ||
320 | if len2 > 0.01 then | |
321 | local w2 = Instance.new('WedgePart', m) | |
322 | game:GetService("Debris"):AddItem(w2,5) | |
323 | w2.Material = "SmoothPlastic" | |
324 | w2.FormFactor = 'Custom' | |
325 | w2.BrickColor = BrickColor.new("Toothpaste") | |
326 | w2.Transparency = 0 | |
327 | w2.Reflectance = 0 | |
328 | w2.Material = "SmoothPlastic" | |
329 | w2.CanCollide = false | |
330 | local l2 = Instance.new("PointLight",w2) | |
331 | l2.Color = Color3.new(170,0,0) | |
332 | NoOutline(w2) | |
333 | local sz = Vector3.new(0.2, width, len2) | |
334 | w2.Size = sz | |
335 | local sp = Instance.new("SpecialMesh",w2) | |
336 | sp.MeshType = "Wedge" | |
337 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
338 | w2:BreakJoints() | |
339 | w2.Anchored = true | |
340 | w2.Parent = workspace | |
341 | w2.Transparency = 0.7 | |
342 | table.insert(Effects,{w2,"Disappear",.01}) | |
343 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
344 | table.insert(list,w2) | |
345 | end | |
346 | return unpack(list) | |
347 | end | |
348 | ||
349 | ||
350 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
351 | if hit.Parent==nil then | |
352 | return | |
353 | end | |
354 | h=hit.Parent:FindFirstChild("Humanoid") | |
355 | for _,v in pairs(hit.Parent:children()) do | |
356 | if v:IsA("Humanoid") then | |
357 | h=v | |
358 | end | |
359 | end | |
360 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
361 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
362 | end | |
363 | if hit.Parent.className=="Hat" then | |
364 | hit=hit.Parent.Parent:findFirstChild("Head") | |
365 | end | |
366 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
367 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
368 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
369 | return | |
370 | end]] | |
371 | -- hs(hit,1.2) | |
372 | c=Instance.new("ObjectValue") | |
373 | c.Name="creator" | |
374 | c.Value=game:service("Players").LocalPlayer | |
375 | c.Parent=h | |
376 | game:GetService("Debris"):AddItem(c,.5) | |
377 | Damage=math.random(minim,maxim) | |
378 | -- h:TakeDamage(Damage) | |
379 | blocked=false | |
380 | block=hit.Parent:findFirstChild("Block") | |
381 | if block~=nil then | |
382 | print(block.className) | |
383 | if block.className=="NumberValue" then | |
384 | if block.Value>0 then | |
385 | blocked=true | |
386 | if decreaseblock==nil then | |
387 | block.Value=block.Value-1 | |
388 | end | |
389 | end | |
390 | end | |
391 | if block.className=="IntValue" then | |
392 | if block.Value>0 then | |
393 | blocked=true | |
394 | if decreaseblock~=nil then | |
395 | block.Value=block.Value-1 | |
396 | end | |
397 | end | |
398 | end | |
399 | end | |
400 | if blocked==false then | |
401 | -- h:TakeDamage(Damage) | |
402 | h.Health=h.Health-Damage | |
403 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Toothpaste")) | |
404 | else | |
405 | h.Health=h.Health-(Damage/2) | |
406 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
407 | end | |
408 | if Type=="Knockdown" then | |
409 | hum=hit.Parent.Humanoid | |
410 | hum.PlatformStand=true | |
411 | coroutine.resume(coroutine.create(function(HHumanoid) | |
412 | swait(1) | |
413 | HHumanoid.PlatformStand=false | |
414 | end),hum) | |
415 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
416 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
417 | local bodvol=Instance.new("BodyVelocity") | |
418 | bodvol.velocity=angle*knockback | |
419 | bodvol.P=5000 | |
420 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
421 | bodvol.Parent=hit | |
422 | rl=Instance.new("BodyAngularVelocity") | |
423 | rl.P=3000 | |
424 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
425 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
426 | rl.Parent=hit | |
427 | game:GetService("Debris"):AddItem(bodvol,.5) | |
428 | game:GetService("Debris"):AddItem(rl,.5) | |
429 | elseif Type=="Normal" then | |
430 | vp=Instance.new("BodyVelocity") | |
431 | vp.P=500 | |
432 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
433 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
434 | if KnockbackType==1 then | |
435 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
436 | elseif KnockbackType==2 then | |
437 | vp.velocity=Property.CFrame.lookVector*knockback | |
438 | end | |
439 | if knockback>0 then | |
440 | vp.Parent=hit.Parent.Torso | |
441 | end | |
442 | game:GetService("Debris"):AddItem(vp,.5) | |
443 | elseif Type=="Up" then | |
444 | local bodyVelocity=Instance.new("BodyVelocity") | |
445 | bodyVelocity.velocity=vt(0,60,0) | |
446 | bodyVelocity.P=5000 | |
447 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
448 | bodyVelocity.Parent=hit | |
449 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
450 | rl=Instance.new("BodyAngularVelocity") | |
451 | rl.P=3000 | |
452 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
453 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
454 | rl.Parent=hit | |
455 | game:GetService("Debris"):AddItem(rl,.5) | |
456 | elseif Type=="Snare" then | |
457 | bp=Instance.new("BodyPosition") | |
458 | bp.P=2000 | |
459 | bp.D=100 | |
460 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
461 | bp.position=hit.Parent.Torso.Position | |
462 | bp.Parent=hit.Parent.Torso | |
463 | game:GetService("Debris"):AddItem(bp,1) | |
464 | elseif Type=="Target" then | |
465 | if Targetting==false then | |
466 | ZTarget=hit.Parent.Torso | |
467 | coroutine.resume(coroutine.create(function(Part) | |
468 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
469 | swait(5) | |
470 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
471 | end),ZTarget) | |
472 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
473 | targetgui=Instance.new("BillboardGui") | |
474 | targetgui.Parent=ZTarget | |
475 | targetgui.Size=UDim2.new(10,100,10,100) | |
476 | targ=Instance.new("ImageLabel") | |
477 | targ.Parent=targetgui | |
478 | targ.BackgroundTransparency=1 | |
479 | targ.Image="rbxassetid://4834067" | |
480 | targ.Size=UDim2.new(1,0,1,0) | |
481 | cam.CameraType="Scriptable" | |
482 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
483 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
484 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
485 | Targetting=true | |
486 | RocketTarget=ZTarget | |
487 | for i=1,Property do | |
488 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
489 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
490 | swait() | |
491 | end | |
492 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
493 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
494 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
495 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
496 | end | |
497 | Targetting=false | |
498 | RocketTarget=nil | |
499 | targetgui.Parent=nil | |
500 | cam.CameraType="Custom" | |
501 | end | |
502 | end | |
503 | debounce=Instance.new("BoolValue") | |
504 | debounce.Name="DebounceHit" | |
505 | debounce.Parent=hit.Parent | |
506 | debounce.Value=true | |
507 | game:GetService("Debris"):AddItem(debounce,Delay) | |
508 | c=Instance.new("ObjectValue") | |
509 | c.Name="creator" | |
510 | c.Value=Player | |
511 | c.Parent=h | |
512 | game:GetService("Debris"):AddItem(c,.5) | |
513 | CRIT=false | |
514 | hitDeb=true | |
515 | AttackPos=6 | |
516 | end | |
517 | end | |
518 | ||
519 | showDamage=function(Char,Dealt,du,Color) | |
520 | m=Instance.new("Model") | |
521 | m.Name=tostring(Dealt) | |
522 | h=Instance.new("Humanoid") | |
523 | h.Health=0 | |
524 | h.MaxHealth=0 | |
525 | h.Parent=m | |
526 | c=Instance.new("Part") | |
527 | c.Transparency=0 | |
528 | c.BrickColor=Color | |
529 | c.Name="Head" | |
530 | c.TopSurface=0 | |
531 | c.BottomSurface=0 | |
532 | c.formFactor="Plate" | |
533 | c.Size=Vector3.new(1,.4,1) | |
534 | ms=Instance.new("CylinderMesh") | |
535 | ms.Scale=Vector3.new(.8,.8,.8) | |
536 | if CRIT==true then | |
537 | ms.Scale=Vector3.new(1,1.25,1) | |
538 | end | |
539 | ms.Parent=c | |
540 | c.Reflectance=0 | |
541 | Instance.new("BodyGyro").Parent=c | |
542 | c.Parent=m | |
543 | if Char:findFirstChild("Head")~=nil then | |
544 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
545 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
546 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
547 | end | |
548 | f=Instance.new("BodyPosition") | |
549 | f.P=2000 | |
550 | f.D=100 | |
551 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
552 | f.position=c.Position+Vector3.new(0,3,0) | |
553 | f.Parent=c | |
554 | game:GetService("Debris"):AddItem(m,.5+du) | |
555 | c.CanCollide=false | |
556 | m.Parent=workspace | |
557 | c.CanCollide=false | |
558 | end | |
559 | ||
560 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
561 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
562 | end | |
563 | ||
564 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
565 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
566 | prt.Anchored=true | |
567 | prt.CFrame=cframe | |
568 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
569 | --http://www.roblox.com/asset/?id=4770560 | |
570 | game:GetService("Debris"):AddItem(prt,2) | |
571 | CF=prt.CFrame | |
572 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
573 | for i=0,1,0.2 do | |
574 | wait() | |
575 | Part.CFrame=CF*cf(0,0,-0.4) | |
576 | end | |
577 | for i=0,1,delay do | |
578 | wait() | |
579 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
580 | Mesh.Scale=Mesh.Scale | |
581 | end | |
582 | for i=0,1,0.1 do | |
583 | wait() | |
584 | Part.Transparency=i | |
585 | end | |
586 | Part.Parent=nil | |
587 | end),prt,msh,CF) | |
588 | end | |
589 | ||
590 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
591 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
592 | prt.Anchored=true | |
593 | prt.CFrame=cframe | |
594 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
595 | game:GetService("Debris"):AddItem(prt,5) | |
596 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
597 | for i=0,1,delay do | |
598 | wait() | |
599 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
600 | Part.Transparency=i | |
601 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
602 | end | |
603 | Part.Parent=nil | |
604 | end),prt,msh) | |
605 | end | |
606 | ||
607 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
608 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
609 | prt.Anchored=false | |
610 | prt.CFrame=cframe | |
611 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
612 | local wld=weld(prt,prt,Parent,cframe) | |
613 | game:GetService("Debris"):AddItem(prt,5) | |
614 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
615 | for i=0,1,delay do | |
616 | wait() | |
617 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
618 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
619 | Part.Transparency=i | |
620 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
621 | end | |
622 | Part.Parent=nil | |
623 | end),prt,msh,wld) | |
624 | end | |
625 | ||
626 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
627 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
628 | prt.Anchored=false | |
629 | prt.CFrame=cframe | |
630 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
631 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
632 | game:GetService("Debris"):AddItem(prt,5) | |
633 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
634 | for i=0,1,delay do | |
635 | wait() | |
636 | Weld.C0=euler(i*20,0,0) | |
637 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
638 | Part.Transparency=i | |
639 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
640 | end | |
641 | Part.Parent=nil | |
642 | end),prt,msh,wld) | |
643 | end | |
644 | ||
645 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
646 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
647 | prt.Anchored=true | |
648 | prt.CFrame=cframe | |
649 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
650 | game:GetService("Debris"):AddItem(prt,2) | |
651 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
652 | for i=0,1,delay do | |
653 | wait() | |
654 | Part.CFrame=Part.CFrame | |
655 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
656 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
657 | prt2.Anchored=true | |
658 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
659 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
660 | game:GetService("Debris"):AddItem(prt2,2) | |
661 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
662 | for i=0,1,0.1 do | |
663 | wait() | |
664 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
665 | end | |
666 | Part.Parent=nil | |
667 | end),prt2,msh2) | |
668 | end | |
669 | for i=0,1,delay*2 do | |
670 | wait() | |
671 | Part.CFrame=Part.CFrame | |
672 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
673 | end | |
674 | Part.Parent=nil | |
675 | end),prt,msh) | |
676 | end | |
677 | ||
678 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
679 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
680 | prt.Anchored=true | |
681 | prt.CFrame=cframe | |
682 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
683 | game:GetService("Debris"):AddItem(prt,2) | |
684 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
685 | for i=0,1,delay do | |
686 | wait() | |
687 | Part.CFrame=Part.CFrame | |
688 | Part.Transparency=i | |
689 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
690 | end | |
691 | Part.Parent=nil | |
692 | end),prt,msh) | |
693 | end | |
694 | ||
695 | function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3) | |
696 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
697 | prt.Anchored=true | |
698 | prt.CFrame=cframe*euler(x2,y2,z2) | |
699 | --"http://www.roblox.com/asset/?id=168892465" | |
700 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
701 | game:GetService("Debris"):AddItem(prt,2) | |
702 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
703 | for i=0,1,0.03 do | |
704 | wait() | |
705 | Part.CFrame=Part.CFrame | |
706 | Part.Transparency=i | |
707 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
708 | end | |
709 | Part.Parent=nil | |
710 | end),prt,msh) | |
711 | end | |
712 | ||
713 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
714 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
715 | prt.Anchored=true | |
716 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
717 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
718 | game:GetService("Debris"):AddItem(prt,2) | |
719 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
720 | CF=Part.CFrame | |
721 | Numbb=0 | |
722 | randnumb=math.random()/10 | |
723 | rand1=math.random()/10 | |
724 | for i=0,1,rand1 do | |
725 | wait() | |
726 | CF=CF*cf(0,math.random()/2,0) | |
727 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
728 | Part.CFrame=CF*euler(Numbb,0,0) | |
729 | Part.Transparency=i | |
730 | Numbb=Numbb+randnumb | |
731 | end | |
732 | Part.Parent=nil | |
733 | end),prt,CF,Numbb,randnumb) | |
734 | end | |
735 | ||
736 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
737 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
738 | prt.Anchored=true | |
739 | prt.CFrame=cframe | |
740 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
741 | game:GetService("Debris"):AddItem(prt,5) | |
742 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
743 | for i=0,1,delay do | |
744 | wait() | |
745 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
746 | Part.Transparency=i | |
747 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
748 | end | |
749 | Part.Parent=nil | |
750 | end),prt,msh) | |
751 | end | |
752 | ||
753 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
754 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
755 | prt.Anchored=true | |
756 | prt.CFrame=cframe | |
757 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
758 | game:GetService("Debris"):AddItem(prt,2) | |
759 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
760 | for i=0,1,delay do | |
761 | wait() | |
762 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
763 | Part.Transparency=i | |
764 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
765 | end | |
766 | Part.Parent=nil | |
767 | end),prt,msh) | |
768 | end | |
769 | ||
770 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
771 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
772 | prt.Anchored=true | |
773 | prt.CFrame=cframe*cf(x,y,z) | |
774 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
775 | game:GetService("Debris"):AddItem(prt,5) | |
776 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
777 | local num=math.random() | |
778 | local num2=math.random(-3,2)+math.random() | |
779 | local numm=0 | |
780 | for i=0,1,delay*2 do | |
781 | swait() | |
782 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
783 | Part.Transparency=i | |
784 | numm=numm+0.01 | |
785 | end | |
786 | Part.Parent=nil | |
787 | Mesh.Parent=nil | |
788 | end),prt,msh,x,y,z) | |
789 | end | |
790 | ||
791 | function dmgstart(dmg,what) | |
792 | hitcon = what.Touched:connect(function(hit) | |
793 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
794 | if hum and not hum:IsDescendantOf(Character) then | |
795 | hum:TakeDamage(dmg) | |
796 | end | |
797 | end) | |
798 | end | |
799 | ||
800 | function dmgstop() | |
801 | hitcon:disconnect() | |
802 | end | |
803 | ||
804 | function Cloak() | |
805 | Face.Parent=nil | |
806 | cloaked=true | |
807 | for _,v in pairs(Torso.Parent:children()) do | |
808 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
809 | coroutine.resume(coroutine.create(function() | |
810 | for i=0,1,0.2 do | |
811 | wait() | |
812 | v.Transparency=i | |
813 | end | |
814 | v.Transparency=1 | |
815 | end)) | |
816 | end | |
817 | if v.className=="Hat" then | |
818 | hatp=v.Handle | |
819 | coroutine.resume(coroutine.create(function(derp) | |
820 | for i=0,1,0.2 do | |
821 | wait() | |
822 | derp.Transparency=i | |
823 | end | |
824 | derp.Transparency=1 | |
825 | end),hatp) | |
826 | end | |
827 | end | |
828 | for _,v in pairs(m:children()) do | |
829 | if v.className=="Part" then | |
830 | coroutine.resume(coroutine.create(function() | |
831 | for i=0,1,0.2 do | |
832 | wait() | |
833 | v.Transparency=i | |
834 | end | |
835 | v.Transparency=1 | |
836 | end)) | |
837 | end | |
838 | end | |
839 | end | |
840 | ||
841 | function UnCloak() | |
842 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
843 | Face.Parent=Head | |
844 | cloaked=false | |
845 | for _,v in pairs(Torso.Parent:children()) do | |
846 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
847 | coroutine.resume(coroutine.create(function() | |
848 | for i=0,1,0.1 do | |
849 | wait() | |
850 | v.Transparency=v.Transparency-0.1 | |
851 | end | |
852 | v.Transparency=0 | |
853 | end)) | |
854 | end | |
855 | if v.className=="Hat" then | |
856 | hatp=v.Handle | |
857 | coroutine.resume(coroutine.create(function(derp) | |
858 | for i=0,1,0.1 do | |
859 | wait() | |
860 | derp.Transparency=derp.Transparency-0.1 | |
861 | end | |
862 | derp.Transparency=0 | |
863 | end),hatp) | |
864 | end | |
865 | end | |
866 | for _,v in pairs(m:children()) do | |
867 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
868 | coroutine.resume(coroutine.create(function() | |
869 | for i=0,1,0.1 do | |
870 | wait() | |
871 | v.Transparency=v.Transparency-0.1 | |
872 | end | |
873 | v.Transparency=0 | |
874 | end)) | |
875 | v.Transparency=0 | |
876 | end | |
877 | end | |
878 | end | |
879 | ||
880 | Player=game:GetService('Players').LocalPlayer | |
881 | Character=Player.Character | |
882 | Mouse=Player:GetMouse() | |
883 | m=Instance.new('Model',Character) | |
884 | ||
885 | ||
886 | local function weldBetween(a, b) | |
887 | local weldd = Instance.new("ManualWeld") | |
888 | weldd.Part0 = a | |
889 | weldd.Part1 = b | |
890 | weldd.C0 = CFrame.new() | |
891 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
892 | weldd.Parent = a | |
893 | return weldd | |
894 | end | |
895 | ||
896 | it=Instance.new | |
897 | ||
898 | function nooutline(part) | |
899 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
900 | end | |
901 | ||
902 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
903 | local fp=it("Part") | |
904 | fp.formFactor=formfactor | |
905 | fp.Parent=parent | |
906 | fp.Reflectance=reflectance | |
907 | fp.Transparency=transparency | |
908 | fp.CanCollide=false | |
909 | fp.Locked=true | |
910 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
911 | fp.Name=name | |
912 | fp.Size=size | |
913 | fp.Position=Character.Torso.Position | |
914 | nooutline(fp) | |
915 | fp.Material=material | |
916 | fp:BreakJoints() | |
917 | return fp | |
918 | end | |
919 | ||
920 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
921 | local mesh=it(Mesh) | |
922 | mesh.Parent=part | |
923 | if Mesh=="SpecialMesh" then | |
924 | mesh.MeshType=meshtype | |
925 | mesh.MeshId=meshid | |
926 | end | |
927 | mesh.Offset=offset | |
928 | mesh.Scale=scale | |
929 | return mesh | |
930 | end | |
931 | ||
932 | function weld(parent,part0,part1,c0,c1) | |
933 | local weld=it("Weld") | |
934 | weld.Parent=parent | |
935 | weld.Part0=part0 | |
936 | weld.Part1=part1 | |
937 | weld.C0=c0 | |
938 | weld.C1=c1 | |
939 | return weld | |
940 | end | |
941 | ||
942 | Player=game:GetService('Players').LocalPlayer | |
943 | Character=Player.Character | |
944 | Mouse=Player:GetMouse() | |
945 | m=Instance.new('Model',Character) | |
946 | it=Instance.new | |
947 | function nooutline(part) | |
948 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
949 | end | |
950 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
951 | local fp=it("Part") | |
952 | fp.formFactor=formfactor | |
953 | fp.Parent=parent | |
954 | fp.Reflectance=reflectance | |
955 | fp.Transparency=transparency | |
956 | fp.CanCollide=false | |
957 | fp.Locked=true | |
958 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
959 | fp.Name=name | |
960 | fp.Size=size | |
961 | fp.Position=Character.Torso.Position | |
962 | nooutline(fp) | |
963 | fp.Material=material | |
964 | fp:BreakJoints() | |
965 | return fp | |
966 | end | |
967 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
968 | local mesh=it(Mesh) | |
969 | mesh.Parent=part | |
970 | if Mesh=="SpecialMesh" then | |
971 | mesh.MeshType=meshtype | |
972 | mesh.MeshId=meshid | |
973 | end | |
974 | mesh.Offset=offset | |
975 | mesh.Scale=scale | |
976 | return mesh | |
977 | end | |
978 | function weld(parent,part0,part1,c0,c1) | |
979 | local weld=it("Weld") | |
980 | weld.Parent=parent | |
981 | weld.Part0=part0 | |
982 | weld.Part1=part1 | |
983 | weld.C0=c0 | |
984 | weld.C1=c1 | |
985 | return weld | |
986 | end | |
987 | ||
988 | Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.400000006, 1)) | |
989 | handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, -5.69614329e-008, 5.96046448e-008, 5.69614222e-008, 0.999999881, 6.38557296e-008, -5.96045986e-008, -6.38557367e-008, 1),CFrame.new(-1.0929389, -0.0714454651, 0.15032959, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915)) | |
990 | mesh("BlockMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
991 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 3.20000005)) | |
992 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.19616699e-005, -0.0100028515, 3.1000824, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
993 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1)) | |
994 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 5.80000019)) | |
995 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-005, -0.0100257397, 4.40010071, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
996 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1)) | |
997 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 4.4000001)) | |
998 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.19616699e-005, -0.0100123882, 3.70007324, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
999 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1)) | |
1000 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.399999976, 0.200000003)) | |
1001 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.57763672e-005, 1.29995728, -0.199999332, 0.99968493, -0.0161349382, -0.0192294158, 0.0186750833, -0.0338307135, 0.999253154, -0.0167734325, -0.99929744, -0.0335187353)) | |
1002 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1003 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036)) | |
1004 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-1.52587891e-005, -1.73275757, 0.101932526, -0.99968493, 0.0161348786, 0.019229291, 0.0223798491, 0.225955546, 0.973880529, 0.0113684786, 0.97400409, -0.226245463)) | |
1005 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1006 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
1007 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, -1.08944702, 0.159484863, -0.99968493, 0.0161346551, 0.0192298498, 0.0245600175, 0.47034353, 0.88214159, 0.00518841529, 0.882335901, -0.470591575)) | |
1008 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1009 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.20000005, 0.400000036)) | |
1010 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, -2.09999084, -0.100028276, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204)) | |
1011 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1012 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072)) | |
1013 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.722251892, -7.62939453e-006, -0.31111145, -0.0250595883, -0.682680428, -0.730287313, -0.999685049, 0.0161298718, 0.0192255117, -0.00134544016, 0.730539024, -0.682869613)) | |
1014 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1015 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
1016 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(6.10351563e-005, -0.200017452, -0.40007019, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
1017 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1018 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
1019 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-3.81469727e-005, -1.27485657, -1.2587204, -0.99968493, 0.0161348786, 0.0192295052, 0.00134484924, -0.730529785, 0.682879508, 0.0250659045, 0.682690203, 0.730277896)) | |
1020 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1021 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072)) | |
1022 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.742538452, -3.81469727e-006, 0.317245483, 0.00133255101, -0.730529666, 0.682879746, -0.99968487, 0.0161438417, 0.0192210786, -0.025065871, -0.682690144, -0.730277956)) | |
1023 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1024 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 1)) | |
1025 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.0999779701, -1.52587891e-005, -0.999984741, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915)) | |
1026 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1027 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
1028 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, 0.399978638, 0.199987411, 0.99968493, -0.0161349382, -0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, -0.0167734325, -0.99929744, -0.0335187204)) | |
1029 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1030 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
1031 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.19616699e-005, -0.652126312, -1.27474976, -0.99968493, 0.0161349233, 0.0192295164, -0.0113684721, -0.97400403, 0.226245433, 0.0223800782, 0.225955546, 0.973880589)) | |
1032 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1033 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
1034 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-6.86645508e-005, -1.00984955, -1.32232666, -0.99968493, 0.0161349084, 0.0192292985, -0.00518870167, -0.882332146, 0.470598638, 0.0245596915, 0.470350564, 0.882137835)) | |
1035 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1036 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.600000024)) | |
1037 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.099998951, -3.81469727e-005, 0.800018311, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915)) | |
1038 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1039 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.20000005, 0.400000036)) | |
1040 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, -1.7000885, -0.100027323, -0.99968493, 0.0161349382, 0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, 0.0167734325, 0.99929744, 0.0335187204)) | |
1041 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1042 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072)) | |
1043 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.549972773, -3.43322754e-005, 0.0100250244, -0.0167771745, -0.999297023, -0.0335265957, -0.999684811, 0.0161385052, 0.0192303304, -0.0186757445, 0.0338386595, -0.999252915)) | |
1044 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.99000001, 1.29999995)) | |
1045 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024)) | |
1046 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.57763672e-005, -2.50007629, -2.67028809e-005, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204)) | |
1047 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1048 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
1049 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, -0.220021248, -1.00009155, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
1050 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1)) | |
1051 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
1052 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(2.67028809e-005, 0.220012903, 1.8000946, 0.99968493, -0.0161349382, -0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, -0.018674951, 0.0338385589, -0.999252915)) | |
1053 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1)) | |
1054 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.200000003, 1)) | |
1055 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, 1.40666962e-005, 0.200027466, -0.99968493, 0.0161349382, 0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, -0.018674951, 0.0338385589, -0.999252915)) | |
1056 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.5, 1)) | |
1057 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036)) | |
1058 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.0435257, -1.14440918e-005, -0.877830505, 0.00133237685, -0.730529547, 0.682879806, -0.99968493, 0.0161440708, 0.0192210656, -0.0250660162, -0.682690263, -0.730277896)) | |
1059 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.00999999, 0.600000024)) | |
1060 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003)) | |
1061 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, -1.30004883, -0.0599954128, -0.99968493, 0.0161349382, 0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, 0.0167734325, 0.99929744, 0.0335187204)) | |
1062 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1)) | |
1063 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036)) | |
1064 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.831382751, -5.34057617e-005, -0.665687561, 0.00133237685, -0.730529547, 0.682879806, -0.99968493, 0.0161440708, 0.0192210656, -0.0250660162, -0.682690263, -0.730277896)) | |
1065 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.00999999, 0.600000024)) | |
1066 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
1067 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.57763672e-005, -0.00890350342, -0.62361145, 0.99968493, -0.0161349084, -0.0192297474, 0.0113684032, 0.974003971, -0.226245522, 0.0223803017, 0.22595562, 0.97388047)) | |
1068 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1)) | |
1069 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036)) | |
1070 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.09603119, -7.62939453e-006, 1.2657547, 0.025060432, 0.682680309, 0.730287433, -0.999685049, 0.0161309429, 0.0192256682, 0.00134476018, -0.730539203, 0.682869554)) | |
1071 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.00999999, 0.5)) | |
1072 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.800000012)) | |
1073 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, 1.62124634e-005, 0.699996948, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
1074 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.5, 1)) | |
1075 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003)) | |
1076 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-3.81469727e-006, 0.5, 0.0599937439, -0.99968493, 0.0161349382, 0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, -0.0167734325, -0.99929744, -0.0335187204)) | |
1077 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1)) | |
1078 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036)) | |
1079 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.57408142, -3.81469727e-006, 1.09355927, 0.0245514382, 0.470343471, 0.882141948, -0.999685109, 0.0161308739, 0.0192221403, -0.00518871192, -0.88233608, 0.470591396)) | |
1080 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1.00999999, 0.400000006)) | |
1081 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036)) | |
1082 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.95219421, -3.05175781e-005, 0.750869751, 0.0223687999, 0.225955442, 0.973880827, -0.999685168, 0.0161325298, 0.019218497, -0.011368636, -0.97400409, 0.226245165)) | |
1083 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1.00999999, 0.300000012)) | |
1084 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006)) | |
1085 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(2.67028809e-005, -0.220027447, -1.50007629, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
1086 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1)) | |
1087 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006)) | |
1088 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.52587891e-005, -0.109989166, 0.799972534, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915)) | |
1089 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1)) | |
1090 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
1091 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.52587891e-005, 0.109987736, -0.509963989, 0.99968487, -0.0161355603, -0.0192299671, -0.0167742185, -0.999297082, -0.0335265249, -0.0186754838, 0.0338385291, -0.999252915)) | |
1092 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 0.899999976)) | |
1093 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 2, 0.600000024)) | |
1094 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0, -2.48002625, -0.0500152111, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204)) | |
1095 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012)) | |
1096 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1097 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, 1.6000061, -0.109972715, 0.999684989, -0.0161343552, -0.0192295071, 0.0186751913, -0.033830747, 0.999253154, -0.0167728532, -0.99929738, -0.0335187726)) | |
1098 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012)) | |
1099 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Toothpaste","Hitbox",Vector3.new(0.200000003, 5.80000019, 0.400000036)) | |
1100 | Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.0101203918, -4.37719727, -0.0721693039, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204)) | |
1101 | ||
1102 | mouse.Button1Down:connect(function() | |
1103 | if attack==false and attacktype==1 then | |
1104 | attacktype=2 | |
1105 | attackone() | |
1106 | elseif attack==false and attacktype==2 then | |
1107 | attacktype=1 | |
1108 | attacktwo() | |
1109 | end | |
1110 | end) | |
1111 | function attackone() | |
1112 | attack=true | |
1113 | con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
1114 | for i=0,1,0.2 do | |
1115 | swait() | |
1116 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1117 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1118 | local h = 5 | |
1119 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1120 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1121 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1122 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1123 | scfr = blcf | |
1124 | elseif not scfr then | |
1125 | scfr = blcf | |
1126 | end | |
1127 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(90),0,math.rad(0)),.4) | |
1128 | end | |
1129 | so("http://roblox.com/asset/?id=199150686",Hitbox,1,1) | |
1130 | so("http://roblox.com/asset/?id=206083107",Hitbox,1,2) | |
1131 | for i=0,1,0.2 do | |
1132 | swait() | |
1133 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1134 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1135 | local h = 5 | |
1136 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1137 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1138 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1139 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1140 | scfr = blcf | |
1141 | elseif not scfr then | |
1142 | scfr = blcf | |
1143 | end | |
1144 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.4) | |
1145 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(25)),.4) | |
1146 | RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-100))*angles(math.rad(-75),0,math.rad(0)),.4) | |
1147 | handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4) | |
1148 | end | |
1149 | attack=false | |
1150 | con1:disconnect() | |
1151 | end | |
1152 | ||
1153 | function attacktwo() | |
1154 | attack=true | |
1155 | con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
1156 | for i=0,1,0.2 do | |
1157 | swait() | |
1158 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1159 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1160 | local h = 5 | |
1161 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1162 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1163 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1164 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1165 | scfr = blcf | |
1166 | elseif not scfr then | |
1167 | scfr = blcf | |
1168 | end | |
1169 | RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(-75),0,math.rad(0)),.4) | |
1170 | handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4) | |
1171 | end | |
1172 | so("http://roblox.com/asset/?id=199146359",Hitbox,1,1) | |
1173 | so("http://roblox.com/asset/?id=206083107",Hitbox,1,1.5) | |
1174 | for i=0,1,1 do | |
1175 | swait() | |
1176 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1177 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1178 | local h = 5 | |
1179 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1180 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1181 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1182 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1183 | scfr = blcf | |
1184 | elseif not scfr then | |
1185 | scfr = blcf | |
1186 | end | |
1187 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(40)),.4) | |
1188 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-45)),.4) | |
1189 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(90),0,math.rad(0)),.4) | |
1190 | handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0)),.4) | |
1191 | end | |
1192 | attack=false | |
1193 | con1:disconnect() | |
1194 | end | |
1195 | ||
1196 | function attackthree() | |
1197 | ||
1198 | end | |
1199 | ||
1200 | idleanim=.4 | |
1201 | ||
1202 | while true do | |
1203 | swait() | |
1204 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1205 | local velderp=RootPart.Velocity.y | |
1206 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1207 | if equipped==true or equipped==false then | |
1208 | if attack==false then | |
1209 | idle=idle+1 | |
1210 | else | |
1211 | idle=0 | |
1212 | end | |
1213 | if idle>=500 then | |
1214 | if attack==false then | |
1215 | --Sheath() | |
1216 | end | |
1217 | end | |
1218 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1219 | Anim="Jump" | |
1220 | if attack==false then | |
1221 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
1222 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1223 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
1224 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(105),math.rad(0)),.3) | |
1225 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1226 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3) | |
1227 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1228 | RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2) | |
1229 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2) | |
1230 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1231 | end | |
1232 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1233 | Anim="Fall" | |
1234 | if attack==false then | |
1235 | Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3) | |
1236 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
1237 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
1238 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(115),math.rad(0)),.3) | |
1239 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1240 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3) | |
1241 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
1242 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
1243 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
1244 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1245 | end | |
1246 | elseif torvel<1 and hitfloor~=nil then | |
1247 | Anim="Idle" | |
1248 | if attack==false then | |
1249 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3) | |
1250 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3) | |
1251 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(90),math.rad(0))*angles(math.rad(-25),math.rad(15),math.rad(0)),.3) | |
1252 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),.3) | |
1253 | RH.C0=clerp(RH.C0,cf(1,-.75,0)*angles(math.rad(-15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(15),math.rad(0)),.3) | |
1254 | LH.C0=clerp(LH.C0,cf(-1,-.75,-.25)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(35),math.rad(0)),.3) | |
1255 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1256 | end | |
1257 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
1258 | Anim="Walk" | |
1259 | if attack==false then | |
1260 | --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1261 | --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1262 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3) | |
1263 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3) | |
1264 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-55),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
1265 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-25)),.3) | |
1266 | --RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
1267 | --LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
1268 | RH.C0=clerp(RH.C0,cf(1,-.75,0)*angles(math.rad(-15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(15),math.rad(0)),.3) | |
1269 | LH.C0=clerp(LH.C0,cf(-1,-.75,-.25)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(35),math.rad(0)),.3) | |
1270 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1271 | end | |
1272 | elseif torvel>=22 and hitfloor~=nil then | |
1273 | Anim="Run" | |
1274 | if attack==false then | |
1275 | RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1276 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1277 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1278 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1279 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
1280 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
1281 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1282 | end | |
1283 | end | |
1284 | end | |
1285 | end |