View difference between Paste ID: LMDF0g0m and Bd4uQnL5
SHOW: | | - or go back to the newest paste.
1
--Change your name where it says (YOURNAME)--
2
--(Wihout the "()"-s)--
3
4
warn("Made by Meti2000 <3")
5-
game.Workspace.IceTea_Bottle.Humanoid.MaxHealth = math.huge
5+
game.Workspace.jassm11.Humanoid.MaxHealth = math.huge
6
m = game:service'Players'.LocalPlayer:GetMouse()
7
paly = game.Players.LocalPlayer
8
char = paly.Character
9
ypcall(function()
10
shirt = Instance.new("Shirt", char)
11
shirt.Name = "Shirt"
12
pants = Instance.new("Pants", char)
13
pants.Name = "Pants"
14
char.Shirt.ShirtTemplate = "rbxassetid://654790833"
15
char.Pants.PantsTemplate = "rbxassetid://576054998"
16
end)
17
game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
18
local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
19
txtfag.Adornee = Hello
20
txtfag.Name = "Hoi."
21
txtfag.Size = UDim2.new(2, 0, 1.2, 0)
22
txtfag.StudsOffset = Vector3.new(-5, 3, 0)
23
local textfag = Instance.new("TextLabel", txtfag)
24
textfag.Size = UDim2.new(6, 0, 1, 0)
25
textfag.FontSize = "Size10"
26
textfag.TextScaled = true
27
textfag.TextTransparency = 0
28
textfag.BackgroundTransparency = 1
29
textfag.TextTransparency = 0
30
textfag.TextStrokeTransparency = 0
31
textfag.Font = "Cartoon"
32
textfag.TextStrokeColor3 = Color3.fromRGB(0,0,0)
33
textfag.Text = "y0s"
34
wait(0.6)
35
textfag.Text = "Let's chill .o."
36
wait(0.9)
37
textfag.Text = "(YOURNAME) The Doge"
38
39
do
40
    local filteredMessages = { ['____'] = '___' };
41
    local onPropertyChanged = function (obj)  
42
        if (obj:isDescendantOf (workspace)) then  
43
            local objText = obj.Text;
44
           
45
            if (objText ~= '___' and objText:find '(%S)') then
46
                if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
47
                    obj.Text = filteredMessages [objText];
48
                elseif (not filteredMessages [objText]) then
49
                    obj.Text = '___';
50
                   
51
                    local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
52
                   
53
                    filteredMessages [objText] = filtered;
54
                    filteredMessages [filtered] = filtered;
55
                   
56
                    obj.Text = filtered;
57
                end;
58
            end;
59
        end;
60
    end;
61
   
62
    local newInstance = Instance.new;
63
    Instance = {
64
        new = function (class, parent)
65
            local obj = newInstance (class, parent);
66
           
67
            if (pcall (function()return obj.Text;end)) then
68
                obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
69
                obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
70
            end;
71
           
72
            return obj;
73
        end;
74
    };
