View difference between Paste ID: qRGWy6LB and v4LrFBtk
SHOW: | | - or go back to the newest paste.
1
script.Parent=nil
2
--- shortcuts
3
v3 = Vector3.new
4
cn = CFrame.new
5
ca2 = CFrame.Angles
6
mf = math.floor
7
mran = math.random
8
mrad = math.rad
9
mdeg = math.deg
10
ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
11
mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
12
ud=UDim2.new
13
bn = BrickColor.new
14
c3 = Color3.new
15
16-
"Player='diamondminer666'"
16+
"Player='larrylionfur60'"
17
Players=Game:GetService("Players")
18
Player=Players.LocalPlayer --[Player]
19
PChar=Player.Character
20
 
21
as,so={},{'metal','Block','Slash','Slash2','Hit','Kick'}
22
as.corner='11294911'
23
as.cone='1033714'
24
as.ring="3270017"
25
as.Chakram='47260990'
26
as.ring2='18430887'
27
as.blast='20329976'
28
as.missile='10207677'
29
as.fire='2693346'
30
as.boom='3264793'
31
as.slash='10209645'
32
as.abscond='2767090'
33
as.firelaser='13775494'
34
as.diamond='9756362'
35
as.metal='rbxasset://sounds\\unsheath.wav'
36
as.Block = 'rbxasset://sounds\\metal.ogg'
37
as.Slash = '10209645'
38
as.Slash2 = '46760716'
39
as.Hit='10209583'
40
as.Kick='46153268'
41
as.cast='2101137'
42
as.rockhead= '21629626'
43
as.rockheadt='21629620'
44
 
45
 
46
for index, assetid in pairs(as) do
47
        if tonumber(assetid) then
48
                as[index] = "http://www.roblox.com/asset/?id="..assetid
49
        end
50
end
51
 
52
local LastMade
53
iNew=function(tab)
54
        local v=Instance.new(tab[1])
55
        for Ind,Val in pairs(tab) do
56
                if Ind~=1 and Ind~=2 then
57
                        v[Ind] = Val
58
                end
59
        end
60
        v.Parent=tab[2]==0 and LastMade or tab[2]
61
        LastMade=v
62
        return v
63
end
64
 
65
iPart=function(tab)
66
        local v=Instance.new(tab.type or 'Part')
67
        if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
68
                v.TopSurface=0 v.BottomSurface=0
69
        if tab.sc then
70
                v.Size=v3(tab[2]*tab.sc,tab[3]*tab.sc,tab[4]*tab.sc)
71
        else
72
                v.Size=v3(tab[2],tab[3],tab[4])
73
        end
74
        if tab.co then v.BrickColor=bn(tab.co) end
75
        if tab.tr then v.Transparency=tab.tr end
76
        if tab.rf then v.Reflectance=tab.rf end
77
        if tab.can then v.CanCollide=tab.can end
78
        if tab.cf then v.CFrame=tab.cf end
79
        if tab.an then v.Anchored=tab.an end
80
        if tab.na then v.Name=tab.na end
81
        if tab.ma then v.Material=tab.ma end
82
        v.Parent=tab[1]
83
        v:BreakJoints()
84
        LastMade=v
85
        return v
86
end
87
function getoutline(x,z,i)
88
        return math.sqrt(x^2+z^2)+(i or 0.05),mdeg(math.atan2(x,z))
89
end
90
function v32(cf)
91
        local x,y,z=cf:toEulerAnglesXYZ()
92
        return v3(mdeg(x),mdeg(y),mdeg(z))
93
end
94
WeldLib={}
95
function GetWeld(weld,CO)
96
        if not WeldLib[weld] then
97
                local x0,y0,z0=weld.C0:toEulerAnglesXYZ()
98
                local x1,y1,z1=weld.C1:toEulerAnglesXYZ()
99
                WeldLib[weld]={[0]=v3(mdeg(x0),mdeg(y0),mdeg(z0)),[1]=v3(mdeg(x1),mdeg(y1),mdeg(z1))}
100
        end
101
        return weld['C'..CO].p,WeldLib[weld][CO]
102
end
103
function ClearWeld(weld)
104
        if WeldLib[weld] then
105
                WeldLib[weld]=nil
106
        end
107
end
108
function TweenNum(i,loops,i1,i2,smooth)
109
        smooth = smooth or 1
110
        local perc
111
        if smooth == 1 then
112
                perc = math.sin((math.pi/2)/loops*i)
113
        else
114
                perc = i/loops
115
        end
116
        local ton
117
        if i1 > i2 then
118
                ton = -math.abs(i1 - i2) *perc
119
        else
120
                ton = math.abs(i1 - i2) *perc
121
        end
122
        return i1+ton
