View difference between Paste ID: hJaNbHzQ and eFAYMqKr
SHOW: | | - or go back to the newest paste.
1
--[[
2
==================================]}
3
//{Script: Memuto          
4
//{User: Solavenge               
5
==================================]}
6
//{Controls:              
7
// F - Toggle Memes
8
==================================]}
9
--]]
10
11
Player=game:GetService("Players").LocalPlayer
12
local WEEB = Instance.new("Sound",Torso)
13
WEEB.Volume=0
14
WEEB.Pitch=0
15
WEEB.SoundId="http://www.roblox.com/asset/?id=1009682087"
16
WEEB.Looped=true
17
wait() 
18
WEEB:play()
19
Character=Player.Character 
20
PlayerGui=Player.PlayerGui 
21
Backpack=Player.Backpack 
22
Torso=Character.Torso 
23
Head=Character.Head 
24
Humanoid=Character.Humanoid
25
m=Instance.new('Model',Character)
26
LeftArm=Character["Left Arm"] 
27
LeftLeg=Character["Left Leg"] 
28
RightArm=Character["Right Arm"] 
29
RightLeg=Character["Right Leg"] 
30
LS=Torso["Left Shoulder"] 
31
LH=Torso["Left Hip"] 
32
RS=Torso["Right Shoulder"] 
33
RH=Torso["Right Hip"] 
34
Neck=Torso.Neck
35
it=Instance.new
36
attacktype=1
37
vt=Vector3.new
38
cf=CFrame.new
39
euler=CFrame.fromEulerAnglesXYZ
40
angles=CFrame.Angles
41
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
42
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
43
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
44
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
45
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
46
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
47
RootPart=Character.HumanoidRootPart
48
RootJoint=RootPart.RootJoint
49
RootCF=euler(-1.57,0,3.14)
50
attack = false 
51
attackdebounce = false 
52
deb=false
53
equipped=true
54
hand=false
55
MMouse=nil
56
combo=0
57
mana=0
58
cam=workspace.CurrentCamera
59
RocketTarget=nil
60
Targetting=false
61
trispeed=.2
62
attackmode='none'
63
local idle=0
64
local Anim="Idle"
65
local Effects={}
66
local gun=false
67
local shoot=false
68
local issprinting=false
69
local memeing=false
70
player=nil 
71
mouse=Player:GetMouse()
72
--save shoulders 
73
RSH, LSH=nil, nil 
74
--welds 
75
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
76
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
77
LH=Torso["Left Hip"]
78
RH=Torso["Right Hip"]
79
TorsoColor=Torso.BrickColor
80
function NoOutline(Part)
81
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
82
end
83
player=Player 
84
ch=Character
85
RSH=ch.Torso["Right Shoulder"] 
86
LSH=ch.Torso["Left Shoulder"] 
87
-- 
88
RSH.Parent=nil 
89
LSH.Parent=nil 
90
-- 
91
RW.Name="Right Shoulder"
92
RW.Part0=ch.Torso 
93
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
94
RW.C1=cf(0, 0.5, 0) 
95
RW.Part1=ch["Right Arm"] 
96
RW.Parent=ch.Torso 
97
-- 
98
LW.Name="Left Shoulder"
99
LW.Part0=ch.Torso 
100
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
101
LW.C1=cf(0, 0.5, 0) 
102
LW.Part1=ch["Left Arm"] 
103
LW.Parent=ch.Torso 
104
105
if Humanoid:findFirstChild("Animate") then
106
  Humanoid:findFirstChild("Animate"):Destroy()
107
elseif Character:findFirstChild("Animate") then
108
  Character:findFirstChild("Animate"):Destroy()