75
end;
76
plr = game.Players.LocalPlayer
77
mouse = plr:GetMouse()
78
part = nil
79
bp = nil
80
particles = nil
81
base = Instance.new("ScreenGui",plr.PlayerGui)
82
bbg = Instance.new("BillboardGui",plr.Character.Head)
83
bbg.Size = UDim2.new(0,200,0,50)
84
bbg.StudsOffset = Vector3.new(0,5,0)
85
bbgTl = Instance.new("TextLabel",bbg)
86
bbgTl.BackgroundTransparency = 1
87
bbgTl.Size = UDim2.new(10,0,1,0)
88
bbgTl.Position = UDim2.new(-4.5,0,0,0)
89
bbgTl.Font = "Highway"
90
bbgTl.Text = " "
91
bbgTl.TextSize = 40
92
bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
93
bbgTl.TextStrokeTransparency = 0
94
bbgTl.TextWrapped = true
95
plr.Chatted:connect(function(msg)
96
    bbgTl.Text = msg
97
    wait(5)
98
    if bbgTl.Text == msg then
99
        bbgTl.Text = " "
100
while true do
101
textfag.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
102
bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
103
wait(.1)
104
end
105
    end
106
end)
107
Player=game:GetService("Players").LocalPlayer
108
Character=Player.Character 
109
PlayerGui=Player.PlayerGui
110
Backpack=Player.Backpack 
111
Torso=Character.Torso 
112
Head=Character.Head 
113
Humanoid=Character.Humanoid
114
m=Instance.new('Model',Character)
115
LeftArm=Character["Left Arm"] 
116
LeftLeg=Character["Left Leg"] 
117
RightArm=Character["Right Arm"] 
118
RightLeg=Character["Right Leg"] 
119
LS=Torso["Left Shoulder"] 
120
LH=Torso["Left Hip"] 
121
RS=Torso["Right Shoulder"] 
122
RH=Torso["Right Hip"] 
123
Face = Head.face
124
Neck=Torso.Neck
125
--it=Instance.new
126
local hair3 = Instance.new("Part",char)
127
hair3.Material="Neon"
128
hair3.CanCollide=false
129
hair3.Size=Vector3.new(0.1,0.1,0.1)
130
hair3.Transparency=0
131
132
local msh = Instance.new("SpecialMesh",hair3)
133
local text = Instance.new("Texture",hair3)
134
text.Texture="rbxassetid://151778895"
135
msh.MeshId="rbxassetid://151778863"
136
msh.Scale=Vector3.new(1.01, 1.01, 1.01)
137
138
local w = Instance.new("Weld",hair3)
139
w.Part1=hair3
140
w.Part0=Head
141
w.C0=CFrame.new(0,0.12,-0.23)
142
attacktype=1
143
vt=Vector3.new
144
cf=CFrame.new
145
euler=CFrame.fromEulerAnglesXYZ
146
angles=CFrame.Angles
147
cloaked=false
148
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
149
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
150
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
151
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
152
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
153
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
154
RootPart=Character.HumanoidRootPart
155
RootJoint=RootPart.RootJoint
156
RootCF=euler(-1.57,0,3.14)
157
attack = false 
158
attackdebounce = false 
159
deb=false
160
equipped=true
161
hand=false
162
MMouse=nil
163
combo=0
164
mana=0
165
trispeed=.2
166
attackmode='none'
167
local idle=0
168
local Anim="Idle"
169
local gun=false
170
local shoot=false
171
player=nil 
172
mana=0
173
174
local defensevalue = 999999
175
local speedvalue = 1
176
local damagevalue = 1
177
local cf = CFrame.new-- make things ez :3
178
local mr = math.rad
179
local angles = CFrame.Angles
180
local ud = UDim2.new
181
local c3 = Color3.new
182
183
local stats=Instance.new('Folder',Character)
184
stats.Name='Stats'
185
local block=Instance.new('BoolValue',stats)
186
block.Name='Block'
187
block.Value=false
188
local stun=Instance.new('BoolValue',stats)
189
stun.Name='Stun'
190
stun.Value=false
191
local defense=Instance.new('NumberValue',stats)
192
defense.Name='Defence'
193
defense.Value=defensevalue
194
local speed=Instance.new('NumberValue',stats)
195
speed.Name='Speed'
196
speed.Value=speedvalue
197
local damagea=Instance.new('NumberValue',stats)
198
damagea.Name='Damage'
199
damagea.Value=damagevalue
200
201
Humanoid = Character.Humanoid
202
if Humanoid:FindFirstChild("Animator")then
203
Humanoid:FindFirstChild("Animator"):Destroy()
204
end
205
206
Humanoid.WalkSpeed = 3
207
208
music = Instance.new("Sound", Torso)
209
music.SoundId = "http://www.roblox.com/asset/?id=182408067"
210
music.Volume = math.huge
211
music.Looped = true
212
wait(0.1)
213
music:Play()
214
215
Colorpart1 = Torso.BrickColor.r
216
Colorpart2 = Torso.BrickColor.g
217
Colorpart3 = Torso.BrickColor.b
218
219
CloakEffectLight2 = Instance.new("PointLight", Torso)
220
CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
221
CloakEffectLight2.Range = 10
222
CloakEffectLight2.Brightness = 10
223
CloakEffectLight2.Enabled = true
224
225
mouse=Player:GetMouse()
226
--save shoulders 
227
RSH, LSH=nil, nil 
228
--welds 
229
RW, LW=Instance.new("Motor"), Instance.new("Motor") 
230
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
231
LH=Torso["Left Hip"]
232
RH=Torso["Right Hip"]
233
TorsoColor=Torso.BrickColor
234
function NoOutline(Part)
235
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
236
end
237
player=Player 
238
ch=Character
239
RSH=ch.Torso["Right Shoulder"] 
240
LSH=ch.Torso["Left Shoulder"] 
241
-- 
242
RSH.Parent=nil 
243
LSH.Parent=nil 
244
-- 
245
RW.Name="Right Shoulder"
246
RW.Part0=ch.Torso 
247
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
248
RW.C1=cf(0, 0.5, 0) 
249
RW.Part1=ch["Right Arm"] 
250
RW.Parent=ch.Torso 
251
-- 
252
LW.Name="Left Shoulder"
253
LW.Part0=ch.Torso 
254
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
255
LW.C1=cf(0, 0.5, 0) 
256
LW.Part1=ch["Left Arm"] 
257
LW.Parent=ch.Torso 
258
259
	local function weldBetween(a, b)
260
	    local weldd = Instance.new("ManualWeld")
261
	    weldd.Part0 = a
262
	    weldd.Part1 = b
263
	    weldd.C0 = CFrame.new()
264
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
265
	    weldd.Parent = a
266
	    return weldd
267
	end
268
	
269
fat = Instance.new("BindableEvent", script)
270
fat.Name = "Heartbeat"
271
272
script:WaitForChild("Heartbeat")
273
274
frame = 1 / 30
275
tf = 0
276
allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
277
tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
278
lastframe = tick()
279
script.Heartbeat:Fire() --ayy lmao
280
281
game:GetService("RunService").Heartbeat:connect(function(s, p) --herp derp
282
	tf = tf + s
283
	if tf >= frame then
284
		if allowframeloss then
285
			script.Heartbeat:Fire()
286
			lastframe = tick()
287
		else
288
--print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
289
			for i = 1, math.floor(tf / frame) do
290
				script.Heartbeat:Fire()
291
			end
292
			lastframe = tick()
293
		end
294
		if tossremainder then
295
			tf = 0
296
		else
297
			tf = tf - frame * math.floor(tf / frame)
298
		end
299
	end
300
end)
301
302
--To use: fat.Event:fat.Event:wait() or fat.Event:connect(function() asdcode end)
303
304
local function CFrameFromTopBack(at, top, back)
305
local right = top:Cross(back)
306
return CFrame.new(at.x, at.y, at.z,
307
right.x, top.x, back.x,
308
right.y, top.y, back.y,
309
right.z, top.z, back.z)
310
end
311
312
function Triangle(a, b, c)
313
local edg1 = (c-a):Dot((b-a).unit)
314
local edg2 = (a-b):Dot((c-b).unit)
315
local edg3 = (b-c):Dot((a-c).unit)
316
if edg1 <= (b-a).magnitude and edg1 >= 0 then
317
a, b, c = a, b, c
318
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
319
a, b, c = b, c, a
320
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
321
a, b, c = c, a, b
322
else
323
assert(false, "unreachable")
324
end
325
 