123
end
124
function TweenV3(i,loops,v1,v2,smooth)
125
smooth = smooth or 1
126
local perc
127
if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
128
local tox2,toy2,toz2 = 0,0,0
129
if v1.x > v2.x then
130
tox2 = -math.abs(v1.x - v2.x) *perc
131
else
132
tox2 = math.abs(v1.x - v2.x) *perc
133
end
134
if v1.y > v2.y then
135
toy2 = -math.abs(v1.y - v2.y) *perc
136
else
137
toy2 = math.abs(v1.y - v2.y) *perc
138
end
139
if v1.z > v2.z then
140
toz2 = -math.abs(v1.z - v2.z) *perc
141
else
142
toz2 = math.abs(v1.z - v2.z) *perc
143
end
144
return v3(v1.x + tox2,v1.y + toy2,v1.z + toz2)
145
end
146
function TweenCF(i,loops,origpos,origangle,nextpos,nextangle,smooth)
147
smooth = smooth or 1
148
local perc
149
if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
150
local tox,toy,toz = 0,0,0
151
if origangle.x > nextangle.x then tox = -math.abs(origangle.x - nextangle.x) *perc
152
else tox = math.abs(origangle.x - nextangle.x) *perc end
153
if origangle.y > nextangle.y then toy = -math.abs(origangle.y - nextangle.y) *perc
154
else toy = math.abs(origangle.y - nextangle.y) *perc end
155
if origangle.z > nextangle.z then toz = -math.abs(origangle.z - nextangle.z) *perc
156
else toz = math.abs(origangle.z - nextangle.z) *perc end
157
local tox2,toy2,toz2 = 0,0,0
158
if origpos.x > nextpos.x then
159
tox2 = -math.abs(origpos.x - nextpos.x) *perc
160
else tox2 = math.abs(origpos.x - nextpos.x) *perc end
161
if origpos.y > nextpos.y then
162
toy2 = -math.abs(origpos.y - nextpos.y) *perc
163
else toy2 = math.abs(origpos.y - nextpos.y) *perc end
164
if origpos.z > nextpos.z then
165
toz2 = -math.abs(origpos.z - nextpos.z) *perc
166
else toz2 = math.abs(origpos.z - nextpos.z) *perc end
167
return cn(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
168
end
169
function SetWeld(weld,CO,i, loops, origpos,origangle, nextpos,nextangle,smooth)
170
loops=math.floor(loops)
171
smooth = smooth or 1
172
if not WeldLib[weld] then
173
local x0,y0,z0=weld.C0:toEulerAnglesXYZ()
174
local x1,y1,z1=weld.C1:toEulerAnglesXYZ()
175
WeldLib[weld]={[0]=v3(mdeg(x0),mdeg(y0),mdeg(z0)),[1]=v3(mdeg(x1),mdeg(y1),mdeg(z1))}
176
end
177
local perc =smooth==1 and math.sin((math.pi/2)/loops*i) or i/loops
178
--print(weld.Part1)
179
local tox,toy,toz = 0,0,0
180
tox = origangle.x > nextangle.x and -math.abs(origangle.x - nextangle.x) *perc or math.abs(origangle.x - nextangle.x) *perc
181
toy = origangle.y > nextangle.y and -math.abs(origangle.y - nextangle.y) *perc or math.abs(origangle.y - nextangle.y) *perc
182
toz = origangle.z > nextangle.z and -math.abs(origangle.z - nextangle.z) *perc or math.abs(origangle.z - nextangle.z) *perc
183
local tox2,toy2,toz2 = 0,0,0
184
tox2= origpos.x > nextpos.x and -math.abs(origpos.x - nextpos.x) *perc or math.abs(origpos.x - nextpos.x) *perc
185
toy2= origpos.y > nextpos.y and -math.abs(origpos.y - nextpos.y) *perc or math.abs(origpos.y - nextpos.y) *perc
186
toz2= origpos.z > nextpos.z and -math.abs(origpos.z - nextpos.z) *perc or math.abs(origpos.z - nextpos.z) *perc
187
WeldLib[weld][CO] = v3(origangle.x + tox,origangle.y + toy,origangle.z + toz)
188
weld['C'..CO] = cn(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
189
end
190
function se(Key,Text)
191
local Values = {}
192
for value in (Text..Key):gmatch("(.-)"..Key) do
193
table.insert(Values,value)
194
end
195
local Values2={}
196
for i,v in pairs(Values) do Values2[i]=Values[i]:lower() end
197
return Values,Values2
198
end
199
findplayer=function(nn)
200
if not nn then return nil end
201
local found
202
for i,v in pairs(Players:GetPlayers()) do
203
        if string.find(v.Name:lower(),nn:lower()) and not found then
204
                found=v
205
        end
206
end
207
return found
208
end
209
LoopFunctions={}
210
iLoopFunctions=-9000
211
function DoLoop(times,func)
212
iLoopFunctions=iLoopFunctions+1
213
LoopFunctions[tonumber(iLoopFunctions)]={times,0,func}
214
end
215
function MeshEffect(times,cf1,cf2,scale1,scale2,tr1,tr2,col,type)
216
local cf2=cf2 or cf1
217
local v=iPart{Char,0.2,0.2,0.2,co=col,cf=cf1,na='Mesh',an=true,ca=false,tr=tr1}
218
local mesh=iNew{'SpecialMesh',v,Scale=scale1}
219
if type=='Brick' or type=='Sphere' then
220
mesh.MeshType=type
221
else
222
mesh.MeshId=type
223
end
224
local x1,y1,z1 = cf1:toEulerAnglesXYZ()
225
local x2,y2,z2 = cf2:toEulerAnglesXYZ()
226
local count=0
227
DoLoop(times,function(i) count=count+1
228
mesh.Scale=TweenV3(count,times,scale1,scale2,1)*((type=='Brick' or type=='Sphere') and 5 or 1)
229
v.Transparency=TweenNum(count,times,tr1,tr2,1)
230
v.CFrame=TweenCF(count,times,cf1.p,v3(mdeg(x1),mdeg(y1),mdeg(z1)),cf2.p,v3(mdeg(x2),mdeg(y2),mdeg(z2)),1)
231
if i==1 then v:Remove() end end)
232
end
233
Dmgv={8,16}
234
HitDebounce={}
235
Damage=function(Hum,Mult,Sound)
236
if not Hum or Hum.Parent==Char then return end
237
if not Hum.Parent:findFirstChild'Torso' then return end
238
local HName=Hum.Parent.Name
239
if HitDebounce[HName] and HitDebounce[HName]>tick() then return end
240
HitDebounce[HName]=tick()+0.2
241
local Mult=Mult or 1
242
local Dealt=mran(Dmgv[1],Dmgv[2])*Mult
243
local col=''
244
if Hum.Parent:findFirstChild'Block' and Hum.Parent.Block.Value>0 then
245
Hum.Parent.Block.Value=Hum.Parent.Block.Value-1
246
col='Bright blue'
247
else
248
Hum.Health=Hum.Health-Dealt
249
col='Bright red'
250
end
251
if Sound then so[col=='Bright blue' and 'Block' or 'Hit']:Play() end
252
local DoH=iNew{'Model',Char,Name=col=='Bright blue' and 'Block' or Dealt}
253
iNew{'Humanoid',DoH,MaxHealth=1/0,Health=1/0,Name=''}
254
local Doh=iPart{DoH,0.6,0.2,0.6,co=col,an=true} Doh.Name='Head' iNew{'CylinderMesh',Doh}
255
local dofs=Hum.Parent.Torso.CFrame*cn(mran2(-1.5,1.5),2.5,mran2(-1,1)) Doh.CFrame=dofs
256
DoLoop(40,function(i) Doh.CFrame=dofs*cn(0,i*2,0) Doh.Transparency=i-0.5 if i==1 then DoH:Remove() end end)
257
end
258
AOEFind = function(pos,ra,f,f2) -- range get
259
local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
260
pcall(function()
261
for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
262
local Hum=v.Parent:findFirstChild'Humanoid'
263
if v.Name=='Torso' and Hum and Hum.Health>0 and v.Parent~=Char then
264
pcall(function() f(Hum,v) end)
265
elseif f2 and not Hum then
266
pcall(function() f2(v) end)
267
end
268
end
269
end)
270
end
271
function FindSurface(part, position)
272
local obj = part.CFrame:pointToObjectSpace(position)
273
local siz = part.Size/2
274
for i,v in pairs(Enum.NormalId:GetEnumItems()) do
275
local vec = Vector3.FromNormalId(v)
276
local wvec = part.CFrame:vectorToWorldSpace(vec)
277
local vz = (obj)/(siz*vec)
278
if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
279
return wvec,vec
280
end
281
end
282
if part.className == "WedgePart" then
283
return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
284
end
285
end
286
function FaceBG(pos)
287
BG.maxTorque=v3(1,1,1)/0
288
BG.cframe=cn(Torso.Position,v3(pos.x,Torso.Position.y,pos.z))*cn(0,0,-1)
289
end
290
ray = function(Pos, Dir,tab,length) -- ray cast
291
return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *(length or 999)),tab)
292
end
293
function Projectile(ofs,speed,part,adj,fhit,fnohit)
294
part.CFrame=ofs*adj
295
local stop=false
296
DoLoop(50,function(x)
297
local i=x
298
if not stop then
299
local hit,pos=ray(ofs.p,ofs.p-ofs*cn(0,0,-1).p,Char,speed+1)
300
if hit then
301
--Hit
302
if fhit then i=1 stop=true
303
----
304
local cof=FindSurface(hit,pos)
305
--iPart{workspace,2,2,0.2,cf=cn(pos,pos+cof),an=true,co='Black'}
306
----
307
local x,y,z=ofs:toEulerAnglesXYZ()
308
ofs=cn(pos)*ca(mdeg(x),mdeg(y),mdeg(z))*cn(0,0,-part.Size.y/2)
309
part.CFrame=ofs*adj
310
fhit(hit,pos) end
311
else
312
ofs=ofs*cn(0,0,speed)
313
part.CFrame=ofs*adj
314
end
315
if i==1 then
316
if fnohit then fnohit(ofs.p) else part:Remove() end
317
end
318
end
319
end)
320
end
321
 
322
CC={'','Bright yellow','Flame reddish orange'}
323
Scale=5
324
Mat='Marble'
325
 
326
SpawnPoint = (PChar and PChar.Torso.CFrame or CFrame.new(0, 3, 0))*cn(0,1+Scale*3,-20-Scale*1.5)
327
name='Brock'
328
pcall(function() _G.OldMod00:Remove() end)
329
 