109
end
110
111
112
local WEEB = Instance.new("Sound",Torso)
113
WEEB.Volume=0
114
WEEB.Pitch=0
115
WEEB.SoundId="http://www.roblox.com/asset/?id=1120289188"
116
WEEB.Looped=true
117
wait() 
118
WEEB:play() 
119
120
121
local Stats=Instance.new("BoolValue")
122
Stats.Name="Stats"
123
Stats.Parent=Character
124
local Atk=Instance.new("NumberValue")
125
Atk.Name="Damage"
126
Atk.Parent=Stats
127
Atk.Value=1
128
local Def=Instance.new("NumberValue")
129
Def.Name="Defense"
130
Def.Parent=Stats
131
Def.Value=1
132
local Speed=Instance.new("NumberValue")
133
Speed.Name="Speed"
134
Speed.Parent=Stats
135
Speed.Value=1
136
local Mvmt=Instance.new("NumberValue")
137
Mvmt.Name="Movement"
138
Mvmt.Parent=Stats
139
Mvmt.Value=1
140
141
142
local donum=0
143
144
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
145
local fp=it("Part")
146
fp.formFactor=formfactor 
147
fp.Parent=parent
148
fp.Reflectance=reflectance
149
fp.Transparency=transparency
150
fp.CanCollide=false 
151
fp.Locked=true
152
fp.BrickColor=brickcolor
153
fp.Name=name
154
fp.Size=size
155
fp.Position=Torso.Position 
156
NoOutline(fp)
157
fp.Material="SmoothPlastic"
158
fp:BreakJoints()
159
return fp 
160
end 
161
162
function part2(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
163
	local fp = Instance.new("Part")
164
		fp.formFactor = formfactor
165
		fp.Parent = parent
166
		fp.Reflectance = reflectance
167
		fp.Transparency = transparency
168
		fp.CanCollide = false
169
		fp.Locked = true
170
		fp.BrickColor = BrickColor.new(tostring(brickcolor))
171
		fp.Name = name
172
		fp.Size = size
173
		fp.Position = Character.Torso.Position
174
		fp.Material = material
175
	
176
	NoOutline(fp)
177
	return fp
178
end
179
 
180
function mesh(Mesh,part,meshtype,meshid,offset,scale)
181
local mesh=it(Mesh) 
182
mesh.Parent=part
183
if Mesh=="SpecialMesh" then
184
mesh.MeshType=meshtype
185
mesh.MeshId=meshid
186
end
187
mesh.Offset=offset
188
mesh.Scale=scale
189
return mesh
190
end
191
 
192
function weld(parent,part0,part1,c0)
193
local weld=it("Weld") 
194
weld.Parent=parent
195
weld.Part0=part0 
196
weld.Part1=part1 
197
weld.C0=c0
198
return weld
199
end
200
201
function weld2(parent, part0, part1, c0, c1)
202
	local Weld = Instance.new("Weld")
203
		Weld.Parent = parent
204
		Weld.Part0 = part0
205
		Weld.Part1 = part1
206
		Weld.C0 = c0
207
		Weld.C1 = c1
208
	
209
	return Weld
210
end
211
 
212
local Color1=Torso.BrickColor
213
214
local bodvel=Instance.new("BodyVelocity")
215
local bg=Instance.new("BodyGyro")
216
217
ArtificialHB = Instance.new("BindableEvent", script)
218
ArtificialHB.Name = "Heartbeat"
219
220
script:WaitForChild("Heartbeat")
221
222
frame = 1 / 60 
223
tf = 0
224
allowframeloss = true
225
tossremainder = false
226
lastframe = tick()
227
script.Heartbeat:Fire()
228
229
game:GetService("RunService").Heartbeat:connect(function(s, p)
230
    tf = tf + s
231
    if tf >= frame then
232
        if allowframeloss then
233
            script.Heartbeat:Fire()
234
            lastframe = tick()
235
        else
236
            for i = 1, math.floor(tf / frame) do
237
                script.Heartbeat:Fire()
238
            end
239
            lastframe = tick()
240
        end
241
        if tossremainder then
242
            tf = 0
243
        else
244
            tf = tf - frame * math.floor(tf / frame)
245
        end
246
    end
247
end)
248
249
function swait(num)
250
    if num == 0 or num == nil then
251
        ArtificialHB.Event:wait()
252
    else
253
        for i = 0, num do
254
            ArtificialHB.Event:wait()
255
        end
256
    end
257
end
258
 
259
 
260
so = function(id,par,vol,pit) 
261
coroutine.resume(coroutine.create(function()
262
local sou = Instance.new("Sound",par or workspace)
263
sou.Volume=vol
264
sou.Pitch=pit or 1
265
sou.SoundId=id
266
swait() 
267
sou:play() 
268
game:GetService("Debris"):AddItem(sou,6)
269
end))
270
end
271
 
272
function clerp(a,b,t) 
273
local qa = {QuaternionFromCFrame(a)}
274
local qb = {QuaternionFromCFrame(b)} 
275
local ax, ay, az = a.x, a.y, a.z 
276
local bx, by, bz = b.x, b.y, b.z
277
local _t = 1-t
278
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
279
end 
280
 
281
function QuaternionFromCFrame(cf) 
282
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
283
local trace = m00 + m11 + m22 
284
if trace > 0 then 
285
local s = math.sqrt(1 + trace) 
286
local recip = 0.5/s 
287
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
288
else 
289
local i = 0 
290
if m11 > m00 then
291
i = 1
292
end
293
if m22 > (i == 0 and m00 or m11) then 
294
i = 2 
295
end 
296
if i == 0 then 
297
local s = math.sqrt(m00-m11-m22+1) 
298
local recip = 0.5/s 
299
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
300
elseif i == 1 then 
301
local s = math.sqrt(m11-m22-m00+1) 
302
local recip = 0.5/s 
303
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
304
elseif i == 2 then 
305
local s = math.sqrt(m22-m00-m11+1) 
306
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
307
end 
308
end 
309
end
310
 
311
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
312
local xs, ys, zs = x + x, y + y, z + z 
313
local wx, wy, wz = w*xs, w*ys, w*zs 
314
local xx = x*xs 
315
local xy = x*ys 
316
local xz = x*zs 
317
local yy = y*ys 
318
local yz = y*zs 
319
local zz = z*zs 
320
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)) 
321
end
322
 