326
local len1 = (c-a):Dot((b-a).unit)
327
local len2 = (b-a).magnitude - len1
328
local width = (a + (b-a).unit*len1 - c).magnitude
329
 
330
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
331
 
332
local list = {}
333
334
local TrailColor = ("Dark grey")
335
 
336
if len1 > 0.01 then
337
local w1 = Instance.new('WedgePart', m)
338
game:GetService("Debris"):AddItem(w1,5)
339
w1.Material = "SmoothPlastic"
340
w1.FormFactor = 'Custom'
341
w1.BrickColor = BrickColor.new(TrailColor)
342
w1.Transparency = 0
343
w1.Reflectance = 0
344
w1.Material = "SmoothPlastic"
345
w1.CanCollide = false
346
NoOutline(w1)
347
local sz = Vector3.new(0.2, width, len1)
348
w1.Size = sz
349
local sp = Instance.new("SpecialMesh",w1)
350
sp.MeshType = "Wedge"
351
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
352
w1:BreakJoints()
353
w1.Anchored = true
354
w1.Parent = workspace
355
w1.Transparency = 0.7
356
table.insert(Effects,{w1,"Disappear",.01})
357
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
358
table.insert(list,w1)
359
end
360
 
361
if len2 > 0.01 then
362
local w2 = Instance.new('WedgePart', m)
363
game:GetService("Debris"):AddItem(w2,5)
364
w2.Material = "SmoothPlastic"
365
w2.FormFactor = 'Custom'
366
w2.BrickColor = BrickColor.new(TrailColor)
367
w2.Transparency = 0
368
w2.Reflectance = 0
369
w2.Material = "SmoothPlastic"
370
w2.CanCollide = false
371
NoOutline(w2)
372
local sz = Vector3.new(0.2, width, len2)
373
w2.Size = sz
374
local sp = Instance.new("SpecialMesh",w2)
375
sp.MeshType = "Wedge"
376
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
377
w2:BreakJoints()
378
w2.Anchored = true
379
w2.Parent = workspace
380
w2.Transparency = 0.7
381
table.insert(Effects,{w2,"Disappear",.01})
382
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
383
table.insert(list,w2)
384
end
385
return unpack(list)
386
end
387
	
388
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
389
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
390
end 	
391
 
392
function clerp(a,b,t) 
393
local qa = {QuaternionFromCFrame(a)}
394
local qb = {QuaternionFromCFrame(b)} 
395
local ax, ay, az = a.x, a.y, a.z 
396
local bx, by, bz = b.x, b.y, b.z
397
local _t = 1-t
398
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
399
end
400
 
401
function QuaternionFromCFrame(cf) 
402
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
403
local trace = m00 + m11 + m22 
404
if trace > 0 then 
405
local s = math.sqrt(1 + trace) 
406
local recip = 0.5/s 
407
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
408
else 
409
local i = 0 
410
if m11 > m00 then
411
i = 1
412
end
413
if m22 > (i == 0 and m00 or m11) then 
414
i = 2 
415
end 
416
if i == 0 then 
417
local s = math.sqrt(m00-m11-m22+1) 
418
local recip = 0.5/s 
419
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
420
elseif i == 1 then 
421
local s = math.sqrt(m11-m22-m00+1) 
422
local recip = 0.5/s 
423
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
424
elseif i == 2 then 
425
local s = math.sqrt(m22-m00-m11+1) 
426
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
427
end 
428
end 
429
end
430
 
431
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
432
local xs, ys, zs = x + x, y + y, z + z 
433
local wx, wy, wz = w*xs, w*ys, w*zs 
434
local xx = x*xs 
435
local xy = x*ys 
436
local xz = x*zs 
437
local yy = y*ys 
438
local yz = y*zs 
439
local zz = z*zs 
440
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
441
end
442
 