330
---------------
331
UNDYING=function()
332
pcall(function() fUNDYING:disconnect() end)
333
pcall(function() local hum=Grabbing.Part1.Parent.Humanoid Grabbing:Remove() Grabbing=nil hum.PlatformStand=false end)
334
Torso.Anchored=true Torso.Transparency=1 Torso.CanCollide=false
335
Stand:Remove() Head:Remove()
336
local RespawnPos=cn(Torso.CFrame.p+v3(0,Scale*5,0))*ca(0,mran(-360,360),0)
337
wait(4)
338
Anim='Reviving'
339
local oldChar=Char
340
local oldRootLimbs=RootLimbs
341
for i,v in pairs(oldRootLimbs) do v.Anchored=true end
342
fMarble(Char,function(v) v.Anchored=true end)
343
MakeAI(RespawnPos) Anim='Reviving'
344
fMarble(Char,function(v) v.Transparency=1 end)
345
for i,v in pairs(RootLimbs) do v.Transparency=1 end
346
wait(0.1) Torso.Anchored=true
347
local Reconstruct={}
348
fMarble(oldChar,function(v)
349
local x1,y1,z1=v.CFrame:toEulerAnglesXYZ()
350
local x2,y2,z2=Char[v.Parent.Name][v.Name].CFrame:toEulerAnglesXYZ()
351
Reconstruct[#Reconstruct+1]={v,Char[v.Parent.Name][v.Name],v.Position,v3(mdeg(x1),mdeg(y1),mdeg(z1)),v3(mdeg(x2),mdeg(y2),mdeg(z2))} end)
352
for i,v in pairs(oldRootLimbs) do
353
local x1,y1,z1=v.CFrame:toEulerAnglesXYZ()
354
local x2,y2,z2=Char[v.Name].CFrame:toEulerAnglesXYZ()
355
Reconstruct[#Reconstruct+1]={v,Char[v.Name],v.Position,v3(mdeg(x1),mdeg(y1),mdeg(z1)),v3(mdeg(x2),mdeg(y2),mdeg(z2))} end
356
local tweens=100
357
for tween=1,tweens do
358
for i,v in pairs(Reconstruct) do v[1].CFrame=TweenCF(tween,tweens,v[3],v[4],v[2].Position,v[5],1)*ca(360*(tween/tweens),720*(tween/tweens),0) end
359
wait()
360
end
361
oldChar:Remove()
362
fMarble(Char,function(v) v.Transparency=0 end)
363
for i,v in pairs(RootLimbs) do v.Transparency=0 end
364
Torso.Anchored=false wait()
365
BG.maxTorque=v3(1,1,1)/0 BG.cframe=Torso.CFrame
366
ReturnAnim()
367
wait(2)
368
BG.maxTorque=nov3
369
Anim,ArmAnim,LegAnim='None','None','None'
370
end
371
------
372
 
373
function MakeAI(SpawnPoint2)
374
Char=iNew{'Model',workspace,Name=name,archivable=false} _G.OldMod00=Char
375
Torso=iPart{Char,2,2,1,sc=Scale,co=CC[1],cf=SpawnPoint2,na='Torso'}
376
pTorso=iPart{Char,2,2,1,sc=Scale,co=CC[1],cf=SpawnPoint2,na='pTorso'}
377
Head=iPart{Char,1,1,1,sc=Scale,co=CC[1],na='Head'}
378
pHead=iPart{Char,1,1,1,sc=Scale,co=CC[1],na='pHead'} iNew{'SpecialMesh',pHead,Scale=v3(1,1,1)*Scale/1.4,VertexColor=v3(1,1,1)/1.65,MeshId=as.rockhead,TextureId=as.rockheadt}
379
Stand=iPart{Char,1.5,2.9,1.1,sc=Scale,co=CC[1],na='Stand'}
380
 
381
for i,n in pairs(so) do
382
local v=iNew{'Sound',Torso,Volume=1,Pitch=1,Looped=false,Name=v,SoundId=as[n]}
383
so[n]=v
384
end
385
 
386
 
387
LSho=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LSho'}
388
LArm=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LArm'}
389
 
390
RSho=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RSho'}
391
RArm=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RArm'}
392
 
393
LThi=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LThi'}
394
LLeg=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LLeg'}
395
 
396
RThi=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RThi'}
397
RLeg=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RLeg'}
398
 
399
 
400
 
401
nov3=v3(0,0,0)
402
Marble={}
403
MarbleSpeed=0.2
404
MarbleMax=12
405
for i,v in pairs({pTorso,LSho,RSho,LArm,RArm,LThi,RThi,LLeg,RLeg}) do
406
v.Material=Mat
407
local VS=v.Size
408
local va=1.2
409
--v.Size=v.Size/1.5
410
local vv=v:Clone()
411
for x=-1,1,2 do
412
for y=-1,1,2 do
413
for z=-1,1,2 do
414
local marb=vv:Clone() marb.Size=VS/mran2(1.8,2.2) marb.Parent=v marb.Name=x..y..z
415
local wmarb=iNew{'Weld',marb,Part0=v,Part1=marb,C0=cn(VS.x/4*x/va,VS.y/4*y,VS.z/4*z/va)*ca(mran(-MarbleMax,MarbleMax),mran(-MarbleMax,MarbleMax),mran(-MarbleMax,MarbleMax))}
416
Marble[#Marble+1]={wmarb,mran(-1,1),mran(-1,1),mran(-1,1)}
417
end end end
418
iNew{'BlockMesh',v,Scale=v3(1,1,1)/1.5}
419
v.Transparency=0 --.995
420
end
421
 
422
for i,v in pairs(Char:children()) do if v:IsA'BasePart' and v.Name~='Torso' then v.CFrame=Torso.CFrame end end
423
 
424
Head.Transparency=0.99
425
Head.CanCollide=false
426
Neck=iNew{'Weld',Torso,Part0=Torso,Part1=Head,C0=cn(0,0,0)}
427
pNeck=iNew{'Weld',Torso,Part0=pTorso,Part1=pHead,C0=cn(0,1.5*Scale,0)}
428
Hum=iNew{'Humanoid',Char}
429
 
430
 
431
Torso.Transparency=1
432
wTorso=iNew{'Weld',Torso,Part0=Torso,Part1=pTorso,C0=cn(0,-2.5*Scale,0)*ca(0,0,0)}
433
oTorso=cn(0,0,0)
434
 
435
Stand.Transparency=1
436
wStand=iNew{'Weld',Torso,Part0=Torso,Part1=Stand,C0=cn(0,-2.5*Scale,0)}
437
 
438
wLSho=iNew{'Weld',LSho,Part0=pTorso,Part1=LSho,C0=cn(-1.5*Scale,0.75*Scale,0),C1=cn(0,0.25*Scale,0)}
439
wLArm=iNew{'Weld',LArm,Part0=LSho,Part1=LArm,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
440
 
441
wRSho=iNew{'Weld',RSho,Part0=pTorso,Part1=RSho,C0=cn(1.5*Scale,0.75*Scale,0),C1=cn(0,0.25*Scale,0)}
442
wRArm=iNew{'Weld',RArm,Part0=RSho,Part1=RArm,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
443
 
444
wLThi=iNew{'Weld',LThi,Part0=pTorso,Part1=LThi,C0=cn(-0.5*Scale,-1*Scale,0),C1=cn(0,0.75*Scale,0)}
445
wLLeg=iNew{'Weld',LLeg,Part0=LThi,Part1=LLeg,C0=cn(1,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
446
 
447
wRThi=iNew{'Weld',RThi,Part0=pTorso,Part1=RThi,C0=cn(0.5*Scale,-1*Scale,0),C1=cn(0,0.75*Scale,0)}
448
wRLeg=iNew{'Weld',RLeg,Part0=RThi,Part1=RLeg,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
449
 
450
wLSho.C0=cn(-1.5*Scale,0.75*Scale,0)*ca(0,0,-135) --a,b
451
wLArm.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --c,d
452
wRSho.C0=cn(1.5*Scale,0.75*Scale,0)*ca(0,0,135) --e,f
453
wRArm.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --g,h
454
----
455
wLThi.C0=cn(-0.5*Scale,-1*Scale,0)*ca(0,0,-45) --i,j
456
wLLeg.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --k,l
457
wRThi.C0=cn(0.5*Scale,-1*Scale,0)*ca(0,0,45) --m,n
458
wRLeg.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --o,p
459
 
460
BG=iNew{'BodyGyro',Torso,maxTorque=nov3}
461
BP=iNew{'BodyPosition',Torso,maxForce=nov3}
462
fUNDYING=Hum.Died:connect(UNDYING)
463
LimbNames={'LSho','RSho','LArm','RArm','RThi','LThi','RLeg','LLeg'}
464
for i=1,8 do local v=LimbNames[i] LimbNames[v]=getfenv()["w"..v] end
465
RootLimbs={pHead,pTorso,LSho,RSho,LArm,RArm,RThi,LThi,RLeg,LLeg}
466
Anim,LegAnim,ArmAnim='Sit','Sit','Sit'
467
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
468
SetWeld(wLSho,0,1,1,a,b,v3(-1.5*Scale,0.5*Scale,0),v3(0,0,-10),1)
469
SetWeld(wLArm,0,1,1,c,d,v3(0,-0.75*Scale,0),v3(10,0,10),1)
470
SetWeld(wRSho,0,1,1,e,f,v3(1.5*Scale,0.5*Scale,0),v3(0,0,10),1)
471
SetWeld(wRArm,0,1,1,g,h,v3(0,-0.75*Scale,0),v3(10,0,-10),1)
472
SetWeld(wLThi,0,1,1,i,j,v3(-0.5*Scale,-1*Scale,0),v3(15,0,-5),1)
473
SetWeld(wLLeg,0,1,1,k,l,v3(0,-0.75*Scale,0),v3(-15,0,5),1)
474
SetWeld(wRThi,0,1,1,m,n,v3(0.5*Scale,-1*Scale,0),v3(15,0,5),1)
475
SetWeld(wRLeg,0,1,1,o,p,v3(0,-0.75*Scale,0),v3(-15,0,-5),1)
476
Oa,Ob,Oc,Od,Oe,Of,Og,Oh,Oi,Oj,Ok,Ol,Om,On,Oo,Op=GetPose()
477
SetWeld(wLSho,0,1,1,nov3,nov3,a,b,1)
478
SetWeld(wLArm,0,1,1,nov3,nov3,c,d,1)
479
SetWeld(wRSho,0,1,1,nov3,nov3,e,f,1)
480
SetWeld(wRArm,0,1,1,nov3,nov3,g,h,1)
481
SetWeld(wLThi,0,1,1,nov3,nov3,i,j,1)
482
SetWeld(wLLeg,0,1,1,nov3,nov3,k,l,1)
483
SetWeld(wRThi,0,1,1,nov3,nov3,m,n,1)
484
SetWeld(wRLeg,0,1,1,nov3,nov3,o,p,1)
485
end
486
 
487
function GetPose()
488
local a,b=GetWeld(wLSho,0)
489
local c,d=GetWeld(wLArm,0)
490
local e,f=GetWeld(wRSho,0)
491
local g,h=GetWeld(wRArm,0)
492
local i,j=GetWeld(wLThi,0)
493
local k,l=GetWeld(wLLeg,0)
494
local m,n=GetWeld(wRThi,0)
495
local o,p=GetWeld(wRLeg,0)
496
local q,r=GetWeld(wTorso,0)
497
return a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r
498
end
499
 
500
MakeAI(SpawnPoint)
501
 
502
ASpeed=28
503
coroutine.resume(coroutine.create(function()
504
SetWeld(wLSho,0,1,1,nov3,nov3,wLSho.C0.p,v3(45,0,-10),1)
505
SetWeld(wLArm,0,1,1,nov3,nov3,wLArm.C0.p,v3(45,0,10),1)
506
SetWeld(wRSho,0,1,1,nov3,nov3,wRSho.C0.p,v3(45,0,10),1)
507
SetWeld(wRArm,0,1,1,nov3,nov3,wRArm.C0.p,v3(45,0,-10),1)
508
SetWeld(wLThi,0,1,1,nov3,nov3,v3(-0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,-12),1)
509
SetWeld(wLLeg,0,1,1,nov3,nov3,wLLeg.C0.p,v3(-70,0,12),1)
510
SetWeld(wRThi,0,1,1,nov3,nov3,v3( 0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,12),1)
511
SetWeld(wRLeg,0,1,1,nov3,nov3,wRLeg.C0.p,v3(-70,0,-12),1)
512
SetWeld(wTorso,0,1,1,oTorso,nov3,v3(0,-3*Scale,0),nov3,1)
513
wait(1)
514
Anim='Standing'
515
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
516
for x=1,ASpeed do
517
SetWeld(wTorso,0,x,ASpeed,wTorso.C0.p,nov3,oTorso,nov3,1)
518
SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.5*Scale,0.5*Scale,0),v3(0,0,-10),1)
519
SetWeld(wLArm,0,x,ASpeed,c,d,v3(0,-0.75*Scale,0),v3(10,0,10),1)
520
SetWeld(wRSho,0,x,ASpeed,e,f,v3(1.5*Scale,0.5*Scale,0),v3(0,0,10),1)
521
SetWeld(wRArm,0,x,ASpeed,g,h,v3(0,-0.75*Scale,0),v3(10,0,-10),1)
522
SetWeld(wLThi,0,x,ASpeed,i,j,v3(-0.5*Scale,-1*Scale,0),v3(15,0,-5),1)
523
SetWeld(wLLeg,0,x,ASpeed,k,l,v3(0,-0.75*Scale,0),v3(-15,0,5),1)
524
SetWeld(wRThi,0,x,ASpeed,m,n,v3(0.5*Scale,-1*Scale,0),v3(15,0,5),1)
525
SetWeld(wRLeg,0,x,ASpeed,o,p,v3(0,-0.75*Scale,0),v3(-15,0,-5),1)
526
wait()
527
end
528
ArmAnim='None'
529
LegAnim='None'
530
Anim='None'
531
end))
532
--Target=PChar
533
function Stay(bool,cff)
534
BG.maxTorque=bool and v3(1,1,1)/0 or nov3 BG.cframe=cff or Torso.CFrame
535
BP.maxForce=BG.maxTorque BP.position=Torso.Position
536
end
537
function fMarble(Ch,func)
538
for i,v in pairs(Ch:children()) do
539
for x=-1,1,2 do
540
for y=-1,1,2 do
541
for z=-1,1,2 do
542
if v:findFirstChild(x..y..z) then func(v[x..y..z]) end
543
end end end
544
end
545
end
546
function ReturnAnim()
547
local ne1,ne2=GetWeld(pNeck,0)
548
local wt1,wt2=GetWeld(wTorso,0)
549
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
550
for x=1,ASpeed do
551
SetWeld(wLSho,0,x,ASpeed,a,b,Oa,Ob,1)
552
SetWeld(wLArm,0,x,ASpeed,c,d,Oc,Od,1)
553
SetWeld(wRSho,0,x,ASpeed,e,f,Oe,Of,1)
554
SetWeld(wRArm,0,x,ASpeed,g,h,Og,Oh,1)
555
SetWeld(wLThi,0,x,ASpeed,i,j,Oi,Oj,1)
556
SetWeld(wLLeg,0,x,ASpeed,k,l,Ok,Ol,1)
557
SetWeld(wRThi,0,x,ASpeed,m,n,Om,On,1)
558
SetWeld(wRLeg,0,x,ASpeed,o,p,Oo,Op,1)
559
SetWeld(wTorso,0,x,ASpeed,wt1,wt2,oTorso,nov3,1)
560
SetWeld(pNeck,0,x,ASpeed,ne1,ne2,v3(0,1.5,0)*Scale,nov3,1)
561
wait()
562
end
563
end
564
 
565
ChatConnection=Player.Chatted:connect(function(msg)
566
coroutine.resume(coroutine.create(function()
567
if not Char.Parent then return end
568
local Sep,sep=se(';',msg)
569
local p1,p2=findplayer(Sep[2]),findplayer(Sep[3])
570
local cmd=sep[1]
571
--print(Sep[1])
572
--print(LimbNames[Sep[1]])
573
Tt=(p1 and p1.Character and p1.Character:findFirstChild'Torso') and p1.Character.Torso or nil
574
if cmd=='sit' and (Anim=='None' or Anim=='Follow') then
575
Anim='Sitting'
576
Hum:MoveTo(Torso.Position,Torso)
577
LegAnim,ArmAnim='Sit','Sit'
578
for x=1,ASpeed do
579
SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(45,0,-10),1)
580
SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(45,0,10),1)
581
SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(45,0,10),1)
582
SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(45,0,-10),1)
583
SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,-12),1)
584
SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(-70,0,12),1)
585
SetWeld(wRThi,0,x,ASpeed,Om,On,v3( 0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,12),1)
586
SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(-70,0,-12),1)
587
SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-3*Scale,0),nov3,1)
588
wait()
589
end
590
Anim='Sit'
591
elseif (cmd=='stand' or cmd=='stop') and (Anim=='Roll' or Anim=='Sit' or Anim=='Follow' or Anim=='Form' or Anim=='Dance' or Anim=='Grab') then
592
if Anim=='Sit' or Anim=='Form' or Anim=='Dance' or Anim=='Roll' then
593
Anim='Returning'
594
ReturnAnim()
595
else
596
Target=nil
597
wait(0.2)
598
Hum:MoveTo(Torso.Position,Torso)
599
end
600
LegAnim,ArmAnim,Anim='None','None','None'
601
elseif cmd=='follow' and Tt and Anim=='None' then
602
Anim='Follow'
603
Target=p1.Character
604
elseif cmd=='shoot' and Tt and RArm['1-11'].Transparency~=1 and ArmAnim=='None' then
605
Target=p1.Character
606
ArmAnim='Shoot'
607
FaceBG(Tt.Position)
608
wait(0.1)
609
local cff=cn(pTorso.CFrame.p,v3(Tt.Position.x,pTorso.Position.y,Tt.Position.z))
610
local ofs=cff:toObjectSpace(cn(cff*cn(1.5*Scale,0.5*Scale,0).p,Tt.CFrame*cn(0,2,0).p)*ca(90,0,0)*cn(0,-0.25*Scale,0))
611
local x,y,z=ofs:toEulerAnglesXYZ()
612
local rot=v3(mdeg(x),mdeg(y),mdeg(z))
613
for q=1,ASpeed do
614
SetWeld(wRArm,0,q,ASpeed,Og,Oh,Og,nov3,1)
615
SetWeld(wRSho,0,q,ASpeed,Oe,Of,ofs.p,rot,1)
616
SetWeld(wRSho,1,q,ASpeed,v3(0,0.25*Scale,0),nov3,nov3,nov3,1)
617
wait()
618
end
619
for y=-1,1,2 do for x=-1,1,2 do for z=-1,1,2 do
620
local new=RArm[x..y..z]:Clone() new.Parent=RArm game.Debris:AddItem(new,8) new.Touched:connect(function(hit) Damage(hit.Parent:findFirstChild'Humanoid') end)
621
new.CFrame=RArm[x..y..z].CFrame*cn(0,-Scale*1.5,0) new.CanCollide=true new.Velocity=cn(new.Position,Target.Torso.Position).lookVector*((new.Position-Target.Torso.Position).magnitude*20+900)
622
RArm[x..y..z].Transparency=1 so.Block:Play() wait(0.06)
623
end end end
624
RArm.Transparency=1
625
delay(1,function()
626
for x=-1,1,2 do for y=-1,1,2 do for z=-1,1,2 do local new=RArm[x..y..z]:Clone() new.Transparency=0 new.CanCollide=false new.Name='f'..new.Name new.Parent=RArm new.CFrame=RArm.CFrame*cn(Scale*x*2,Scale*-3,Scale*z*2)
627
iNew{'BodyPosition',new,maxForce=v3(1,1,1)/0,position=RArm[x..y..z].Position} wait(0.14) end end end
628
DoLoop(35,function(i) for x=-1,1,2 do for y=-1,1,2 do for z=-1,1,2 do RArm['f'..x..y..z].BodyPosition.position=RArm[x..y..z].Position if i==1 then RArm['f'..x..y..z]:Remove() RArm[x..y..z].Transparency=0 RArm.Transparency=0 end end end end end)
629
end)
630
for q=1,ASpeed do
631
SetWeld(wRArm,0,q,ASpeed,Og,nov3,Og,Oh,1)
632
SetWeld(wRSho,0,q,ASpeed,ofs.p,rot,Oe,Of,1)
633
SetWeld(wRSho,1,q,ASpeed,nov3,nov3,v3(0,0.25*Scale,0),nov3,1)
634
wait()
635
end
636
BG.maxTorque=nov3
637
ArmAnim='None'
638
elseif cmd=='slam' and (Anim=='None' or Anim=='Follow') and Tt then
639
Target=p1
640
local lTt=Tt
641
Anim='Follow'
642
repeat Hum:MoveTo(Tt.Position+v3(0.5,0.5,0.5),Tt) wait(0.2) until lTt~=Tt or (Tt.Position-pTorso.Position).magnitude<10+Scale*5.5 or Anim~='Follow'
643
if Anim~='Follow' then BG.maxTorque=nov3 return end
644
if lTt~=Tt then return end
645
Anim,LegAnim,ArmAnim='Slam','',''
646
Hum:MoveTo(Torso.Position,Torso)
647
FaceBG(Tt.Position)
648
Stay(true,BG.cframe)
649
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
650
ASpeed2=15
651
for x=1,ASpeed2 do
652
SetWeld(wLSho,0,x,ASpeed2,a,b,Oa,v3(180,0,0),1)
653
SetWeld(wRSho,0,x,ASpeed2,e,f,Oe,v3(180,0,0),1)
654
SetWeld(wTorso,0,x,ASpeed2,nov3,nov3,v3(0,3,0)*Scale,nov3,1)
655
wait()
656
end
657
for x=1,ASpeed2 do
658
SetWeld(wTorso,0,x,ASpeed2,v3(0,3,0)*Scale,nov3,v3(0,-3*Scale+2.5,-6*Scale),v3(-89,0,0),1)
659
wait()
660
end
661
AOEFind(pTorso.Position,6.5*Scale,function(Hum) Damage(Hum,3,true) Hum.Sit=true end)
662
MeshEffect(35,Torso.CFrame*cn(0,-3.5*Scale,-6*Scale)*ca(90,0,0),nil,v3(2,2,1)*Scale,v3(12,12,5)*Scale,0.2,1,'Light stone grey',as.ring)
663
wait(0.5)
664
for x=1,ASpeed do
665
SetWeld(wTorso,0,x,ASpeed,v3(0,-3*Scale+2.5,-6*Scale),v3(-90,0,0),nov3,nov3,1)
666
SetWeld(wLSho,0,x,ASpeed,Oa,v3(180,0,0),Oa,Ob,1)
667
SetWeld(wRSho,0,x,ASpeed,Oe,v3(180,0,0),Oe,Of,1)
668
wait()
669
end
670
Stay(false)
671
Anim,LegAnim,ArmAnim='None','None','None'
672
elseif cmd=='boulder' and Anim=='None' then
673
Target=p1.Character
674
Anim,LegAnim,ArmAnim='','',''
675
Stay(true)
676
FaceBG(Tt.Position)
677
for x=1,ASpeed do
678
SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(135,0,0),1)
679
SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,0),1)
680
SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(135,0,0),1)
681
SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-10),1)
682
SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5,-0.5,0.25)*Scale,v3(45,0,-15),1)
683
SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(0,0,0),1)
684
SetWeld(wRThi,0,x,ASpeed,Om,On,v3( 0.5,-0.5,0.25)*Scale,v3(45,0,15),1)
685
SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(0,0,0),1)
686
SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-1.5,-1.5)*Scale,v3(-90,0,0),1)
687
wait()
688
end
689
wait(0.2)
690
local boulder=iPart{Char,1,1,1,type='WedgePart'} boulder.Material=Mat
691
local wm=iNew{'SpecialMesh',boulder,Scale=v3(4,3,4)*Scale,MeshType='Wedge'}
692
local wb=iNew{'Weld',boulder,Part0=RArm,Part1=boulder,C0=cn(-1.5*Scale,-2.3*Scale,0)*ca(180,180,0)}
693
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
694
for x=1,ASpeed*2 do
695
SetWeld(wLSho,0,x,ASpeed*2,a,b,a,v3(225,0,0),1)
696
SetWeld(wLArm,0,x,ASpeed*2,c,d,c,v3(45,0,0),1)
697
SetWeld(wRSho,0,x,ASpeed*2,e,f,e,v3(225,0,0),1)
698
SetWeld(wRArm,0,x,ASpeed*2,g,h,g,v3(45,0,0),1)
699
SetWeld(wLThi,0,x,ASpeed*2,i,j,Oi,v3(0,0,-15),1)
700
SetWeld(wLLeg,0,x,ASpeed*2,k,l,k,v3(0,0,0),1)
701
SetWeld(wRThi,0,x,ASpeed*2,m,n,Om,v3(0,0,15),1)
702
SetWeld(wRLeg,0,x,ASpeed*2,o,p,o,v3(0,0,0),1)
703
SetWeld(wTorso,0,x,ASpeed*2,q,r,nov3,nov3,1)
704
wait()
705
end
706
FaceBG(Tt.Position)
707
for x=1,ASpeed/2 do
708
SetWeld(wLSho,0,x,math.floor(ASpeed/2),a,v3(225,0,0),a,v3(90,0,0),1)
709
SetWeld(wLArm,0,x,math.floor(ASpeed/2),c,v3(45,0,0),c,v3(45,0,0),1)
710
SetWeld(wRSho,0,x,math.floor(ASpeed/2),e,v3(225,0,0),e,v3(90,0,0),1)
711
SetWeld(wRArm,0,x,math.floor(ASpeed/2),g,v3(45,0,0),g,v3(45,0,0),1)
712
wait()
713
end
714
local bcf=boulder.CFrame
715
wb:Remove()
716
wm:Remove()
717
boulder.Size=wm.Scale
718
boulder.CFrame=cn(boulder.Position,Target.Torso.Position)*cn(0,3,-1)*ca(0,180,0)
719
--boulder.Friction=0.1
720
boulder.Elasticity=0
721
boulder.Velocity=(boulder.CFrame*ca(0,180,0)).lookVector*((boulder.Position-Target.Torso.Position).magnitude*1+90)
722
boulder.RotVelocity=nov3
723
game.Debris:AddItem(boulder,8)
724
Stay(false)
725
ReturnAnim()
726
Anim,LegAnim,ArmAnim='None','None','None'
727
elseif cmd=='grab' and Tt and not Grabbing then
728
Target=p1
729
local lTt=Tt
730
Anim='Follow'
731
repeat Hum:MoveTo(Tt.Position+v3(0.5,0.5,0.5),Tt) wait(0.2) until lTt~=Tt or (Tt.Position-Stand.CFrame*cn(0,-Stand.Size.y/2+1,-2.8*Scale).p).magnitude<10 or Anim~='Follow'
732
if Anim~='Follow' then BG.maxTorque=nov3 return end
733
if lTt~=Tt then return end
734
pcall(function() Tt.Parent.Humanoid.PlatformStand=true end)
735
Hum:MoveTo(Torso.Position,Torso)
736
Anim,LegAnim,ArmAnim='Grab','',''
737
FaceBG(Tt.Position)
738
for x=1,ASpeed do
739
SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(-30,0,-30),1)
740
SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,0),1)
741
SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(145,0,-30),1)
742
SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,0),1)
743
SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5,-0.4,0.3)*Scale,v3(70,0,0),1)
744
SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(-20,0,0),1)
745
SetWeld(wRThi,0,x,ASpeed,Om,On,v3(0.5,-0.5,-0.3)*Scale,v3(135,0,0),1)
746
SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(-90,0,0),1)
747
SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-2,-1.5)*Scale,v3(-90,0,0),1)
748
wait()
749
end
750
local ofs=RArm.CFrame:toObjectSpace(Tt.CFrame)
751
Tt.Parent.Humanoid.PlatformStand=true
752
Grabbing=iNew{'Weld',RArm,Part0=RArm,Part1=Tt,C0=ofs}
753
local a,b=GetWeld(Grabbing,0)
754
for x=1,ASpeed do
755
SetWeld(Grabbing,0,x,ASpeed,a,b,v3(0,-0.75*Scale-1,0),v3(-90,0,0),1)
756
wait()
757
end
758
Stay(false)
759
ReturnAnim()
760
Anim,LegAnim,ArmAnim='None','None','None'
761
elseif cmd=='dance' and (Anim=='None' or Anim=='Follow') then
762
Hum:MoveTo(pTorso.Position,pTorso)
763
Anim,ArmAnim,LegAnim='Dance','Dance','Dance'
764
local ASpeed=math.floor(ASpeed/2)
765
repeat
766
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
767
for x=1,ASpeed do
768
if Anim~='Dance' then break end
769
SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.2,0.5,-0.25)*Scale,v3(35,0,30),1)
770
SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(25,0,0),1)
771
SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.2,0.5,-0.25)*Scale,v3(45,0,-30),1)
772
SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(25,0,0),1)
773
SetWeld(wLThi,0,x,ASpeed,i,j,i,v3(0,0,0),1)
774
SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(0,0,0),1)
775
SetWeld(wRThi,0,x,ASpeed,m,n,m,v3(45,0,20),1)
776
SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(-45,0,-20),1)
777
wait()
778
end
779
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
780
for x=1,ASpeed do
781
if Anim~='Dance' then break end
782
SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.2,0.5,-0.25)*Scale,v3(95,0,30),1)
783
SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(-10,0,0),1)
784
SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.2,0.5,-0.25)*Scale,v3(105,0,-30),1)
785
SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(-10,0,0),1)
786
SetWeld(wLThi,0,x,ASpeed,i,j,i,v3(45,0,-20),1)
787
SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(-45,0,20),1)
788
SetWeld(wRThi,0,x,ASpeed,m,n,m,v3(0,0,0),1)
789
SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(0,0,0),1)
790
wait()
791
end
792
until Anim~='Dance'
793
elseif cmd=='roll' and (Anim=='None' or Anim=='Follow') then
794
Target=p1
795
local lTt=Tt
796
Anim,ArmAnim,LegAnim='Roll','',''
797
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
798
local n1,n2=GetWeld(pNeck,0)
799
for x=1,ASpeed do
800
SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.5,0.5,0)*Scale,v3(0,0,-45),1)
801
SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(0,0,90),1)
802
SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.5,0.5,0)*Scale,v3(0,0,45),1)
803
SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(0,0,-90),1)
804
SetWeld(wLThi,0,x,ASpeed,i,j,v3(0,1, 0.5)*Scale,v3(-30,0,0),1)
805
SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(60,0,0),1)
806
SetWeld(wRThi,0,x,ASpeed,m,n,v3(0,1,-0.5)*Scale,v3(30,0,0),1)
807
SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(-60,0,0),1)
808
SetWeld(pNeck,0,x,ASpeed,n1,n2,v3(0,0,0),n2,1)
809
SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-2,0)*Scale,nov3,1)
810
wait()
811
end
812
tWS[2]=3
813
repeat
814
local cf=Torso.CFrame*cn(mran2(-1,1)*Scale,-4*Scale,0.5*Scale)*ca(90+mran(-20,20),mran(-30,30),0)
815
MeshEffect(24,cf,cf*cn(0,4*Scale,0),v3(0.5,0.5,0.5)*Scale,v3(mran2(1,4),mran2(3,5),mran2(1,3))*Scale,0.1,1,'Dark stone grey','Brick')
816
Hum:MoveTo(Tt.CFrame*cn(0,0,Scale).p,Tt) wTorso.C0=wTorso.C0*ca(-20,0,0) wait(0.035) until lTt~=Tt or (Tt.Position-Stand.CFrame*cn(0,-Stand.Size.y/2+1,-2.8*Scale).p).magnitude<6 or Anim~='Roll'
817
tWS[2]=1
818
ClearWeld(wTorso)
819
if Anim~='Roll' then return end
820
Hum:MoveTo(Torso.Position+v3(0,1,0),Torso)
821
Torso.Anchored=true Torso.Velocity=nov3
822
local cf=Stand.CFrame*cn(0,0,-1.5*Scale)*ca(-45,0,0) --iPart{Char,1,1,1,co='Black',cf=cf,an=true}
823
MeshEffect(50,cf,nil,v3(3.5,3.5,2)*Scale,v3(11,11,6)*Scale,0.1,1,'White',as.ring)
824
for i=1,16 do
825
local cf=cf*ca(90,360*(i/16),0)*ca(45,0,0)
826
MeshEffect(40,cf,cf*cn(0,10*Scale,0),v3(0.2,2,0.2)*Scale,v3(1,5,1)*Scale,0.1,1,'','Sphere')
827
end
828
AOEFind(cf.p,6.5*Scale,function(Hum,v) Damage(Hum,2,true) Hum.Sit=true v.Velocity=cn(pTorso.Position,v.Position).lookVector*50 end)
829
wait(0.2)
830
Torso.Anchored=false
831
ReturnAnim()
832
Hum:MoveTo(Torso.Position,Torso)
833
Anim,LegAnim,ArmAnim='None','None','None'
834
elseif cmd=='beam' and (Anim=='None' or Anim=='Follow') then
835
Anim='beam'
836
local che =iPart{Char,1,1,1,sc=Scale,co=CC[1],ma=Mat} local chew=iNew{'Weld',che ,Part0=pTorso,Part1=che}
837
local che2=iPart{che ,0.8*Scale,0.2,0.8*Scale,co='Really black'} local che2w=iNew{'Weld',che2,Part0=che,Part1=che2}
838
local chem=iNew{'CylinderMesh',che} iNew{'CylinderMesh',che2}
839
local chest,chex,i={},0,0
840
for x=-1,1,2 do for y=-1,1,2 do i=i+1 chest[i]={pTorso[x..y..'-1']} chest[i][2]=chest[i][1].Weld chest[i][3]=chest[i][2].C0
841
local xx,yy,zz=chest[i][2].C0:toEulerAnglesXYZ() chest[i][4]=v3(mdeg(xx),mdeg(yy),mdeg(zz))
842
chest[i][5]=cn(0.45*x*Scale,0,-0.5*Scale)*chest[i][3] chest[i][6]=chest[i][4]+v3(0,-105*x,0) end end
843
local len=1.75
844
local dochest=function(v,chexx,adj)
845
local p=v/ASpeed
846
chex=adj*p
847
chem.Scale=v3(1,len*p,1)
848
chew.C0=ca(chexx+chex,0,0)*cn(0,len/2*p*Scale,0)
849
che2w.C0=cn(0,len/2*p*Scale,0)
850
for i=1,4 do SetWeld(chest[i][2],0,v,ASpeed,chest[i][3],chest[i][4],chest[i][5],chest[i][6],1) end
851
end
852
for v=1,ASpeed do if Tt then FaceBG(Tt.Position) end dochest(v,-90,-45) wait() end
853
local beam=iPart{Char,0.7*Scale,1,0.7*Scale,co='New Yeller',an=true,tr=0.3} beamm=iNew{'CylinderMesh',beam}
854
for i=1,ASpeed*3 do
855
local p=i/ASpeed*3
856
chex=90*math.sin((math.pi/2)/(ASpeed*3)*i)
857
chew.C0=ca(-135+chex,0,0)*cn(0,len/2*Scale,0)
858
local hit,pos=ray(che2.Position,che2.Position-che2.CFrame*cn(0,-1,0).p,Char)
859
local mag=(che2.Position-pos).magnitude local p1,p2=che2.Position+v3(mran2(-1,1),mran2(-1,1),mran2(-1,1))/3,pos+v3(mran2(-1,1),mran2(-1,1),mran2(-1,1))/3
860
beam.CFrame=cn(p1,p2)*cn(0,0,-mag/2)*ca(90,0,0) beamm.Scale=v3(1,mag+(Scale/3),1)
861
AOEFind(pos,Scale*2,function(Hum) Damage(Hum,2.5) end)
862
if i%2==0 then for i=1,5 do local cf=cn(pos)*ca(0,mran(-180,180),mran(-95,95)) MeshEffect(8,cf,cf*cn(0,Scale*2.2,0),v3(0.1,0.4,0.1)*Scale,v3(0.4,3,0.4)*Scale,0.2,1,CC[mran(2,3)],as.cone) end
863
MeshEffect(8,cn(pos),nil,v3(0.8,0.8,0.8)*Scale,v3(4,4,4)*Scale,0.2,1,CC[mran(2,3)],'Sphere') end
864
if Tt then FaceBG(Tt.Position) end
865
wait()
866
end
867
DoLoop(12,function(i) beam.Transparency=0.3+i*0.7 if i==1 then beam:Remove() end end)
868
for v=ASpeed,0,-1 do dochest(v,-90,45) wait() end
869
Stay(false)
870
che:Remove()
871
Anim='None'
872
---------------------------------------------------------------------------=---WWWWWWWWWWWWWWWWWW
873
elseif cmd=='box' and (Anim=='None' or Anim=='Follow') then
874
Anim,ArmAnim='cart','cart'
875
for x=1,ASpeed do
876
SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(90,0,10),1)
877
SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,25),1)
878
SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(90,0,-10),1)
879
SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-25),1)
880
wait()
881
end
882
Stay(true)
883
local spawn=RArm.CFrame*cn(0,-0.75*Scale-2,0)*ca(-90,0,0)
884
local des=iPart{Char,1,1,1,an=true,ma=Mat,cf=spawn,ca=false}
885
for i=1,6,0.2 do des.Size=v3(i,i,i) des.CFrame=spawn*cn(0,0,-i/2) wait() end
886
local cart=iNew{'Model',workspace,Name='Cart'}
887
local base=iPart{cart,4,1,5,ma=Mat,cf=des.CFrame} iNew{'BodyGyro',base}
888
for x=-1,1,2 do
889
local new=iPart{cart,0.5,4,5,ma=Mat,cf=base.CFrame} iNew{'Weld',new,Part0=base,Part1=new,C0=cn(1.75*x,2.5,0)}
890
local new=iPart{cart,3.5,4,0.5,ma=Mat,cf=base.CFrame} iNew{'Weld',new,Part0=base,Part1=new,C0=cn(0,2.5,2.25*x)}
891
end
892
for i=6,0.8,-0.2 do des.Size=v3(i,i,i) des.CFrame=spawn*cn(0,0,-i/2) wait() end des:Remove()
893
Stay(false)
894
ReturnAnim()
895
Anim,ArmAnim='None','None'
896
elseif cmd=='crush' and Grabbing and (Anim=='None' or Anim=='Follow') then
897
Anim,ArmAnim='crush','crush'
898
for x=1,ASpeed do
899
SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(80,0,-160),1)
900
SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,80),1)
901
SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(80,0,160),1)
902
SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-80),1)
903
wait()
904
end
905
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
906
wait(0.2)
907
for x=1,ASpeed/2 do
908
SetWeld(wLSho,0,x,ASpeed/2,a,b,Oa,v3(80,0,-14),1)
909
SetWeld(wLArm,0,x,ASpeed/2,c,d,Oc,v3(0,0,80),1)
910
SetWeld(wRSho,0,x,ASpeed/2,e,f,Oe,v3(80,0,14),1)
911
SetWeld(wRArm,0,x,ASpeed/2,g,h,Og,v3(0,0,-80),1)
912
wait()
913
end
914
MeshEffect(35,Grabbing.Part1.CFrame,nil,v3(2,2,1)*Scale,v3(7,7,3)*Scale,0.3,1,'Light stone grey',as.ring)
915
local crushjo=60
916
pcall(function() for i,v in pairs({'Neck','Left Shoulder','Right Shoulder','Left Hip','Right Hip'}) do local w=Grabbing.Part1.Parent.Torso[v] w.C1=w.C1*ca(mran(-crushjo,crushjo),mran(-crushjo,crushjo),mran(-crushjo,crushjo)) end end)
917
local hit=Grabbing.Part1
918
Grabbing:Remove() Grabbing=nil
919
wait(2)
920
pcall(function() hit.Parent.Humanoid.PlatformStand=false end)
921
ReturnAnim()
922
Anim,ArmAnim='None','None'
923
elseif cmd=='eat' and Grabbing and (Anim=='None' or Anim=='Follow') then
924
Anim,ArmAnim='Eat','Eat'
925
for x=1,ASpeed*2 do
926
SetWeld(wRSho,0,x,ASpeed*2,Oe,Of,Oe,v3(135,0,15),1)
927
SetWeld(wRArm,0,x,ASpeed*2,Og,Oh,Og,v3(45,-10,-100),1)
928
wait()
929
end
930
wait(1)
931
for x=1,40 do
932
SetWeld(wRSho,0,1,1,Oe,Of,Oe,v3(135+mran(-3,3),0,15+mran(-3,3)),1)
933
SetWeld(wRArm,0,1,1,Og,Oh,Og,v3(45,-10+mran(-12,12),-100+mran(-3,3)),1)
934
wait(0.05)
935
if x%2==0 then
936
local cf=Grabbing.Part1.CFrame*ca(180,mran(-180,180),mran(-40,40))*cn(0,1.5,0)
937
MeshEffect(24,cf,cf*cn(0,10,0),v3(0.2,2,0.2),v3(0.4,5,0.4),0.1,1,'Really red','Sphere')
938
end
939
end
940
Grabbing.Part1:BreakJoints()
941
pcall(function() Grabbing.Part1.Parent.Head:Remove() end)
942
Grabbing:Remove() Grabbing=nil
943
wait(2)
944
ReturnAnim()
945
Anim,ArmAnim='None','None'
946
elseif cmd=='drop' and Grabbing then
947
local hum=Grabbing.Part1.Parent.Humanoid Grabbing:Remove() Grabbing=nil hum.PlatformStand=false
948
elseif LimbNames[Sep[1]] and (Anim=='None' or Anim=='Form') then
949
Anim,ArmAnim,LegAnim='Form','Form','Form'
950
local v1,v2=GetWeld(LimbNames[Sep[1]],0)
951
local sepx=se(',',Sep[2])
952
for x=1,ASpeed*2 do
953
SetWeld(LimbNames[Sep[1]],0,x,ASpeed*2,v1,v2,v1,v3(tonumber(sepx[1]),tonumber(sepx[2]),tonumber(sepx[3])),1)
954
wait()
955
end
956
elseif cmd=='plode' then
957
Char:BreakJoints() wait()
958
local Pressure=tonumber(sep[2]) or 50
959
fMarble(Char,function(v) v.Velocity=cn(Torso.Position,v.Position).lookVector*Pressure end)
960
for i,v in pairs(RootLimbs) do v.Velocity=cn(Torso.Position,v.Position).lookVector*Pressure end
961
elseif cmd=='explode' then
962
iNew{'Explosion',pTorso,Position=pTorso.Position,BlastRadius=Scale*20}
963
elseif cmd=='goto' then
964
pcall(function()
965
Hum:MoveTo(Player:GetMouse().Hit.p,Player:GetMouse().Target) end)
966
elseif cmd=='newscale' and tonumber(sep[2]) then
967
Char:BreakJoints()
968
Scale=tonumber(sep[2])
969
if Scale<0.5 then Scale=0.5 end
970
if Scale>=100 then Scale=100 end
971
elseif cmd=='nobox' then
972
for i,v in pairs(workspace:children()) do if v.Name=='Cart' then v:Remove() end end
973
elseif cmd=='die' then
974
Char:BreakJoints()
975
elseif cmd=='brick' then
976
iPart{workspace,12,30,30,cf=Player.Character.Torso.CFrame*cn(0,10,-20),tr=0.5,an=true}
977
elseif cmd=='test' then
978
local pt=Player.Character.Torso.CFrame
979
MeshEffect(35,pt*cn(0,5,0)*ca(90,0,0),nil,v3(2,2,1)*Scale,v3(7,7,3)*Scale,0.2,1,'Light stone grey',as.ring)
980
else
981
end
982
end))
983
end)
984
keys={}
985
NewAnim={}
986
Player:GetMouse().KeyDown:connect(function(k)
987
coroutine.resume(coroutine.create(function() keys[k]=true
988
if (k=='q' or k=='e') and (Anim=='None' or Anim=='Laser') and (ArmAnim=='None' or ArmAnim=='Laser') and not NewAnim[k] then
989
NewAnim[k]=true
990
local w1,w2=k=='q' and wLSho or wRSho,k=='q' and wLArm or wRArm
991
local x=k=='q' and -1 or 1
992
local aa,bb=GetWeld(w1,0)
993
local cc,dd=GetWeld(w2,0)
994
local targ=w1.Part1.CFrame*cn(0,-333,0)
995
local tips={}
996
local co=0
997
local sho1=iPart{Char,0.35,RArm.Size.y/Scale+0.15 ,0.35,sc=Scale,co=CC[1]} iNew{'Weld',sho1,Part0=k=='q' and LArm or RArm,Part1=sho1} iNew{'CylinderMesh',sho1}
998
local sho2=iPart{Char,0.3,RArm.Size.y/Scale+0.16,0.3,sc=Scale,co='Really black'} iNew{'Weld',sho2,Part0=sho1,Part1=sho2} iNew{'CylinderMesh',sho2}
999
for x=-1,1,2 do for z=-1,1,2 do tips[#tips+1]={(k=='q' and LArm or RArm)[x..'-1'..z].Weld}
1000
co=co+0.25
1001
local asd=tips[#tips]
1002
asd[2],asd[3]=GetWeld(asd[1],0)
1003
local cf=ca(0,360*co,0)*cn(0,asd[2].y*1.8,-0.75*Scale)*ca(-20,0,0)
1004
asd[4]=cf.p
1005
local a,b,c=cf:toEulerAnglesXYZ()
1006
asd[5]=v3(mdeg(a),mdeg(b),mdeg(c))
1007
end end
1008
for u=1,ASpeed/2 do
1009
for i=1,4 do local asd=tips[i]
1010
SetWeld(asd[1],0,u,ASpeed/2,asd[2],asd[3],asd[4],asd[5],1)
1011
end wait()
1012
end
1013
repeat Anim,ArmAnim,LaserOn='Laser','Laser',true wait()
1014
for i=1,4 do tips[i][1].C0=ca(0,15*x,0)*tips[i][1].C0 end
1015
targ=TweenV3(1,12,targ,Player:GetMouse().Hit.p)
1016
w1.C0=pTorso.CFrame:toObjectSpace(cn(pTorso.CFrame*cn(1.5*Scale*x,0.5*Scale,0).p,targ))*ca(90,0,0)
1017
w2.C0=cn(0,-0.75*Scale,0)
1018
until not keys[k]
1019
ClearWeld(w1) ClearWeld(w2) for i=1,4 do ClearWeld(tips[i][1]) tips[i][6],tips[i][7]=GetWeld(tips[i][1],0) end
1020
local a,b=GetWeld(w1,0)
1021
local c,d=GetWeld(w2,0)
1022
for z=1,ASpeed/2 do
1023
for i=1,4 do SetWeld(tips[i][1],0,z,ASpeed/2,tips[i][6],tips[i][7],tips[i][2],tips[i][3],1) end
1024
SetWeld(w1,0,z,ASpeed/2,a,b,aa,bb,1)
1025
SetWeld(w2,0,z,ASpeed/2,c,d,cc,dd,1)
1026
wait()
1027
end
1028
sho1:Remove() sho2:Remove()
1029
NewAnim[k]=false
1030
Anim,ArmAnim,LaserOn='None','None',false
1031
end
1032
end)) end)
1033
Player:GetMouse().KeyUp:connect(function(k) keys[k]=false end)
1034
Player:GetMouse().Button1Down:connect(function()
1035
Button=true
1036
if keys.f and Player:GetMouse().Target and Anim=='None' then
1037
Hum:MoveTo(Player:GetMouse().Hit.p,Player:GetMouse().Target)
1038
elseif (keys.q or keys.e) and LaserOn then
1039
local pick=keys.q and 'q' or 'e'
1040
repeat
1041
local ofs=(pick=='q' and LArm or RArm).CFrame*ca(90,0,0)
1042
if pick=='q' and keys.e then pick='e'
1043
elseif pick=='e' and keys.q then pick='q' end
1044
local part=iPart{Char,0.2,0.5,0.2,sc=Scale,co=CC[mran(2,3)],an=true,ma=Mat} iNew{'CylinderMesh',part}
1045
Projectile(ofs,2*Scale,part,ca(-90,0,0),function(hit,pos)
1046
AOEFind(pos,Scale*2,function(Hum,v) Damage(Hum) end)
1047
end,
1048
function(pos)
1049
for i=1,5 do local cf=cn(pos)*ca(0,mran(-180,180),mran(-95,95)) MeshEffect(8,cf,cf*cn(0,Scale*2.2,0),v3(0.07,0.3,0.07)*Scale,v3(0.4,3,0.4)*Scale,0.2,1,CC[mran(2,3)],as.cone) end
1050
MeshEffect(8,cn(pos),nil,v3(0.1,0.1,0.1)*Scale,v3(3,3,3)*Scale,0.2,1,CC[mran(2,3)],'Sphere') part:Remove() end)
1051
wait((keys.q and keys.e) and 0.2 or 0.4)
1052
until not Button or (not keys.q and not keys.e)
1053
elseif 'swag'=='sweg' then
1054
end
1055
end)
1056
Player:GetMouse().Button1Up:connect(function()
1057
Button=false
1058
end)
1059
 
1060
WalkAnim=0
1061
Walking=false
1062
WalkMulp=1
1063
WalkMax=16
1064
Hum.WalkSpeed=18
1065
tWS={1,1,1,1,1,1,1}
1066
 
1067
Marbler=0
1068
local cou=0
1069
while Char.Parent do
1070
cou=cou+1
1071
--if cou%2==0 then print(cou) end
1072
if Hum.Health>0 then
1073
if Torso.Velocity.y>5 then Torso.Velocity=v3(Torso.Velocity.x,5,Torso.Velocity.z) end
1074
Walking=v3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude>Hum.WalkSpeed-2 and true or false
1075
if Walking and LegAnim=='None' then
1076
WalkAnim=WalkAnim+WalkMulp
1077
end
1078
if WalkAnim>0 and not Walking then
1079
WalkAnim=WalkAnim-1
1080
elseif WalkAnim<0 and not Walking then
1081
WalkAnim=WalkAnim+1
1082
end
1083
if math.abs(WalkAnim)>=WalkMax then WalkMulp=WalkMulp*-1 end
1084
local WalkAdj=26
1085
Neck.C0=Torso.CFrame:toObjectSpace(pHead.CFrame)
1086
if ArmAnim=='None' then
1087
SetWeld(wLSho,0,WalkAnim,WalkMax,Oa,Ob,Oa,v3(-WalkAdj*1.5,0,-10),1)
1088
SetWeld(wLArm,0,WalkAnim,WalkMax,Oc,Od,Oc,v3(10+(WalkAnim>0 and WalkAdj or 0),0,10),1)
1089
SetWeld(wRSho,0,WalkAnim,WalkMax,Oe,Of,Oe,v3(WalkAdj*1.5,0,10),1)
1090
SetWeld(wRArm,0,WalkAnim,WalkMax,Og,Oh,Og,v3(10+(WalkAnim>0 and WalkAdj or 0),0,-10),1)
1091
end
1092
if LegAnim=='None' then
1093
SetWeld(wLThi,0,WalkAnim,WalkMax,Oi,Oj,Oi,v3(15+WalkAdj,0,-5),1)
1094
SetWeld(wLLeg,0,WalkAnim,WalkMax,Ok,Ol,Ok,v3(-15+(WalkAnim>0 and -WalkAdj or 0),0,5),1)
1095
SetWeld(wRThi,0,WalkAnim,WalkMax,Om,On,Om,v3(15-WalkAdj,0,5),1)
1096
SetWeld(wRLeg,0,WalkAnim,WalkMax,Oo,Op,Oo,v3(-15+(WalkAnim<0 and WalkAdj or 0),0,-5),1)
1097
end
1098
--[[
1099
for i,v in pairs(Marble) do
1100
v[1].C0=v[1].C0*ca(MarbleSpeed*v[2],MarbleSpeed*v[3],MarbleSpeed*v[4])
1101
Marbler=Marbler+(MarbleSpeed*v[2])
1102
if Marbler>MarbleMax then
1103
v[2]=v[2]*-1
1104
v[3]=v[3]*-1
1105
v[4]=v[4]*-1
1106
end
1107
end --]]
1108
if Anim=='Follow' and Target and Target:findFirstChild'Torso' and not BG.maxTorque~=v3(1,1,1)/0 then
1109
Hum:MoveTo(Target.Torso.CFrame*cn(2.5*Scale,0,5*Scale).p,Target.Torso)
1110
end
1111
if Grabbing and (not Grabbing.Part1 or not Grabbing.Part1.Parent or Grabbing.Part1.Parent:findFirstChild'Humanoid'==nil or Grabbing.Part1.Parent.Humanoid.Health<1) then
1112
Grabbing:Remove() Grabbing=nil
1113
end
1114
end--hleat
1115
--DoLoop Package
1116
for i,v in pairs(LoopFunctions) do
1117
v[2]=v[2]+1
1118
v[3](v[2]/v[1])
1119
if v[1]<=v[2] then LoopFunctions[i]=nil end
1120
end
1121
local ws=18
1122
for i=1,#tWS do ws=ws*tWS[i] end
1123
Hum.WalkSpeed=ws
1124
if Hum.MaxHealth~=8000 then Hum.MaxHealth=8000 Hum.Health=8000 end
1125
Hum.Health=Hum.Health+0.1
1126
wait(0.03)
1127
end
1128
ChatConnection:disconnect()
1129
game:service'Debris':AddItem(script,0.5)
1130
script.Disabled=true