323
function QuaternionSlerp(a, b, t) 
324
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
325
local startInterp, finishInterp; 
326
if cosTheta >= 0.0001 then 
327
if (1 - cosTheta) > 0.0001 then 
328
local theta = math.acos(cosTheta) 
329
local invSinTheta = 1/math.sin(theta) 
330
startInterp = math.sin((1-t)*theta)*invSinTheta 
331
finishInterp = math.sin(t*theta)*invSinTheta  
332
else 
333
startInterp = 1-t 
334
finishInterp = t 
335
end 
336
else 
337
if (1+cosTheta) > 0.0001 then 
338
local theta = math.acos(-cosTheta) 
339
local invSinTheta = 1/math.sin(theta) 
340
startInterp = math.sin((t-1)*theta)*invSinTheta 
341
finishInterp = math.sin(t*theta)*invSinTheta 
342
else 
343
startInterp = t-1 
344
finishInterp = t 
345
end 
346
end 
347
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 
348
end
349
350
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
351
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
352
end 
353
354
Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) --bm1
355
	if hit.Parent == nil then
356
		return
357
	end
358
	local h = hit.Parent:FindFirstChild("Humanoid")
359
	for _, v in pairs(hit.Parent:children()) do
360
		if v:IsA("Humanoid") then
361
			h = v
362
		end
363
	end
364
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
365
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
366
			if hit.Parent.DebounceHit.Value == true then
367
				return
368
			end
369
		end
370
		if h.MaxHealth >= math.huge then
371
			hit:BreakJoints()
372
		end
373
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
374
                        return
375
                end]]
376
--                        hs(hit,1.2) 
377
		local c = Instance.new("ObjectValue")
378
			c.Name = "creator"
379
			c.Value = game:service("Players").LocalPlayer
380
			c.Parent = h
381
		
382
		game:GetService("Debris"):AddItem(c, .5)
383
		if HitSound ~= nil and HitPitch ~= nil then
384
			so(HitSound, hit, 1, HitPitch) 
385
		end
386
		local Damage = math.random(minim, maxim)
387
--                h:TakeDamage(Damage)
388
		local blocked = false
389
		local block = hit.Parent:findFirstChild("Block")
390
		if block ~= nil then
391
			if block.className == "IntValue" then
392
				if block.Value > 0 then
393
					blocked = true
394
					block.Value = block.Value - 1
395
					print(block.Value)
396
				end
397
			end
398
		end
399
		if blocked == false then
400
--                h:TakeDamage(Damage)
401
			h.Health = h.Health - Damage
402
			if Damage ~= 0 then
403
			ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
404
			end
405
		else
406
			h.Health = h.Health - (Damage / 2)
407
			if Damage ~=0 then
408
			ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
409
			end
410
		end
411
		if Type == "Knockdown" then
412
			local hum = hit.Parent.Humanoid
