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