443
function QuaternionSlerp(a, b, t) 
444
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
445
local startInterp, finishInterp; 
446
if cosTheta >= 0.0001 then 
447
if (1 - cosTheta) > 0.0001 then 
448
local theta = math.acos(cosTheta) 
449
local invSinTheta = 1/math.sin(theta) 
450
startInterp = math.sin((1-t)*theta)*invSinTheta 
451
finishInterp = math.sin(t*theta)*invSinTheta  
452
else 
453
startInterp = 1-t 
454
finishInterp = t 
455
end 
456
else 
457
if (1+cosTheta) > 0.0001 then 
458
local theta = math.acos(-cosTheta) 
459
local invSinTheta = 1/math.sin(theta) 
460
startInterp = math.sin((t-1)*theta)*invSinTheta 
461
finishInterp = math.sin(t*theta)*invSinTheta 
462
else 
463
startInterp = t-1 
464
finishInterp = t 
465
end 
466
end 
467
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
468
end
469
470
sitting=false
471
resting=false
472
meditating=false
473
sprint=false
474
475
mouse.Button1Down:connect(function()
476
end)
477
print'Only instinct left is survival.'
478
mouse.KeyDown:connect(function(k)
479
	k=k:lower()
480
	if k=='z' and attack==false and resting==false and sprint==false and meditating==false then
481
	attack=true
482
	if sitting==false then
483
	sitting=true
484
	Humanoid.WalkSpeed = 0
485
	for i=0,1,0.04 do
486
	fat.Event:wait()
487
	RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
488
	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
489
	RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
490
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
491
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
492
	LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
493
	end
494
	elseif sitting==true then
495
	sitting=false
496
	for i=0,1,0.04 do
497
	fat.Event:wait()
498
	RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
499
	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
500
	RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
501
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
502
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
503
	LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
504
	end
505
	Humanoid.WalkSpeed = 3
506
	end
507
	attack=false
508
	end
509
	if k=='x' and attack==false and sitting==false and sprint==false and meditating==false then
510
	attack=true
511
	if resting==false then
512
	resting=true
513
	Humanoid.WalkSpeed = 0
514
	for i=0,1,0.04 do
515
	fat.Event:wait()
516
	RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
517
	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
518
	RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
519
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
520
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
521
	LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
522
	end
523
	elseif resting==true then
524
	resting=false
525
	for i=0,1,0.04 do
526
	fat.Event:wait()
527
	RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
528
	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
529
	RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
530
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
531
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
532
	LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
533
	end
534
	Humanoid.WalkSpeed = 3
535
	end
536
	attack=false
537
	end
538
	if k=='c' and attack==false and sitting==false and resting==false and sprint==false then
539
	attack=true
540
	if meditating==false then
541
	meditating=true
542
	Humanoid.WalkSpeed = 0
543
	for i=0,1,0.04 do
544
	fat.Event:wait()
545
	RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
546
	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
547
	RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
548
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
549
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
550
	LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
551
	end
552
	elseif meditating==true then
553
	meditating=false
554
	for i=0,1,0.04 do
555
	fat.Event:wait()
556
	RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
557
	Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
558
	RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
559
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
560
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
561
	LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
562
	end
563
	Humanoid.WalkSpeed = 3
564
	end
565
	attack=false
566
	end
567
	if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==false then
568
	sprint=true
569
	Humanoid.WalkSpeed = 20
570
	end
571
end)
572
573
mouse.KeyUp:connect(function(k)
574
if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==true then
575
sprint=false
576
Humanoid.WalkSpeed = 3
577
end
578
end)
579
580
local sine = 0
581
local change = 1
582
local val = 0
583
584
fat.Event:connect(function()
585
sine = sine + change
586
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
587
local velderp=RootPart.Velocity.y
588
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
589
if equipped==true or equipped==false then
590
if attack==false then
591
idle=idle+1
592
else
593
idle=0
594
end
595
if idle>=500 then
596
if attack==false then
597
--Sheath()
598
end
599
end
600
if RootPart.Velocity.y > 1 and hitfloor==nil then 
601
Anim="Jump"
602
if attack==false then
603
change=1
604
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
605
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
606
RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),0.15)
607
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),0.15)
608
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
609
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
610
end
611
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
612
Anim="Fall"
613
if attack==false then
614
change=1
615
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
616
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
617
RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(10)),0.15)
618
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10)),0.15)
619
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
620
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
621
end
622
elseif torvel<1 and hitfloor~=nil then
623
Anim="Idle"
624
if attack==false and sitting==false and resting==false and meditating==false then
625
change=1
626
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
627
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
628
RW.C0=clerp(RW.C0,CFrame.new(1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(10+5*math.cos(sine/30))+ math.sin(sine/30)/20),0.15)
629
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10-5*math.cos(sine/30))+ -math.sin(sine/30)/20),0.15)
630
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
631
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
632
else
633
if attack==false and sitting==true and resting==false and meditating==false then
634
change=1
635
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
636
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
637
RW.C0=clerp(RW.C0,CFrame.new(1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(10)),0.15)
638
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10)),0.15)
639
RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
640
LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
641
else
642
if attack==false and sitting==false and resting==true and meditating==false then
643
change=1
644
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.3)*angles(math.rad(-80-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
645
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
646
RW.C0=clerp(RW.C0,CFrame.new(1,0.75,0.1)*angles(math.rad(215-1*math.cos(sine/30)),math.rad(0),math.rad(-45)),0.15)
647
LW.C0=clerp(LW.C0,CFrame.new(-1,0.75,0.1)*angles(math.rad(200-1*math.cos(sine/30)),math.rad(0),math.rad(45)),0.15)
648
RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(25-1*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
649
LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(10-1*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
650
else
651
if attack==false and sitting==false and resting==false and meditating==true then
652
change=1
653
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(10-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
654
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
655
RW.C0=clerp(RW.C0,CFrame.new(1.25,0.5,-0.5)*angles(math.rad(0),math.rad(165),math.rad(90)),0.15)
656
LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.5,-0.5)*angles(math.rad(0),math.rad(-165),math.rad(-90)),0.15)
657
RH.C0=clerp(RH.C0,cf(1,-1,0.1)*angles(math.rad(-30),math.rad(75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
658
LH.C0=clerp(LH.C0,cf(-1,-1,0.1)*angles(math.rad(-30),math.rad(-75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
659
end
660
end
661
end
662
end
663
elseif torvel>2 and torvel<22 and hitfloor~=nil then
664
Anim="Walk"
665
if attack==false and sprint==false then
666
change=0.5
667
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
668
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
669
RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
670
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
671
RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-15*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
672
LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+15*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
673
elseif attack==false and sprint==true then
674
change=1
675
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
676
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
677
RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
678
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
679
RH.C0=clerp(RH.C0,cf(1,-0.9-0.25*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
680
LH.C0=clerp(LH.C0,cf(-1,-0.9+0.25*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
681
end
682
elseif torvel<22 and hitfloor~=nil then
683
Anim="Run"
684
if attack==false then
685
end
686
end
687
end
688
end)
689
690
--Created with PenguinAnonymous's compiler
691
--PenguinAnonymous is not responsible for damages caused to your game
692
--This plugin does not remove things
693
--PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
694
--Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
695
--Thank you for using my plugin and enjoy :)
696
--It is free to use
697
--If you use this plugin to create your own, please give me credit
698
--Errors: 
699
local runDummyScript = function(f,scri)
700
local oldenv = getfenv(f)
701
local newenv = setmetatable({}, {
702
__index = function(_, k)
703
if k:lower() == 'script' then
704
return scri
705
else
706
return oldenv[k]
707
end
708
end
709
})
710
setfenv(f, newenv)
711
ypcall(function() f() end)
712
end
713
cors = {}
714
mas = Instance.new("Model",game:GetService("Lighting")) 
715
mas.Name = "CompiledModel"
716
o1 = Instance.new("Tool")
717
o2 = Instance.new("Part")
718
o3 = Instance.new("Sound")
719
o4 = Instance.new("SpecialMesh")
720
o5 = Instance.new("Sound")
721
o6 = Instance.new("Sound")
722
o7 = Instance.new("Fire")
723
o8 = Instance.new("PointLight")
724
o9 = Instance.new("Smoke")
725
o10 = Instance.new("ParticleEmitter")
726
o11 = Instance.new("PointLight")
727
o12 = Instance.new("ParticleEmitter")
728
o13 = Instance.new("LocalScript")
729
o14 = Instance.new("Animation")
730
o15 = Instance.new("Animation")
731
o16 = Instance.new("Animation")
732
o17 = Instance.new("Script")
733
o18 = Instance.new("ParticleEmitter")
734
o19 = Instance.new("PointLight")
735
o20 = Instance.new("ParticleEmitter")
736
o1.Name = "ChargedFireball"
737
o1.Parent = mas
738
o1.TextureId = "http://www.roblox.com/asset/?id=318924325"
739
o1.GripRight = Vector3.new(0, -1, 0)
740
o1.GripUp = Vector3.new(1, 0, 0)
741
o1.ToolTip = "Fireball"
742
o1.CanBeDropped = false
743
o2.Name = "Handle"
744
o2.Parent = o1
745
o2.BrickColor = BrickColor.new("Bright blue")
746
o2.Transparency = 1
747
o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
748
o2.Rotation = Vector3.new(-90, 0, -90)
749
o2.RotVelocity = Vector3.new(1, 1, 1)
750
o2.Locked = true
751
o2.FormFactor = Enum.FormFactor.Symmetric
752
o2.Shape = Enum.PartType.Ball
753
o2.Size = Vector3.new(1, 1, 1)
754
o2.CFrame = CFrame.new(4.70000029, 2086, -3.10000014, 0, 1, 0, 0, 0, 1, 1, 0, 0)
755
o2.BottomSurface = Enum.SurfaceType.Smooth
756
o2.TopSurface = Enum.SurfaceType.Smooth
757
o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
758
o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
759
o2.Orientation = Vector3.new(-90, -90, 0)
760
o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
761
o3.Name = "ExplodeSound"
762
o3.Parent = o2
763
o3.SoundId = "http://www.roblox.com/asset/?id=163277488"
764
o3.Volume = math.huge
765
o4.Parent = o2
766
o4.MeshType = Enum.MeshType.Sphere
767
o5.Name = "ChargeSound"
768
o5.Parent = o2
769
o5.SoundId = "http://www.roblox.com/asset/?id=339027743"
770
o5.Volume = math.huge
771
o6.Name = "FireSound"
772
o6.Parent = o2
773
o6.SoundId = "http://www.roblox.com/asset/?id=137304720"
774
o6.Volume = 1
775
o7.Parent = o2
776
o7.Size = 3
777
o7.Color = Color3.new(178, 138, 239)
778
o7.Enabled = false
779
o7.Heat = 0
780
o7.Color = Color3.new(178, 138, 239)
781
o8.Parent = o2
782
o8.Color = Color3.new(178, 138, 239)
783
o8.Enabled = false
784
o8.Shadows = true
785
o8.Color = Color3.new(178, 138, 239)
786
o9.Parent = o2
787
o9.Size = 0.10000000149012
788
o9.Color = Color3.new(178, 138, 239)
789
o9.Enabled = false
790
o9.RiseVelocity = 0
791
o9.Color = Color3.new(178, 138, 239)
792
o10.Name = "Fire"
793
o10.Parent = o2
794
o10.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
795
o10.Rotation = NumberRange.new(-180,180)
796
o10.Size = NumberSequence.new(1.25,2)
797
o10.Color = ColorSequence.new(Color3.new(178, 138, 239),Color3.new(178, 138, 239))
798
o10.LightEmission = 1
799
o10.Texture = "http://www.roblox.com/asset/?id=1057317572"
800
o10.ZOffset = 1
801
o10.Acceleration = Vector3.new(0, 12.5, 0)
802
o10.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
803
o10.Rate = 50
804
o10.RotSpeed = NumberRange.new(-180,180)
805
o10.Speed = NumberRange.new(0,0)
806
o10.VelocitySpread = 0
807
o10.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
808
o11.Name = "Light"
809
o11.Parent = o2
810
o11.Color = Color3.new(1, 0.654902, 0.235294)
811
o11.Shadows = true
812
o11.Color = Color3.new(1, 0.654902, 0.235294)
813
o12.Name = "Sparks"
814
o12.Parent = o2
815
o12.Size = NumberSequence.new(0.625,0)
816
o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
817
o12.LightEmission = 1
818
o12.Texture = "http://www.roblox.com/asset/?id=1057317572"
819
o12.ZOffset = 1
820
o12.Acceleration = Vector3.new(0, 10, 0)
821
o12.Lifetime = NumberRange.new(0.5,0.82499998807907)
822
o12.Rate = 50
823
o12.Speed = NumberRange.new(1,3)
824
o12.VelocitySpread = 180
825
o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
826
o13.Parent = o1
827
table.insert(cors,coroutine.create(function()
828
wait()
829
runDummyScript(function()
830
--Originally by Stickmasterluke, modified by BombHunter2000
831
832
833
sp=script.Parent
834
plr=game.Players.localPlayer
835
836
--Bomb--
837
damage={inf,inf}
838
firerate=2
839
bombvelocity=100
840
chargetime=4
841
extrasize=4
842
--------
843
844
rate=1/30
845
debris=game:GetService("Debris")
846
equipped=false
847
check=true
848
849
function waitfor(a,b)
850
	while a:FindFirstChild(b)==nil do
851
		a.ChildAdded:wait()
852
	end
853
	return a:FindFirstChild(b)
854
end
855
856
local anim2=waitfor(sp,"ChargeEnergyBall")
857
local anim3=waitfor(sp,"RightSlash")
858
859
function onEquipped(mouse)
860
	sp.Handle.Transparency=1
861
	equipped=true
862
	if chargeanim~=nil then
863
		chargeanim:Stop()
864
	end
865
	if mouse~=nil then
866
		mouse.Icon="rbxasset://textures\\GunCursor.png"
867
		mouse.Button1Down:connect(function()
868
			down=true
869
			local he=sp.Parent:FindFirstChild("Head")
870
			local hu=sp.Parent:FindFirstChild("Humanoid")
871
			if check and he and hu and hu.Health>0 then
872
				check=false
873
				mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
874
				starttime=tick()
875
				lv=he.CFrame.lookVector
876
				local mesh=sp.Handle:FindFirstChild("Mesh")
877
				if mesh~=nil then
878
					mesh.Scale=Vector3.new(1,1,1)
879
				end
880
				local fire=sp.Handle:FindFirstChild("Fire")
881
				if fire~=nil then
882
					fire.Size=0
883
					fire.Enabled=true
884
				end
885
				local light=sp.Handle:FindFirstChild("PointLight")
886
				if light~=nil then
887
					light.Range=0
888
					light.Enabled=true
889
				end
890
				local smoke=sp.Handle:FindFirstChild("Smoke")
891
				if smoke~=nil then
892
					smoke.Size=0
893
					smoke.Enabled=false
894
				end
895
				if chargeanim~=nil then
896
					chargeanim:Stop()
897
				end
898
				chargeanim=hu:LoadAnimation(anim2)
899
				if chargeanim then
900
					chargeanim:Play()
901
				end
902
				local lastchargesound=0
903
				while down and equipped and tick()-starttime<chargetime and hu~=nil and hu.Health>0 do
904
					local percent=(tick()-starttime)/chargetime
905
					sp.Handle.Transparency=1+(math.random()*.3)
906
					local mesh=sp.Handle:FindFirstChild("Mesh")
907
					if mesh~=nil then
908
						mesh.Scale=Vector3.new(1,1,1)+(Vector3.new(1,1,1)*extrasize*percent)
909
					end
910
					local fire=sp.Handle:FindFirstChild("Fire")
911
					if fire~=nil then
912
						fire.Size=percent*extrasize*2
913
					end
914
					local light=sp.Handle:FindFirstChild("PointLight")
915
					if light~=nil then
916
						light.Range=percent*extrasize*4
917
					end
918
					local smoke=sp.Handle:FindFirstChild("Smoke")
919
					if smoke~=nil then
920
						smoke.Size=percent*extrasize*.2
921
					end
922
					if tick()-lastchargesound>5 then
923
						lastchargesound=tick()
924
						local sound=sp.Handle:FindFirstChild("ChargeSound")
925
						if sound~=nil then
926
							sound:Play()
927
						end
928
					end
929
					wait()
930
				end
931
				sp.GripPos=Vector3.new(0,0,0)
932
				sp.Handle.Transparency=1
933
				throwanim=hu:LoadAnimation(anim3)
934
				if throwanim then
935
					throwanim:Play(0,1,8)
936
				end
937
				local sound=sp.Handle:FindFirstChild("ChargeSound")
938
				if sound~=nil then
939
					sound:Stop()
940
				end
941
				local sound=sp.Handle:FindFirstChild("FireSound")
942
				if sound~=nil then
943
					sound:Play()
944
				end
945
				local fire=sp.Handle:FindFirstChild("Fire")
946
				if fire~=nil then
947
					fire.Enabled=false
948
				end
949
				local smoke=sp.Handle:FindFirstChild("Smoke")
950
				if smoke~=nil then
951
					smoke.Enabled=false
952
				end
953
				local light=sp.Handle:FindFirstChild("PointLight")
954
				if light~=nil then
955
					light.Enabled=false
956
				end
957
				local shot=sp.Handle:clone()
958
				if chargeanim~=nil then
959
					chargeanim:Stop()
960
				end
961
				local fire=shot:FindFirstChild("Fire")
962
				if fire~=nil then
963
					fire.Enabled=true
964
				end
965
				local smoke=shot:FindFirstChild("Smoke")
966
				if smoke~=nil then
967
					smoke.Enabled=true
968
				end
969
				local light=shot:FindFirstChild("PointLight")
970
				if light~=nil then
971
					light.Enabled=true
972
				end
973
				local percent=math.min(math.max((tick()-starttime)/chargetime,0),1)
974
				local size=(1+(extrasize*percent))
975
				shot.Size=Vector3.new(1,1,1)*size
976
				shot.Mesh.Scale=Vector3.new(1,1,1)*(size/shot.Size.Y)
977
				shot.Name="Effect"
978
				shot.CanCollide=false
979
				shot.Transparency=1
980
				if mouse~=nil then
981
					shot.Velocity=((mouse.Hit.p-shot.Position).unit)*bombvelocity
982
				else
983
					shot.Velocity=lv*bombvelocity
984
				end
985
				shot.RotVelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*20
986
				local bf=Instance.new("BodyForce")
987
				bf.force=Vector3.new(0,shot:GetMass()*196.2,0)
988
				bf.Parent=shot
989
				shot.Touched:connect(function(hit)
990
					if shot~=nil and shot.Transparency~=10 and hit~=nil and string.lower(string.sub(hit.Name,1,6))~="effect" then
991
						if not hit:IsDescendantOf(sp.Parent) then
992
							local hum=hit.Parent:FindFirstChild("Humanoid")
993
							if hum~=nil then
994
								for _,v in pairs(hum:GetChildren()) do
995
									if v~=nil and v.Name=="creator" then
996
										v:remove()
997
									end
998
								end
999
								local ct=Instance.new("ObjectValue")
1000
								ct.Name="creator"
1001
								ct.Value=game.Players.LocalPlayer
1002
								ct.Parent=hum
1003
								hum:TakeDamage(damage[1]+(percent*(damage[2]-damage[1])))
1004
							end
1005
							local explosion = Instance.new('Explosion')
1006
							explosion.BlastPressure = percent*extrasize*5
1007
							explosion.BlastRadius = percent*extrasize*2
1008
							explosion.Position = shot.Position
1009
							explosion.Parent = game.Workspace
1010
							local sound=shot:FindFirstChild("ExplodeSound")
1011
							if sound~=nil then
1012
								sound.Volume=.5+(.5*percent)
1013
								sound:Play()
1014
							end
1015
							shot.Transparency=1
1016
							shot.Anchored=true
1017
							local fire=shot:FindFirstChild("Fire")
1018
							if fire~=nil then
1019
								fire.Enabled=false
1020
							end
1021
							local smoke=shot:FindFirstChild("Smoke")
1022
							if smoke~=nil then
1023
								smoke.Enabled=false
1024
							end
1025
							local light=shot:FindFirstChild("PointLight")
1026
							if light~=nil then
1027
								light.Enabled=false
1028
							end
1029
							wait(.1)
1030
							if shot~=nil then
1031
								shot:remove()
1032
							end
1033
						end
1034
					end
1035
				end)
1036
				debris:AddItem(shot,14)
1037
				shot.Parent=game.Workspace
1038
				wait(firerate)
1039
				mouse.Icon="rbxasset://textures\\GunCursor.png"
1040
				check=true
1041
			end
1042
		end)
1043
		mouse.Button1Up:connect(function()
1044
			down=false
1045
		end)
1046
	end
1047
end
1048
1049
function onUnequipped()
1050
	equipped=false
1051
end
1052
1053
-- Waits for the child of the specified parent
1054
local function WaitForChild(parent, childName)
1055
	while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
1056
	return parent[childName]
1057
end
1058
1059
local Tool = script.Parent
1060
1061
local Animations = {}
1062
local MyHumanoid
1063
local MyCharacter
1064
1065
1066
local function PlayAnimation(animationName)
1067
	if Animations[animationName] then
1068
		Animations[animationName]:Play()
1069
	end
1070
end
1071
1072
local function StopAnimation(animationName)
1073
	if Animations[animationName] then
1074
		Animations[animationName]:Stop()
1075
	end
1076
end
1077
1078
1079
function OnEquipped(mouse)
1080
	MyCharacter = Tool.Parent
1081
	MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
1082
	if MyHumanoid then
1083
		
1084
		Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim3'))
1085
	end
1086
	PlayAnimation('IdleAnim')
1087
end
1088
1089
function OnUnequipped()
1090
	for animName, _ in pairs(Animations) do
1091
		StopAnimation(animName)
1092
	end
1093
end
1094
1095
Tool.Equipped:connect(OnEquipped)
1096
Tool.Unequipped:connect(OnUnequipped)
1097
1098
sp.Equipped:connect(onEquipped)
1099
sp.Unequipped:connect(onUnequipped)
1100
1101
1102
1103
1104
1105
1106
end,o13)
1107
end))
1108
o14.Name = "ChargeEnergyBall"
1109
o14.Parent = o1
1110
o14.AnimationId = "http://www.roblox.com/Asset?ID=30257281"
1111
o15.Name = "IdleAnim3"
1112
o15.Parent = o1
1113
o15.AnimationId = "http://www.roblox.com/asset/?id=69427262"
1114
o16.Name = "RightSlash"
1115
o16.Parent = o1
1116
o16.AnimationId = "http://www.roblox.com/asset?id=187564515"
1117
o17.Name = "FireTool"
1118
o17.Parent = o1
1119
table.insert(cors,coroutine.create(function()
1120
wait()
1121
runDummyScript(function()
1122
-- Scripted by duncan778
1123
1124
local Tool = script.Parent;
1125
enabled = true
1126
1127
function fire(v)
1128
	local vCharacter = Tool.Parent
1129
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
1130
1131
	local missile = Instance.new("Part")
1132
1133
	local spawnPos = Tool.Handle.Position
1134
	spawnPos  = spawnPos + (v * 4)
1135
	
1136
	missile.Position = spawnPos
1137
	missile.Size = Vector3.new(1,1,1)
1138
	missile.Velocity = v * 85
1139
	missile.Shape = 0
1140
	missile.BottomSurface = 0
1141
	missile.TopSurface = 0
1142
	missile.Name = "Firebolt"
1143
	missile.Transparency = 1
1144
	missile.CanCollide = false
1145
	
1146
	local f = script.Fire:clone()
1147
	f.Parent = missile
1148
	f.Enabled = true
1149
	local s = script.Sparks:clone()
1150
	s.Parent = missile
1151
	s.Enabled = true
1152
	local l = script.Light:clone()
1153
	l.Parent = missile
1154
	l.Enabled = true
1155
1156
	local force = Instance.new("BodyForce")
1157
	force.force = Vector3.new(0,100,0)
1158
	force.Parent = missile
1159
1160
	local creator_tag = Instance.new("ObjectValue")
1161
	creator_tag.Value = vPlayer
1162
	creator_tag.Name = "creator"
1163
	creator_tag.Parent = missile
1164
	
1165
	local new_script = Tool.BurnScript:clone()
1166
	new_script.Parent = missile
1167
	new_script.Disabled = false
1168
	
1169
	local CreatorTag = Instance.new("StringValue")
1170
	CreatorTag.Name = "CreatorTag"
1171
	CreatorTag.Value = Tool.Parent.Name	
1172
	CreatorTag.Parent = missile
1173
	
1174
	missile.Parent = game.Workspace
1175
end
1176
1177
function gunUp()
1178
	Tool.Handle.Fire.Enabled = false
1179
	Tool.Handle.Sparks.Enabled = false
1180
	Tool.Handle.Light.Enabled = false
1181
end
1182
1183
function gunOut()
1184
	Tool.Handle.Fire.Enabled = true
1185
	Tool.Handle.Sparks.Enabled = true
1186
	Tool.Handle.Light.Enabled = true
1187
end
1188
1189
function onActivated()
1190
	if not enabled  then
1191
	return
1192
	end
1193
	enabled = false
1194
	local character = Tool.Parent;
1195
	local humanoid = character.Humanoid
1196
	if humanoid == nil then
1197
	print("Humanoid not found")
1198
	return 
1199
	end
1200
	local targetPos = humanoid.TargetPoint
1201
	local lookAt = (targetPos - character.Head.Position).unit	
1202
	
1203
	local reload = 5
1204
	
1205
	gunUp()
1206
	fire(lookAt)
1207
	wait(reload)
1208
	gunOut()
1209
	wait()
1210
	enabled = true
1211
end
1212
1213
script.Parent.Activated:connect(onActivated)
1214
1215
end,o17)
1216
end))
1217
o18.Name = "Sparks"
1218
o18.Parent = o17
1219
o18.Size = NumberSequence.new(0.625,0)
1220
o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
1221
o18.Enabled = false
1222
o18.LightEmission = 1
1223
o18.Texture = "http://www.roblox.com/asset/?id=298984512"
1224
o18.ZOffset = 1
1225
o18.Acceleration = Vector3.new(0, -5, 0)
1226
o18.Lifetime = NumberRange.new(1,2)
1227
o18.Rate = 75
1228
o18.Speed = NumberRange.new(6,8)
1229
o18.VelocitySpread = 65
1230
o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
1231
o19.Name = "Light"
1232
o19.Parent = o17
1233
o19.Color = Color3.new(1, 0.654902, 0.235294)
1234
o19.Brightness = 1.5
1235
o19.Range = 12
1236
o19.Shadows = true
1237
o19.Color = Color3.new(1, 0.654902, 0.235294)
1238
o20.Name = "Fire"
1239
o20.Parent = o17
1240
o20.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
1241
o20.Rotation = NumberRange.new(-180,180)
1242
o20.Size = NumberSequence.new(2.5,3.75)
1243
o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
1244
o20.Enabled = false
1245
o20.LightEmission = 0.625
1246
o20.Texture = "http://www.roblox.com/asset/?id=301811459"
1247
o20.ZOffset = 1
1248
o20.Acceleration = Vector3.new(0, 12.5, 0)
1249
o20.Lifetime = NumberRange.new(0.40000000596046,0.80000001192093)
1250
o20.Rate = 125
1251
o20.RotSpeed = NumberRange.new(-180,180)
1252
o20.Speed = NumberRange.new(0,0)
1253
o20.VelocitySpread = 180
1254
o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
1255
mas.Parent = workspace
1256
mas:MakeJoints()
1257
local mas1 = mas:GetChildren()
1258
for i=1,#mas1 do
1259
	mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack 
1260
	ypcall(function() mas1[i]:MakeJoints() end)
1261
end
1262
mas:Destroy()
1263
for i=1,#cors do
1264
coroutine.resume(cors[i])
1265
end