413
			hum.PlatformStand = true
414
			coroutine.resume(coroutine.create(function(HHumanoid)
415
				swait(1)
416
				HHumanoid.PlatformStand = false
417
			end), hum)
418
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
419
			local bodvol = Instance.new("BodyVelocity")
420
				bodvol.velocity = angle * knockback
421
				bodvol.P = 5000
422
				bodvol.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
423
				bodvol.Parent = hit
424
			
425
			local rl = Instance.new("BodyAngularVelocity")
426
				rl.P = 3000
427
				rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
428
				rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
429
				rl.Parent = hit
430
			
431
			game:GetService("Debris"):AddItem(bodvol, .5)
432
			game:GetService("Debris"):AddItem(rl, .5)
433
		elseif Type == "Plat" then
434
			local hum = hit.Parent.Humanoid
435
			hum.PlatformStand = true
436
			coroutine.resume(coroutine.create(function(HHumanoid)
437
				swait(2)
438
				HHumanoid.PlatformStand = false
439
			end), hum)
440
441
			local rl = Instance.new("BodyAngularVelocity")
442
				rl.P = 3000
443
				rl.maxTorque = Vector3.new(100, 100, 100) * 500
444
				rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
445
				rl.Parent = hit
446
				
447
			game:GetService("Debris"):AddItem(rl, .5)
448
		elseif Type == "Normal" then
449
			local vp = Instance.new("BodyVelocity")
450
				vp.P = 500
451
				vp.maxForce = Vector3.new(math.huge, 0, math.huge)
452
				vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
453
			
454
			if knockback > 0 then
455
				vp.Parent = hit.Parent.Torso
456
			end
457
			game:GetService("Debris"):AddItem(vp, .5)
458
		elseif Type == "Up" then
459
			local bodyVelocity = Instance.new("BodyVelocity")
460
				bodyVelocity.velocity = vt(0, 20, 0)
461
				bodyVelocity.P = 5000
462
				bodyVelocity.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
463
				bodyVelocity.Parent = hit
464
			
465
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
466
		elseif Type == "Snare" then
467
			local bp = Instance.new("BodyPosition")
468
				bp.P = 2000
469
				bp.D = 100
470
				bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
471
				bp.position = hit.Parent.Torso.Position
472
				bp.Parent = hit.Parent.Torso
473
			game:GetService("Debris"):AddItem(bp, 1)
474
475
		elseif Type == "Freeze" then
476
			local BodPos = Instance.new("BodyPosition")
477
				BodPos.P = 50000
478
				BodPos.D = 1000
479
				BodPos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
480
				BodPos.position = hit.Parent.Torso.Position
481
				BodPos.Parent = hit.Parent.Torso
482
			
483
			local BodGy = Instance.new("BodyGyro") 
484
				BodGy.maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge 
485
				BodGy.P = 20e+003
486
				BodGy.Parent = hit.Parent.Torso
487
				BodGy.cframe = hit.Parent.Torso.CFrame
488
			
489
			hit.Parent.Torso.Anchored = true
490
			coroutine.resume(coroutine.create(function(Part) 
491
				swait(1.5)
492
				Part.Anchored = false
493
			end), hit.Parent.Torso)
494
			game:GetService("Debris"):AddItem(BodPos, 3)
495
			game:GetService("Debris"):AddItem(BodGy, 3)
496
		
497
		
498
		        elseif Type=="Target" then
499
                if Targetting==false then
500
                ZTarget=hit.Parent.Torso
501
                coroutine.resume(coroutine.create(function(Part) 
502
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)  
503
                swait(5)
504
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
505
                end),ZTarget)
506
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
507
                targetgui=Instance.new("BillboardGui")
508
                targetgui.Parent=ZTarget
509
                targetgui.Size=UDim2.new(10,100,10,100)
510
                targ=Instance.new("ImageLabel")
511
                targ.Parent=targetgui
512
                targ.BackgroundTransparency=1
513
                targ.Image="rbxassetid://4834067"
514
                targ.Size=UDim2.new(1,0,1,0)
515
                cam.CameraType="Scriptable"
516
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
517
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
518
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
519
                Targetting=true
520
                RocketTarget=ZTarget
521
                for i=1,Property do
522
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
523
                swait()
524
                end
525
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
526
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
527
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
528
                end
529
                Targetting=false
530
                RocketTarget=nil
531
                targetgui.Parent=nil
532
                cam.CameraType="Custom"
533
                end	
534
		end		
535
		
536
		local debounce = Instance.new("BoolValue")
537
		debounce.Name = "DebounceHit"
538
		debounce.Parent = hit.Parent
539
		debounce.Value = true
540
		game:GetService("Debris"):AddItem(debounce, Delay)
541
		c = Instance.new("ObjectValue")
542
		c.Name = "creator"
543
		c.Value = Player
544
		c.Parent = h
545
		game:GetService("Debris"):AddItem(c, .5)
546
	end
547
end
548
549
function ShowDamage2(Pos, Text, Time, Color)
550
	local Rate = (1 / 30)
551
	local Pos = (Pos or Vector3.new(0, 0, 0))
552
	local Text = (Text or "")
553
	local Time = (Time or 2)
554
	local Color = (Color or Color3.new(1, 0, 0))
555
	local EffectPart = part2("Custom", workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
556
	EffectPart.Anchored = true
557
	local BillboardGui = Instance.new("BillboardGui")
558
		BillboardGui.Size = UDim2.new(3, 0, 3, 0)
559
		BillboardGui.Adornee = EffectPart
560
		BillboardGui.Parent = EffectPart
561
	
562
	local TextLabel = Instance.new("TextLabel")
563
		TextLabel.BackgroundTransparency = 1
564
		TextLabel.Size = UDim2.new(1, 0, 1, 0)
565
		TextLabel.Text = Text
566
		TextLabel.TextColor3 = Color
567
		TextLabel.TextScaled = true
568
		TextLabel.Font = Enum.Font.ArialBold
569
		TextLabel.Parent = BillboardGui
570
	
571
	game.Debris:AddItem(EffectPart, (Time + 0.1))
572
	EffectPart.Parent = game:GetService("Workspace")
573
	delay(0, function()
574
		local Frames = (Time / Rate)
575
		for Frame = 1, Frames do
576
			wait(Rate)
577
			local Percent = (Frame / Frames)
578
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
579
			TextLabel.TextTransparency = Percent
580
		end
581
		if EffectPart and EffectPart.Parent then
582
			EffectPart:Destroy()
583
		end
584
	end)
585
end
586
587
function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
588
	local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
589
	prt.Anchored = true
590
	prt.CFrame = cframe
591
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
592
	coroutine.resume(coroutine.create(function() 
593
		for i = 0, 1, 0.05 do
594
			wait()
595
			prt.Transparency = i
596
			msh.Scale = msh.Scale + vt(x2, y2, z2)
597
		end
598
		prt.Parent = nil
599
	end))
600
end
601
602
function weld(parent, part0, part1, c0, c1)
603
	local Weld = Instance.new("Weld")
604
		Weld.Parent = parent
605
		Weld.Part0 = part0
606
		Weld.Part1 = part1
607
		Weld.C0 = c0
608
		Weld.C1 = c1
609
	
610
	return Weld
611
end
612
613
function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
614
	for _, c in pairs(workspace:children()) do
615
		local hum = c:findFirstChild("Humanoid")
616
		if hum ~= nil then
617
			local head = c:findFirstChild("Torso")
618
			if head ~= nil then
619
				local targ = head.Position - Part.Position
620
				local mag = targ.magnitude
621
				if mag <= magni and c.Name ~= Player.Name then 
622
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
623
				end
624
			end
625
		end
626
	end
627
end
628
629
function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
630
	local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
631
	prt.Anchored = true
632
	prt.CFrame = cframe
633
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
634
	game:GetService("Debris"):AddItem(prt, 2)
635
	coroutine.resume(coroutine.create(function(Part, Mesh) 
636
		for i = 0, 1, delay do
637
			swait()
638
			Part.CFrame = Part.CFrame
639
			Part.Transparency = i
640
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
641
		end
642
		Part.Parent = nil
643
	end), prt, msh)
644
end
645
646
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
647
	local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
648
	prt.Anchored=true
649
	prt.CFrame=cframe
650
	local msh = mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
651
	game:GetService("Debris"):AddItem(prt,2)
652
	coroutine.resume(coroutine.create(function(Part,Mesh) 
653
		for i=0,1,delay do
654
			swait()
655
			Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
656
			Part.Transparency=i
657
			Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
658
		end
659
		Part.Parent=nil
660
	end),prt,msh)
661
end 
662
663
664
	user=game:service'Players'.localPlayer
665
	char=user.Character
666
	mouse=user:GetMouse()
667
	
668
669
local function weldBetween(a, b, name)
670
    local weld = Instance.new("ManualWeld")
671
    weld.Part0 = a
672
    weld.Part1 = b
673
    weld.C0 = CFrame.new()
674
    weld.C1 = b.CFrame:inverse() * a.CFrame
675
    weld.Parent = a
676
	weld.Name=name or 'weldb1'
677
	weld.Parent=m
678
    return weld;
679
end
680
681
682
player=game.Players.localPlayer
683
char=player.Character
684
Effects={}
685
vt=Vector3.new
686
cf=CFrame.new
687
euler=CFrame.fromEulerAnglesXYZ
688
m=Instance.new("Model",char)
689
690
mouse.Button1Down:connect(function()
691
print("NEIN")
692
end)
693
694
local mdel = false
695
696
mouse.KeyDown:connect(function(k)
697
	k=k:lower()
698
	if k=='f' then
699
		if attack==false then
700
			ToggleMemes()
701
		end
702
	end
703
end)
704
705
function ToggleMemes()
706
	if memeing == true and mdel == false then
707
		memeing = false
708
		issprinting=false
709
		Humanoid.WalkSpeed = 26
710
		mdel = true
711
		for i = 1,0,-0.1 do
712
			wait(0.05)
713
			WEEB.Volume = i
714
		end
715
		WEEB.Pitch = 0
716
		mdel = false
717
	elseif memeing == false and mdel == false then
718
		memeing = true
719
		issprinting=true
720
		Humanoid.WalkSpeed=35
721
		WEEB.Pitch = 1
722
		mdel = true
723
		for i = 0,1,.1 do
724
			wait(0.05)
725
			WEEB.Volume = i
726
		end
727
		mdel = false
728
	end
729
end
730
731
local function CFrameFromTopBack(at, top, back)
732
local right = top:Cross(back)
733
return CFrame.new(at.x, at.y, at.z,
734
right.x, top.x, back.x,
735
right.y, top.y, back.y,
736
right.z, top.z, back.z)
737
end
738
739
function Triangle(a, b, c)
740
local edg1 = (c-a):Dot((b-a).unit)
741
local edg2 = (a-b):Dot((c-b).unit)
742
local edg3 = (b-c):Dot((a-c).unit)
743
if edg1 <= (b-a).magnitude and edg1 >= 0 then
744
a, b, c = a, b, c
745
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
746
a, b, c = b, c, a
747
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
748
a, b, c = c, a, b
749
else
750
assert(false, "unreachable")
751
end
752
 
753
local len1 = (c-a):Dot((b-a).unit)
754
local len2 = (b-a).magnitude - len1
755
local width = (a + (b-a).unit*len1 - c).magnitude
756
 
757
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
758
 
759
local list = {}
760
 
761
if len1 > 0.01 then
762
local w1 = Instance.new('WedgePart', m)
763
game:GetService("Debris"):AddItem(w1,5)
764
w1.Material = "SmoothPlastic"
765
w1.FormFactor = 'Custom'
766
w1.BrickColor = TorsoColor
767
w1.Transparency = 0
768
w1.Reflectance = 0
769
w1.Material = "SmoothPlastic"
770
w1.CanCollide = false
771
NoOutline(w1)
772
local sz = Vector3.new(0.2, width, len1)
773
w1.Size = sz
774
local sp = Instance.new("SpecialMesh",w1)
775
sp.MeshType = "Wedge"
776
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
777
w1:BreakJoints()
778
w1.Anchored = true
779
w1.Parent = workspace
780
w1.Transparency = 0.7
781
table.insert(Effects,{w1,"Disappear",.01})
782
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
783
table.insert(list,w1)
784
end
785
 
786
if len2 > 0.01 then
787
local w2 = Instance.new('WedgePart', m)
788
game:GetService("Debris"):AddItem(w2,5)
789
w2.Material = "SmoothPlastic"
790
w2.FormFactor = 'Custom'
791
w2.BrickColor = TorsoColor
792
w2.Transparency = 0
793
w2.Reflectance = 0
794
w2.Material = "SmoothPlastic"
795
w2.CanCollide = false
796
NoOutline(w2)
797
local sz = Vector3.new(0.2, width, len2)
798
w2.Size = sz
799
local sp = Instance.new("SpecialMesh",w2)
800
sp.MeshType = "Wedge"
801
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
802
w2:BreakJoints()
803
w2.Anchored = true
804
w2.Parent = workspace
805
w2.Transparency = 0.7
806
table.insert(Effects,{w2,"Disappear",.01})
807
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
808
table.insert(list,w2)
809
end
810
return unpack(list)
811
end
812
813
function NoOutline(Part)
814
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
815
end
816
817
local sine = 0
818
local change = 1
819
local val = 0
820
821
if #Effects>0 then
822
--table.insert(Effects,{prt,"Block1",delay})
823
for e=1,#Effects do
824
if Effects[e]~=nil then
825
--for j=1,#Effects[e] do
826
local Thing=Effects[e]
827
if Thing~=nil then
828
local Part=Thing[1]
829
local Mode=Thing[2]
830
local Delay=Thing[3]
831
local IncX=Thing[4]
832
local IncY=Thing[5]
833
local IncZ=Thing[6]
834
if Thing[1].Transparency<=1 then
835
if Thing[2]=="Block1" then
836
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
837
Mesh=Thing[1].Mesh
838
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
839
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
840
elseif Thing[2]=="Cylinder" then
841
Mesh=Thing[1].Mesh
842
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
843
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
844
elseif Thing[2]=="Blood" then
845
Mesh=Thing[1].Mesh
846
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
847
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
848
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
849
elseif Thing[2]=="Elec" then
850
Mesh=Thing[1].Mesh
851
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
852
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
853
elseif Thing[2]=="Disappear" then
854
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
855
end
856
else
857
Part.Parent=nil
858
table.remove(Effects,e)
859
end
860
end
861
--end
862
end
863
end
864
end
865
866
cn = CFrame.new
867
local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
868
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
869
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
870
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
871
872
local mananum=0
873
while true do
874
swait()
875
sine = sine + change
876
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
877
local velderp=RootPart.Velocity.y
878
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
879
if equipped==true or equipped==false then
880
if attack==false then
881
idle=idle+1
882
else
883
idle=0
884
end
885
if idle>=500 then
886
if attack==false then
887
--Sheath()
888
end
889
end
890
if RootPart.Velocity.y > 1 and hitfloor==nil then 
891
Anim="Jump"
892
if attack==false then
893
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
894
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
895
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
896
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
897
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
898
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
899
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
900
RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
901
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
902
end
903
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
904
Anim="Fall"
905
if attack==false then
906
Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
907
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
908
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
909
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
910
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
911
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
912
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
913
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
914
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
915
end
916
elseif torvel<1 and hitfloor~=nil then
917
Anim="Idle"
918
if attack==false then
919
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
920
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3)
921
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
922
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3)
923
RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
924
LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
925
end
926
elseif torvel>2 and torvel<22 and hitfloor~=nil then
927
Anim="Walk"
928
if attack==false then
929
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 5)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 10))), .2)
930
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
931
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10 * math.cos(sine / 13)), math.rad(0), math.rad(4 * math.cos(sine / 13))), .2)
932
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 13)), math.rad(0), math.rad(4 * math.cos(sine / 13))), .2)
933
RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 7))), .3)
934
LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 7))), .3)
935
end
936
elseif torvel>=22 and issprinting==true and hitfloor~=nil then
937
Anim="Run"
938
if attack==false then
939
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0.5, -0.05 + .1 * 2.5 * math.cos(sine / 2)) * angles(math.rad(50), math.rad(2) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 2))), .2)
940
Torso.Neck.C0 = clerp(Torso.Neck.C0, cn(0, 1.1, -0.2, -1, -0, -0, 0, 0, 1, 0, 1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
941
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.4) * angles(math.rad(75 * math.cos(6 / 2)), math.rad(-5), math.rad(25 * math.cos(sine / 3))), .2)
942
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.4) * angles(math.rad(75 * math.cos(6 / 2)), math.rad(5), math.rad(25 * math.cos(sine / 3))), .2)
943
RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
944
LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
945
end
946
end
947
end
948
end