View difference between Paste ID: HuhLCcKp and Q7QqHMcX
SHOW: | | - or go back to the newest paste.
1
--[[KillerDarkness0105's/Codex#6685 Touhou magic script]]--
2
-- This script has been converted to FE by iPxter
3
4
5-
Player=game:GetService("Players").LocalPlayer
5+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
6
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
7
do
8
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
9
	script.Parent = Player.Character
10
11
	--RemoteEvent for communicating
12
	local Event = Instance.new("RemoteEvent")
13
	Event.Name = "UserInput_Event"
14
15
	--Fake event to make stuff like Mouse.KeyDown work
16
	local function fakeEvent()
17
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
18
		t.connect = t.Connect
19
		return t
20
	end
21
22
	--Creating fake input objects with fake variables
23
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
24
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
25
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
26
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
27
	end}
28
	--Merged 2 functions into one by checking amount of arguments
29
	CAS.UnbindAction = CAS.BindAction
30
31
	--This function will trigger the events that have been :Connect()'ed
32
	local function te(self,ev,...)
33
		local t = m[ev]
34
		if t and t._fakeEvent and t.Function then
35
			t.Function(...)
36
		end
37
	end
38
	m.TrigEvent = te
39
	UIS.TrigEvent = te
40
41
	Event.OnServerEvent:Connect(function(plr,io)
42
	    if plr~=Player then return end
43
		if io.isMouse then
44
			m.Target = io.Target
45
			m.Hit = io.Hit
46
		else
47
			local b = io.UserInputState == Enum.UserInputState.Begin
48
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
49
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
50
			end
51
			for _,t in pairs(CAS.Actions) do
52
				for _,k in pairs(t.Keys) do
53
					if k==io.KeyCode then
54
						t.Function(t.Name,io.UserInputState,io)
55
					end
56
				end
57
			end
58
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
59
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
60
	    end
61
	end)
62
	Event.Parent = NLS([==[
63
	local Player = game:GetService("Players").LocalPlayer
64
	local Event = script:WaitForChild("UserInput_Event")
65-
local g ="Lime green"
65+
66-
local r ="Dark indigo"
66+
	local UIS = game:GetService("UserInputService")
67
	local input = function(io,a)
68
		if a then return end
69
		--Since InputObject is a client-side instance, we create and pass table instead
70
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
71
	end
72
	UIS.InputBegan:Connect(input)
73
	UIS.InputEnded:Connect(input)
74-
music.Volume = 0.5
74+
75
	local Mouse = Player:GetMouse()
76
	local h,t
77-
if Player.Name == "TheSatanicAngel" then
77+
	--Give the server mouse data 30 times every second, but only if the values changed
78-
music.SoundId = "rbxassetid://512289595"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 -- 541377118  490561591
78+
	--If player is not moving their mouse, client won't fire events
79
	while wait(1/30) do
80-
music.SoundId = "rbxassetid://803364705"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 -- 541377118  490561591
80+
		if h~=Mouse.Hit or t~=Mouse.Target then
81
			h,t=Mouse.Hit,Mouse.Target
82
			Event:FireServer({isMouse=true,Target=t,Hit=h})
83
		end
84
	end]==],Player.Character)
85
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
86
end
87
88
89
Player=owner --game:GetService("Players").LocalPlayer
90
Character=Player.Character
91
PlayerGui=Player.PlayerGui
92
Backpack=Player.Backpack
93
Torso=Character.Torso
94
Head=Character.Head
95
Humanoid=Character.Humanoid
96
LeftArm=Character["Left Arm"]
97
LeftLeg=Character["Left Leg"]
98
RightArm=Character["Right Arm"]
99
RightLeg=Character["Right Leg"]
100
LS=Torso["Left Shoulder"]
101
LH=Torso["Left Hip"]
102
RS=Torso["Right Shoulder"]
103
RH=Torso["Right Hip"]
104
Face = Head.face
105
Neck=Torso.Neck
106
it=Instance.new
107
attacktype=1
108
attacktype2=1
109
vt=Vector3.new
110
cf=CFrame.new
111
cn=CFrame.new
112
euler=CFrame.fromEulerAnglesXYZ
113
angles=CFrame.Angles
114
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
115
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
116
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
117
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
118
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
119
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
120
RootPart=Character.HumanoidRootPart
121
RootJoint=RootPart.RootJoint
122
RootCF=euler(-1.57,0,3.14)
123
attack = false
124
attackdebounce = false
125
trispeed=.2
126
attackmode='none'
127
local idle=0
128
local Anim="Idle"
129
stance = false
130
local ff = 2
131
noleg = false
132
evadecooldown = false
133
Humanoid.Animator.Parent = nil
134
equip = false
135
local Effects = {}
136
 attackspeed = 0.14 
137
 df = false
138
 Swing = 1
139
local sine = 0
140
local change = 1
141
local val = 0
142
magic = false
143
cam = workspace.CurrentCamera
144
deb = game:GetService("Debris")
145
RbxUtility = LoadLibrary("RbxUtility")
146
Create = RbxUtility.Create
147
Humanoid.WalkSpeed = 32
148
Humanoid.JumpPower = 76
149
local g ="Toothpaste"
150
local r ="Deep blue"
151
152
153
Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1050773670" -- everything went in an unexpected manner
154
Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=785471273"
155
156
for i,v in pairs(Character:children()) do
157
    if v:IsA("Accessory") then
158
        v:Destroy()
159
    end
160
end
161
162
Hair7 = Instance.new("Part")
163
Hair7.Parent = Player.Character
164
Hair7.Name = "Hair"
165
Hair7.CanCollide = false
166
Hair7.Locked = true
167
Hair7.TopSurface = "Smooth"
168
Hair7.BottomSurface = "Smooth"
169
Hair7.formFactor = "Symmetric"
170
Hair7.Material = "Metal"
171
Hair7.BrickColor = BrickColor.new("Navy blue")
172
Hair7.CFrame = Player.Character.Torso.CFrame
173
Hair7.Size = Vector3.new(1, 1, 1)
174
Hair7.Transparency = 0
175
176
Weld1 = Instance.new("Weld")
177
Weld1.Parent = Player.Character.Head
178-
    Player=game:GetService('Players').LocalPlayer
178+
Weld1.Part0 = Player.Character.Head
179-
    Character=Player.Character
179+
Weld1.Part1 = Hair7
180
Weld1.C0 = CFrame.new(0, 1, 0)
181
182
Mesh = Instance.new("SpecialMesh")
183
Mesh.Offset = Vector3.new(0, -0.2, 0)
184
Mesh.Parent = Hair7
185
Mesh.Scale = Vector3.new(1.2, 1.2, 1.2)
186
Mesh.MeshType = "FileMesh"
187
Mesh.MeshId = "http://www.roblox.com/asset/?id=163989519"
188
Mesh.TextureId = "http://www.roblox.com/asset/?id=163989706"
189
190
191
Hair77 = Instance.new("Part")
192
Hair77.Parent = Player.Character
193
Hair77.Name = "Hair"
194
Hair77.CanCollide = false
195
Hair77.Locked = true
196
Hair77.TopSurface = "Smooth"
197
Hair77.BottomSurface = "Smooth"
198
Hair77.formFactor = "Symmetric"
199
Hair77.Material = "Metal"
200
Hair77.BrickColor = BrickColor.new("Deep blue")
201
Hair77.CFrame = Player.Character.Torso.CFrame
202
Hair77.Size = Vector3.new(1, 1, 1)
203
Hair77.Transparency = 0.5
204
205
Weld1 = Instance.new("Weld")
206
Weld1.Parent = Player.Character.Head
207
Weld1.Part0 = Player.Character.Head
208
Weld1.Part1 = Hair77
209
Weld1.C0 = CFrame.new(0, 1, 0)
210
211
Mesh2 = Instance.new("SpecialMesh")
212
Mesh2.Offset = Vector3.new(0, -1.5, 0)
213
Mesh2.Parent = Hair77
214
Mesh2.Scale = Vector3.new(1.2, 1.2, 1.2)
215
Mesh2.MeshType = "FileMesh"
216
Mesh2.MeshId = "http://www.roblox.com/asset/?id=1254392112"
217
Mesh2.TextureId = ""
218
219
220
221
222
music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music. You may wanna leave this at torso tho...
223
music.Volume = 5
224
music.TimePosition = 0
225
music.Pitch = 1
226
if Player.Name == "NecrozmaSpin" then
227
music.SoundId = "rbxassetid://143884682"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 -- 541377118  490561591
228
else
229
music.SoundId = "rbxassetid://1323989853"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 -- 541377118  490561591
230
end
231
music.Looped = true
232
music:Play()
233
234
235
236
237
238
239
240
local handee = Instance.new("Part")
241
handee.Parent = Character
242
handee.Size = Vector3.new(.2,.2,.2)
243
handee.Archivable = true
244
handee.Transparency = 1
245
handee.CanCollide = false
246
handee.BrickColor = BrickColor.new("Cyan")
247
handee.Material = "Neon"
248
local handeeweld = Instance.new("Weld")
249
handeeweld.Parent = handee
250
handeeweld.Part0 = RightArm
251
handeeweld.Part1 = handee
252
handeeweld.C1 = CFrame.new(0, 0.97, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
253
        handeeweld.Part0 = RightArm
254
        
255
        
256
        
257
        
258
    
259
        
260
        
261
        
262
        
263
        
264
        
265
        
266
        so = function(id,par,vol,pit)
267
coroutine.resume(coroutine.create(function()
268
local sou = Instance.new("Sound",par or workspace)
269
sou.Volume=vol
270
sou.Pitch=pit or 1
271
sou.SoundId=id
272
swait()
273
sou:play()
274
game:GetService("Debris"):AddItem(sou,8)
275
end))
276
end
277
278
--save shoulders
279
RSH, LSH=nil, nil
280
--welds
281
RW, LW=Instance.new("Weld"), Instance.new("Weld")
282
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
283
LH=Torso["Left Hip"]
284
RH=Torso["Right Hip"]
285
TorsoColor=Torso.BrickColor
286
function NoOutline(Part)
287
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
288
end
289
player=Player
290
ch=Character
291
RSH=ch.Torso["Right Shoulder"]
292
LSH=ch.Torso["Left Shoulder"]
293
--
294
RSH.Parent=nil
295
LSH.Parent=nil
296
--
297
RW.Name="Right Shoulder"
298
RW.Part0=ch.Torso
299
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
300
RW.C1=cf(0, 0.5, 0)
301
RW.Part1=ch["Right Arm"]
302
RW.Parent=ch.Torso
303
--
304
LW.Name="Left Shoulder"
305
LW.Part0=ch.Torso
306
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
307
LW.C1=cf(0, 0.5, 0)
308
LW.Part1=ch["Left Arm"]
309
LW.Parent=ch.Torso
310
 
311
 
312
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
313
    local wld = Instance.new("Weld", wp1)
314
    wld.Part0 = wp0
315
    wld.Part1 = wp1
316
    wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
317
end
318
 
319
 
320
newWeld(RootPart, Torso, 0, -1, 0)
321
Torso.Weld.C1 = CFrame.new(0, -1, 0)
322
newWeld(Torso, LeftLeg, -0.5, -1, 0)
323
LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
324
newWeld(Torso, RightLeg, 0.5, -1, 0)
325
RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
326
327
    Player=owner
328
	print(owner:GetClass()) --jumptoline
329
    mouse=Player:GetMouse()
330
    m=Instance.new('Model',Character)
331
 
332
 
333
    local function weldBetween(a, b)
334
        local weldd = Instance.new("ManualWeld")
335
        weldd.Part0 = a
336
        weldd.Part1 = b
337
        weldd.C0 = CFrame.new()
338
        weldd.C1 = b.CFrame:inverse() * a.CFrame
339
        weldd.Parent = a
340
        return weldd
341
    end
342
   
343
    ArtificialHB = Instance.new("BindableEvent", script)
344
ArtificialHB.Name = "Heartbeat"
345
 
346
script:WaitForChild("Heartbeat")
347
 
348
frame = 1 / 60
349
tf = 0
350
allowframeloss = false
351
tossremainder = false
352
lastframe = tick()
353
script.Heartbeat:Fire()
354
game:GetService("RunService").Heartbeat:connect(function(s, p)
355
    tf = tf + s
356
    if tf >= frame then
357
        if allowframeloss then
358
            script.Heartbeat:Fire()
359
            lastframe = tick()
360
        else
361
            for i = 1, math.floor(tf / frame) do
362
                script.Heartbeat:Fire()
363
            end
364
            lastframe = tick()
365
        end
366
        if tossremainder then
367
            tf = 0
368
        else
369
            tf = tf - frame * math.floor(tf / frame)
370
        end
371
    end
372
end)
373
 
374
function swait(num)
375
    if num == 0 or num == nil then
376
        ArtificialHB.Event:wait()
377
    else
378
        for i = 0, num do
379
            ArtificialHB.Event:wait()
380
        end
381
    end
382
end
383
 
384
 
385
 
386
function RemoveOutlines(part)
387
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
388
end
389
   
390
391
part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
392
  local fp = it("Part")
393
  fp.formFactor = formfactor
394
  fp.Parent = parent
395
  fp.Reflectance = reflectance
396
  fp.Transparency = transparency
397
  fp.CanCollide = false
398
  fp.Locked = true
399
  fp.BrickColor = brickcolor
400
  fp.Name = name
401
  fp.Size = size
402
  fp.Position = Torso.Position
403
  NoOutline(fp)
404
  if fp.BrickColor == BrickColor.new("Dark indigo") then
405
    fp.Material = "Neon"
406
  else
407
    if fp.BrickColor == BrickColor.new("Fossil") then
408
      fp.BrickColor = BrickColor.new("Dark indigo")
409
      fp.Material = "Neon"
410
    else
411
      fp.Material = "Neon"
412
    end
413
  end
414
  fp:BreakJoints()
415
  return fp
416
end
417
418
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
419
  local mesh = it(Mesh)
420
  mesh.Parent = part
421
  if Mesh == "SpecialMesh" then
422
    mesh.MeshType = meshtype
423
    mesh.MeshId = meshid
424
  end
425
  mesh.Offset = offset
426
  mesh.Scale = scale
427
  return mesh
428
end
429
430
weld = function(parent, part0, part1, c0)
431
  local weld = it("Weld")
432
  weld.Parent = parent
433
  weld.Part0 = part0
434
  weld.Part1 = part1
435
  weld.C0 = c0
436
  return weld
437
end
438
439
F1 = Instance.new("Folder", Character)
440
F1.Name = "Effects Folder"
441
F2 = Instance.new("Folder", F1)
442
F2.Name = "Effects"
443
Triangle = function(a, b, c)
444
end
445
446
MagicBlock4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
447
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
448
  prt.Anchored = true
449
  prt.CanCollide = false
450
  prt.CFrame = cframe
451
  prt.Name = "prt"
452
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
453
  game:GetService("Debris"):AddItem(prt, 5)
454
  table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
455
end
456
457
458
459
MagicCircle4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
460
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
461
  prt.Anchored = true
462
  prt.CanCollide = false
463
  prt.CFrame = cframe
464
  prt.Name = "prt"
465
  local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
466
  game:GetService("Debris"):AddItem(prt, 5)
467
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
468
end
469
470
MagicWave4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
471
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
472
  prt.Anchored = true
473
  prt.CFrame = cframe
474
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
475
  game:GetService("Debris"):AddItem(prt, 5)
476
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
477
end
478
479
MagicCylinder4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
480
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
481
  prt.Anchored = true
482
  prt.CFrame = cframe
483
  msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
484
  game:GetService("Debris"):AddItem(prt, 5)
485
  Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
486
end
487
488
MagicCylinder5 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
489
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
490
  prt.Anchored = true
491
  prt.CFrame = cframe
492
  msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
493
  game:GetService("Debris"):AddItem(prt, 5)
494
  Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
495
end
496
497
MagicBlood4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
498
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
499
  prt.Anchored = true
500
  prt.CFrame = cframe
501
  local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
502
  game:GetService("Debris"):AddItem(prt, 5)
503
  table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
504
end
505
506
ElecEffect4 = function(cff, x, y, z)
507
  local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
508
  prt.Anchored = true
509
  prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
510
  prt.CFrame = cf(prt.Position)
511
  game:GetService("Debris"):AddItem(prt, 2)
512
  xval = math.random() / 2
513
  yval = math.random() / 2
514
  zval = math.random() / 2
515
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
516
  Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
517
end
518
519
520
521
522
523
524
525
526
527
528
529
530
		
531
		function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
532
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
533
prt.Anchored=true
534
prt.CFrame=cframe
535
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
536
--http://www.roblox.com/asset/?id=4770560
537
game:GetService("Debris"):AddItem(prt,2)
538
CF=prt.CFrame
539
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
540
for i=0,1,0.2 do
541
wait()
542
Part.CFrame=CF*cf(0,0,-0.4)
543
end
544
for i=0,1,delay do
545
wait()
546
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
547
Mesh.Scale=Mesh.Scale
548
end
549
for i=0,1,0.1 do
550
wait()
551
Part.Transparency=i
552
end
553
Part.Parent=nil
554
end),prt,msh,CF)
555
end
556
 
557
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
558
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
559
prt.Anchored=true
560
prt.Material = "Neon"
561
prt.CFrame=cframe
562
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
563
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
564
game:GetService("Debris"):AddItem(prt,5)
565
coroutine.resume(coroutine.create(function(Part,Mesh) 
566
for i=0,1,delay do
567
swait()
568
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
569
Part.Transparency=i
570
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
571
end
572
Part.Parent=nil
573
end),prt,msh)
574
end
575
576
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
577
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
578
prt.Anchored=true
579
prt.Material = "Neon"
580
prt.CFrame=cframe
581
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
582
game:GetService("Debris"):AddItem(prt,5)
583
coroutine.resume(coroutine.create(function(Part,Mesh) 
584
	local rtype = rottype
585
for i=0,1,delay do
586
swait()
587
if rtype == 1 then
588
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
589
elseif rtype == 2 then
590
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
591
end
592
Part.Transparency=i
593
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
594
end
595
Part.Parent=nil
596
end),prt,msh)
597
end
598
599
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
600
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
601
prt.Anchored=true
602
prt.CFrame=cframe
603
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
604
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
605
game:GetService("Debris"):AddItem(prt,5)
606
coroutine.resume(coroutine.create(function(Part,Mesh) 
607
for i=0,1,delay do
608
swait()
609
Part.Transparency=i
610
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
611
end
612
Part.Parent=nil
613
end),prt,msh)
614
end
615
616
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
617
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
618
prt.Anchored=true
619
prt.Material = "Neon"
620
prt.CFrame=cframe
621
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
622
game:GetService("Debris"):AddItem(prt,5)
623
coroutine.resume(coroutine.create(function(Part,Mesh) 
624
	local rtype = rottype
625
for i=0,1,delay do
626
swait()
627
if rtype == 1 then
628
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
629
elseif rtype == 2 then
630
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
631
end
632
Part.Transparency=i
633
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
634
end
635
Part.Parent=nil
636
end),prt,msh)
637
end
638
639
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
640
local prt=part(3,Character,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
641
prt.Anchored=true
642
prt.Material = "Neon"
643
prt.CFrame=cframe
644
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
645
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
646
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
647
game:GetService("Debris"):AddItem(prt,5)
648
coroutine.resume(coroutine.create(function(Part,Mesh) 
649
	local rtype = rottype
650
for i=0,1,delay do
651
swait()
652
if rtype == 1 then
653
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
654
elseif rtype == 2 then
655
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
656
end
657
dec.Transparency=i
658
dec2.Transparency=i
659
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
660
end
661
Part.Parent=nil
662
end),prt,msh)
663
end
664
665
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
666
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
667
prt.Anchored=true
668
prt.Material = "Neon"
669
prt.CFrame=cframe
670
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
671
game:GetService("Debris"):AddItem(prt,5)
672
coroutine.resume(coroutine.create(function(Part,Mesh) 
673
	local rtype = rottype
674
for i=0,1,delay do
675
swait()
676
if rtype == 1 then
677
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
678
elseif rtype == 2 then
679
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
680
end
681
prt.Transparency=i
682
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
683
end
684
Part.Parent=nil
685
end),prt,msh)
686
end
687
688
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
689
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
690
prt.Anchored=true
691
prt.Material = "Neon"
692
prt.CFrame=cframe
693
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
694
game:GetService("Debris"):AddItem(prt,5)
695
coroutine.resume(coroutine.create(function(Part,Mesh) 
696
	local rtype = rottype
697
for i=0,1,delay do
698
swait()
699
if rtype == 1 then
700
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
701
elseif rtype == 2 then
702
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
703
end
704
prt.Transparency=i
705
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
706
end
707
Part.Parent=nil
708
end),prt,msh)
709
end
710
711
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
712
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
713
prt.Anchored=true
714
prt.Material = "Neon"
715
prt.CFrame=cframe
716
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
717
game:GetService("Debris"):AddItem(prt,5)
718
coroutine.resume(coroutine.create(function(Part,Mesh) 
719
	local rtype = rottype
720
for i=0,1,delay do
721
swait()
722
if rtype == 1 then
723
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
724
elseif rtype == 2 then
725
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
726
end
727
prt.Transparency=i
728
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
729
end
730
Part.Parent=nil
731
end),prt,msh)
732
end
733
734
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
735
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
736
prt.Anchored=true
737
prt.Material = "Neon"
738
prt.CFrame=cframe
739
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
740
game:GetService("Debris"):AddItem(prt,5)
741
coroutine.resume(coroutine.create(function(Part,Mesh) 
742
	local rtype = rottype
743
for i=0,1,delay do
744
swait()
745
if rtype == 1 then
746
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
747
elseif rtype == 2 then
748
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
749
end
750
prt.Transparency=i
751
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
752
end
753
Part.Parent=nil
754
end),prt,msh)
755
end
756
 
757
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
758
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
759
prt.Anchored=false
760
prt.CFrame=cframe
761
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
762
local wld=weld(prt,prt,Parent,cframe)
763
game:GetService("Debris"):AddItem(prt,5)
764
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
765
for i=0,1,delay do
766
swait()
767
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
768
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
769
Part.Transparency=i
770
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
771
end
772
Part.Parent=nil
773
end),prt,msh,wld)
774
end
775
 
776
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
777
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
778
prt.Anchored=false
779
prt.CFrame=cframe
780
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
781
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
782
game:GetService("Debris"):AddItem(prt,5)
783
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
784
for i=0,1,delay do
785
swait()
786
Weld.C0=euler(i*20,0,0)
787
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
788
Part.Transparency=i
789
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
790
end
791
Part.Parent=nil
792
end),prt,msh,wld)
793
end
794
 
795
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
796
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
797
prt.Anchored=true
798
prt.CFrame=cframe
799
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
800
game:GetService("Debris"):AddItem(prt,2)
801
coroutine.resume(coroutine.create(function(Part,Mesh) 
802
for i=0,1,delay do
803
swait()
804
Part.CFrame=Part.CFrame
805
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
806
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
807
prt2.Anchored=true
808
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
809
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
810
game:GetService("Debris"):AddItem(prt2,2)
811
coroutine.resume(coroutine.create(function(Part,Mesh) 
812
for i=0,1,0.1 do
813
swait()
814
Part.CFrame=Part.CFrame*cf(0,0.5,0)
815
end
816
Part.Parent=nil
817
end),prt2,msh2)
818
end
819
for i=0,1,delay*2 do
820
swait()
821
Part.CFrame=Part.CFrame
822
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
823
end
824
Part.Parent=nil
825
end),prt,msh)
826
end
827
 
828
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
829
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
830
prt.Anchored=true
831
prt.CFrame=cframe
832
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
833
game:GetService("Debris"):AddItem(prt,2)
834
coroutine.resume(coroutine.create(function(Part,Mesh) 
835
for i=0,1,delay do
836
swait()
837
Part.CFrame=Part.CFrame
838
Part.Transparency=i
839
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
840
end
841
Part.Parent=nil
842
end),prt,msh)
843
end
844
 
845
function BreakEffect(brickcolor,cframe,x1,y1,z1)
846
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
847
prt.Anchored=true
848
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
849
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
850
game:GetService("Debris"):AddItem(prt,2)
851
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
852
CF=Part.CFrame
853
Numbb=0
854
randnumb=math.random()/10
855
rand1=math.random()/10
856
for i=0,1,rand1 do
857
swait()
858
CF=CF*cf(0,math.random()/2,0)
859
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
860
Part.CFrame=CF*euler(Numbb,0,0)
861
Part.Transparency=i
862
Numbb=Numbb+randnumb
863
end
864
Part.Parent=nil
865
end),prt,CF,Numbb,randnumb)
866
end
867
 
868
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
869
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
870
prt.Anchored=true
871
prt.CFrame=cframe
872
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
873
game:GetService("Debris"):AddItem(prt,5)
874
coroutine.resume(coroutine.create(function(Part,Mesh) 
875
for i=0,1,delay do
876
swait()
877
Part.CFrame=Part.CFrame*euler(0,0.7,0)
878
Part.Transparency=i
879
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
880
end
881
Part.Parent=nil
882
end),prt,msh)
883
end
884
 
885
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
886
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
887
prt.Anchored=true
888
prt.CFrame=cframe
889
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
890
game:GetService("Debris"):AddItem(prt,2)
891
coroutine.resume(coroutine.create(function(Part,Mesh) 
892
for i=0,1,delay do
893
swait()
894
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
895
Part.Transparency=i
896
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
897
end
898
Part.Parent=nil
899
end),prt,msh)
900
end
901
 
902
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
903
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
904
prt.Anchored=true
905
prt.CFrame=cframe*cf(x,y,z)
906
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
907
game:GetService("Debris"):AddItem(prt,5)
908
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
909
local num=math.random()
910
local num2=math.random(-3,2)+math.random()
911
local numm=0
912
for i=0,1,delay*2 do
913
swait()
914
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
915
Part.Transparency=i
916
numm=numm+0.01
917
end
918
Part.Parent=nil
919
Mesh.Parent=nil
920
end),prt,msh,x,y,z)
921
end
922
		
923
		
924
	
925
926
927
928
929
New = function(Object, Parent, Name, Data)
930
	local Object = Instance.new(Object)
931
	for Index, Value in pairs(Data or {}) do
932
		Object[Index] = Value
933
	end
934
	Object.Parent = Parent
935
	Object.Name = Name
936
	return Object
937
end
938
939
940
941
function clerp(a,b,t)
942
local qa = {QuaternionFromCFrame(a)}
943
local qb = {QuaternionFromCFrame(b)}
944
local ax, ay, az = a.x, a.y, a.z
945
local bx, by, bz = b.x, b.y, b.z
946
local _t = 1-t
947
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
948
end
949
 
950
function QuaternionFromCFrame(cf)
951
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
952
local trace = m00 + m11 + m22
953
if trace > 0 then
954
local s = math.sqrt(1 + trace)
955
local recip = 0.5/s
956
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
957
else
958
local i = 0
959
if m11 > m00 then
960
i = 1
961
end
962
if m22 > (i == 0 and m00 or m11) then
963
i = 2
964
end
965
if i == 0 then
966
local s = math.sqrt(m00-m11-m22+1)
967
local recip = 0.5/s
968
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
969
elseif i == 1 then
970
local s = math.sqrt(m11-m22-m00+1)
971
local recip = 0.5/s
972
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
973
elseif i == 2 then
974
local s = math.sqrt(m22-m00-m11+1)
975
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
976
end
977
end
978
end
979
980
981
982
function QuaternionToCFrame(px, py, pz, x, y, z, w)
983
local xs, ys, zs = x + x, y + y, z + z
984
local wx, wy, wz = w*xs, w*ys, w*zs
985
local xx = x*xs
986
local xy = x*ys
987
local xz = x*zs
988
local yy = y*ys
989
local yz = y*zs
990
local zz = z*zs
991
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))
992
end
993
function QuaternionSlerp(a, b, t)
994
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
995
local startInterp, finishInterp;
996
if cosTheta >= 0.0001 then
997
if (1 - cosTheta) > 0.0001 then
998
local theta = math.acos(cosTheta)
999
local invSinTheta = 1/math.sin(theta)
1000
startInterp = math.sin((1-t)*theta)*invSinTheta
1001
finishInterp = math.sin(t*theta)*invSinTheta  
1002
else
1003
startInterp = 1-t
1004
finishInterp = t
1005
end
1006
else
1007
if (1+cosTheta) > 0.0001 then
1008
local theta = math.acos(-cosTheta)
1009
local invSinTheta = 1/math.sin(theta)
1010
startInterp = math.sin((t-1)*theta)*invSinTheta
1011
finishInterp = math.sin(t*theta)*invSinTheta
1012
else
1013
startInterp = t-1
1014
finishInterp = t
1015
end
1016
end
1017
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
1018
end
1019
 
1020
function weld5(part0, part1, c0, c1)
1021
    weeld=Instance.new("Weld", part0)
1022
    weeld.Part0=part0
1023
    weeld.Part1=part1
1024
    weeld.C0=c0
1025
    weeld.C1=c1
1026
    return weeld
1027
end
1028
 
1029
--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1030
 
1031
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1032
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1033
end
1034
 
1035
 
1036
 
1037
 
1038
 
1039
 
1040
 
1041
 
1042
 
1043
 
1044
function Dmgfunc(player,mindamage,maxdamage,waait)
1045
    
1046
dodamage = coroutine.wrap(function()
1047
    
1048
if player ~= Character and player:FindFirstChild("IsHit") == nil then
1049
    
1050
Max = mindamage + math.random(-mindamage,maxdamage)
1051
1052
player.Humanoid.Health = player.Humanoid.Health - Max
1053
1054
1055
local thiing = Instance.new("ObjectValue",player)
1056
thiing.Name = "IsHit"
1057
deb:AddItem(thiing,waait)
1058
1059
--for nooby ;)
1060
local Damagetext = Instance.new("BillboardGui",player)
1061
Damagetext.Size = UDim2.new(0,100,0,40)
1062
Damagetext.StudsOffset = Vector3.new(0,3,0)
1063
Damagetext.Adornee = player.Head
1064
Damagetext.Name = "TalkingBillBoard"
1065
local Damagelabel = Instance.new("TextLabel",Damagetext)
1066
Damagelabel.BackgroundTransparency = 1
1067
Damagelabel.BorderSizePixel = 0
1068
Damagelabel.Text = ""..Max
1069
Damagelabel.Font = "Bodoni"
1070
Damagelabel.FontSize = "Size24"
1071
Damagelabel.TextStrokeTransparency = 0
1072
Damagelabel.TextColor3 = Color3.new(255,255,255)
1073
Damagelabel.TextStrokeColor3 = Color3.new(0,0,0)
1074
Damagelabel.Size = UDim2.new(1,0,1.5,0)
1075
deb:AddItem(Damagetext,4.5)
1076
for i = 1, 70 do
1077
wait(0.00000000000000000000000001)
1078
Damagelabel.Position = Damagelabel.Position - UDim2.new(0,0,.06,0)
1079
Damagelabel.TextStrokeTransparency = Damagelabel.TextStrokeTransparency +.06
1080
Damagelabel.TextTransparency = Damagelabel.TextTransparency + .04
1081
end
1082
Damagetext:Destroy()
1083
end
1084
end)
1085
dodamage(player,mindamage,maxdamage,waait)
1086
    
1087
end
1088
1089
1090
1091
1092
1093
1094
1095
function Bullets(thinggy,size,color,velocity,damage,bounce,collide,rotation)
1096
    swait()
1097
	   local Bullet = Instance.new("Part",Workspace)
1098
	Bullet.Locked = true
1099
	Bullet.Name = "Bullet"
1100
	Bullet.Anchored = bounce
1101
	Bullet.CanCollide = collide
1102
	Bullet.Transparency = 0.24
1103
	Bullet.Reflectance = 0
1104
	Bullet.BottomSurface = 0
1105
	Bullet.TopSurface = 0
1106
	Bullet.Shape = 0
1107
	Bullet.BrickColor = BrickColor.new(color)
1108
	Bullet.Size = Vector3.new(size,size,size)
1109
	Bullet.Material = "Neon"
1110
	Bullet.Orientation = vt(-90,0,0)
1111
	local Bulletthing = Instance.new("SpecialMesh",Bullet)
1112
	Bulletthing.MeshId = "rbxassetid://1245215297"
1113
		local Bulletforce = Instance.new("BodyForce")
1114
	Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
1115
	Bulletforce.Parent = Bullet
1116
	Bullet.CFrame = thinggy.CFrame*CFrame.new(0,0,0) + Vector3.new(math.random(-1,1),math.random(0,0.7),math.random(-1,1))
1117
	local bv = Instance.new("BodyVelocity",Bullet)
1118
	bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1119
    Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p+Vector3.new(math.random(-7,7),math.random(-2,2),math.random(-6,6)))
1120
		bv.velocity = Bullet.CFrame.lookVector*velocity
1121
		
1122
		so("http://roblox.com/asset/?id=925629856",Bullet,0.4,1)
1123
	if bounce == false then
1124
	Bullet.Touched:connect(function(hit)
1125
	if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and hit.Name ~= "prt" and Bullet.Anchored == false) then
1126
	    	    local orbexplode = Instance.new("Sound", Bullet)
1127
    orbexplode.Volume = 0.4
1128
    orbexplode.PlayOnRemove = true
1129
    orbexplode.SoundId = "http://roblox.com/asset/?id=929619479"
1130
    orbexplode.Pitch = 1
1131
    orbexplode:Destroy()
1132
    deb:AddItem(orbexplode, 4)
1133
	Bullet.Anchored = true
1134
	local Explode = Instance.new("Explosion") 
1135
	Explode.Position = Bullet.Position
1136
	Explode.Parent = Workspace 
1137
	Explode.BlastPressure = 0
1138
	Explode.BlastRadius = Bullet.Size.X	*3.6
1139
	Explode.Visible = false
1140
	Explode.Hit:connect(function(hit)
1141
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1142
Dmgfunc(hit.Parent,damage,0+damage,.01)
1143
	end
1144
end)
1145
Bullet.Mesh.Scale = Vector3.new(0,0,0)
1146
MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
1147
MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
1148
	end
1149
	end)
1150
	elseif bounce == true then
1151
	Bullet.Touched:connect(function(hit)
1152
	if (hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~= Character) then
1153
	Bullet.Anchored = true
1154
	local Explode = Instance.new("Explosion") 
1155
	Explode.Position = Bullet.Position
1156
	Explode.Parent = Workspace 
1157
	Explode.BlastPressure = 0
1158
	Explode.BlastRadius = Bullet.Size.X	
1159
	Explode.Visible = false
1160
	Explode.Hit:connect(function(hit)
1161
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1162
	Dmgfunc(hit.Parent,damage,0+damage,.01)
1163
	end
1164
	end)
1165
Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
1166
1167
MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
1168
MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
1169
1170
1171
	end
1172
	end)
1173
	end
1174
	deb:AddItem(Bullet,5.3)
1175
1176
	return Bullet
1177
end
1178
1179
1180
1181
1182
function Rotbullet(thinggy,size,color,velocity,damage,bounce,collide)
1183
    
1184
    rotation = 0
1185
    rotation2 = 0
1186
    
1187
    
1188
	   local Bullet = Instance.new("Part",Workspace)
1189
	Bullet.Locked = true
1190
	Bullet.Name = "Bullet"
1191
	Bullet.Anchored = bounce
1192
	Bullet.CanCollide = collide
1193
	Bullet.Transparency = 0.24
1194
	Bullet.Reflectance = 0
1195
	Bullet.BottomSurface = 0
1196
	Bullet.TopSurface = 0
1197
	Bullet.Shape = 0
1198
	Bullet.BrickColor = BrickColor.new(color)
1199
	Bullet.Size = Vector3.new(size,size,size)
1200
	Bullet.Material = "Neon"
1201
	local Bulletthing = Instance.new("SpecialMesh",Bullet)
1202
	Bulletthing.MeshType = "Sphere"
1203
		local Bulletforce = Instance.new("BodyForce")
1204
	Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
1205
	Bulletforce.Parent = Bullet
1206
	Bullet.CFrame = thinggy.CFrame*CFrame.new(0,0,0) + Vector3.new(math.random(-1,1),math.random(0,0.7),math.random(-1,1))
1207
	local bv = Instance.new("BodyVelocity",Bullet)
1208
	bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1209
    Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p+Vector3.new(math.random(-7,7),math.random(-2,2),math.random(-6,6)))
1210
		bv.velocity = Bullet.CFrame.lookVector*velocity
1211
		so("http://roblox.com/asset/?id=925629856",Bullet,0.4,1)
1212
	if bounce == false then
1213
	Bullet.Touched:connect(function(hit)
1214
	if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and hit.Name ~= "prt" and Bullet.Anchored == false) then
1215
	    
1216
	    
1217
	    
1218
	    	    local orbexplode = Instance.new("Sound", Bullet)
1219
    orbexplode.Volume = 0.4
1220
    orbexplode.PlayOnRemove = true
1221
    orbexplode.SoundId = "http://roblox.com/asset/?id=929619479"
1222
    orbexplode.Pitch = 1
1223
    orbexplode:Destroy()
1224
    deb:AddItem(orbexplode, 4)
1225
	Bullet.Anchored = true
1226
	
1227
		local Explode = Instance.new("Explosion") 
1228
	Explode.Position = Bullet.Position
1229
	Explode.Parent = Workspace 
1230
	Explode.BlastPressure = 0
1231
	Explode.BlastRadius = Bullet.Size.X	*3.6
1232
	Explode.Visible = false
1233
	
1234
	
1235
	
1236
		Explode.Hit:connect(function(hit)
1237
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1238
Dmgfunc(hit.Parent,damage,0+damage,.01)
1239
	end
1240
end)
1241
Bullet.Mesh.Scale = Vector3.new(0,0,0)
1242
MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
1243
MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
1244
1245
	for i = 1,10 do
1246
wait(0)
1247
rotation2 = rotation2 - 25
1248
				 local Bullet2 = Instance.new("Part")
1249
  Bullet2.Parent = Workspace
1250
   Bullet2.Material = "Neon"
1251
    Bullet2.BrickColor = BrickColor.new(color)
1252
     Bullet2.CanCollide = false
1253
     Bullet2.Archivable = true
1254
     Bullet2.Anchored = false
1255
     Bullet2.Transparency = 0
1256
     Bullet2.Size = vt(size/1.3,size/1.3,size/1.3)
1257
local B2mesh = Instance.new("SpecialMesh",Bullet2)
1258
     B2mesh.MeshType = "Sphere"
1259
     Bullet2.CFrame = Bullet.CFrame*CFrame.Angles(0,math.rad(rotation2),0)*CFrame.new(0,2,0)
1260
     local bv2 = Instance.new("BodyVelocity",Bullet2)
1261
	bv2.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1262
	    	bv2.velocity = Bullet2.CFrame.lookVector*velocity
1263
1264
	
1265
1266
1267
	
1268
	Bullet2.Touched:connect(function(hit)
1269
	if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and hit.Name ~= "prt" and Bullet.Anchored == true) then
1270
	    Bullet2.Anchored = true
1271
		local Explode2 = Instance.new("Explosion") 
1272
	Explode2.Position = Bullet2.Position
1273
	Explode2.Parent = Workspace 
1274
	Explode2.BlastPressure = 0
1275
	Explode2.BlastRadius = Bullet2.Size.X	*3.6
1276
	Explode2.Visible = false
1277
	
1278
		Explode2.Hit:connect(function(hit)
1279
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1280
Dmgfunc(hit.Parent,damage,0+damage,.01)
1281
	end
1282
end)
1283
	Bullet2.Mesh.Scale = Vector3.new(0,0,0)
1284
MagicCircle4(BrickColor.new(color), Bullet2.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size/1.4, 2.2+size/1.4, 2.2+size/1.4, 0.02)
1285
MagicCircle4(BrickColor.new("White"), Bullet2.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
1286
end
1287
end)
1288
	
1289
1290
end
1291
end
1292
end)
1293
1294
	elseif bounce == true then
1295
	Bullet.Touched:connect(function(hit)
1296
	if (hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~= Character) then
1297
	Bullet.Anchored = true
1298
	local Explode = Instance.new("Explosion") 
1299
	Explode.Position = Bullet.Position
1300
	Explode.Parent = Workspace 
1301
	Explode.BlastPressure = 0
1302
	Explode.BlastRadius = Bullet.Size.X	
1303
	Explode.Visible = false
1304
	Explode.Hit:connect(function(hit)
1305
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1306
	Dmgfunc(hit.Parent,damage,0+damage,.01)
1307
	end
1308
	end)
1309
Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
1310
1311
MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
1312
MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
1313
1314
1315
	end
1316
	end)
1317
	end
1318
	deb:AddItem(Bullet,3.3)
1319
deb:AddItem(Bullet2,3.3)
1320
1321
	return Bullet
1322
end
1323
1324
1325
1326
1327
1328
function Bullets2(size,color,velocity,damage,bounce,collide)
1329
	   local Bullet = Instance.new("Part",Workspace)
1330
	Bullet.Locked = true
1331
	Bullet.Name = "Bullet"
1332
	Bullet.Anchored = bounce
1333
	Bullet.CanCollide = collide
1334
	Bullet.Transparency = 0.24
1335
	Bullet.Reflectance = 0
1336
	Bullet.BottomSurface = 0
1337
	Bullet.TopSurface = 0
1338
	Bullet.Shape = 0
1339
	Bullet.BrickColor = BrickColor.new(color)
1340
	Bullet.Size = Vector3.new(size,size,size)
1341
	Bullet.Material = "Neon"
1342
	local Bulletthing = Instance.new("SpecialMesh",Bullet)
1343
	Bulletthing.MeshType = "Sphere"
1344
	Bullet.CFrame = handee.CFrame*CFrame.new(0,0,0) + Vector3.new(math.random(-180,180),math.random(-1.6,6.6),math.random(-180,180))
1345
	local bv = Instance.new("BodyVelocity",Bullet)
1346
	bv.maxForce = Vector3.new(99999,99999,99999)
1347
    Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
1348
		bv.velocity = Bullet.CFrame.lookVector*velocity
1349
		so("http://roblox.com/asset/?id=200633327",Bullet,1,1)
1350
			spawn = coroutine.wrap(function()
1351
	Bullet.Transparency = 0
1352
	Bullet.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
1353
	wait()
1354
	Bullet.Transparency = .25
1355
	Bullet.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
1356
	wait()
1357
	Bullet.Transparency = .5
1358
	Bullet.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
1359
	wait()
1360
	Bullet.Transparency = 0
1361
	Bullet.Mesh.Scale = Vector3.new(1,1,1)
1362
end)
1363
	if bounce == false then
1364
	Bullet.Touched:connect(function(hit)
1365
	if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and Bullet.Anchored == false) then
1366
	Bullet.Anchored = true
1367
	local Explode = Instance.new("Explosion") 
1368
	Explode.Position = Bullet.Position
1369
	Explode.Parent = Workspace 
1370
	Explode.BlastPressure = 0
1371
	Explode.BlastRadius = Bullet.Size.X	
1372
	Explode.Visible = false
1373
	Explode.Hit:connect(function(hit)
1374
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1375
Dmgfunc(hit.Parent,damage,0.7,0)
1376
	end
1377
end)
1378
Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
1379
MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 1.7, 1.7, 1.7, 0.04)
1380
MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2, 2.2, 2.2, 0.04)
1381
for i = 0,2.3,0.1 do
1382
    swait()
1383
	Bullet.Transparency = Bullet.Transparency + 0.02
1384
	Bullet.Mesh.Scale = Bullet.Mesh.Scale + Vector3.new(.3,.3,.3)
1385
	end
1386
	Bullet:Destroy()
1387
	end
1388
	end)
1389
	elseif bounce == true then
1390
	Bullet.Touched:connect(function(hit)
1391
	if (hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~= Character) then
1392
	Bullet.Anchored = true
1393
	local Explode = Instance.new("Explosion") 
1394
	Explode.Position = Bullet.Position
1395
	Explode.Parent = Workspace 
1396
	Explode.BlastPressure = 0
1397
	Explode.BlastRadius = Bullet.Size.X	
1398
	Explode.Visible = false
1399
	Explode.Hit:connect(function(hit)
1400
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
1401
	Dmgfunc(hit.Parent,damage,0.7,0)
1402
	end
1403
	end)
1404
Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
1405
MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 1.7, 1.7, 1.7, 0.04)
1406
MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2, 2.2, 2.2, 0.04)
1407
for i = 0,2.3,0.1 do
1408
    swait()
1409
	Bullet.Transparency = Bullet.Transparency + 0.02
1410
	Bullet.Mesh.Scale = Bullet.Mesh.Scale + Vector3.new(.3,.3,.3)
1411
	MagicSphere(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 6.2, 6.2, 6.2, 0.04)
1412
	MagicSphere(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 8.2, 8.2, 8.2, 0.04)
1413
	end
1414
	Bullet:Destroy()
1415
	end
1416
	end)
1417
end
1418
	spawn()
1419
	deb:AddItem(Bullet,10)
1420
	return Bullet
1421
end
1422
1423
1424
 
1425
 
1426
 
1427
 
1428
 
1429
 
1430
 local shooting = false
1431
 
1432
 
1433
 
1434
function shoot()
1435
    so("http://roblox.com/asset/?id=925333540",Torso,1.1,1)
1436
    MagicBlock4(BrickColor.new("Lime green"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
1437
1438
    MagicCircle4(BrickColor.new("Dark indigo"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 19.2, 19.2, 19.2, 0.03)
1439
    
1440
    MagicWave4(BrickColor.new("Dark indigo"), cf(RootPart.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.04)
1441
    
1442
 MagicWave4(BrickColor.new("Lime green"), RootPart.CFrame * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
1443
    attack = true
1444
                    local thing = Instance.new("BodyGyro",RootPart)
1445
thing.D = 350
1446
thing.P = 6000
1447
thing.MaxTorque = vt(100000,math.huge,0)
1448
thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1449
      for i = 0,2,0.16 do
1450
        swait()
1451
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
1452
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
1453
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
1454
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1455
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
1456
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0)  * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
1457
end
1458
shooting = true
1459
1460
while shooting == true do
1461
    swait(2.5)
1462
        thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1463
            Torso.Velocity =  RootPart.CFrame.lookVector * -13
1464
        if math.random(1,2) == 1 then
1465
    Bullets(handee,math.random(1,2),g,math.random(220,520),5.5,false,false)
1466
            MagicBlock(BrickColor.new("Lime green"), RightArm.CFrame * cf(math.random(-100, 100) / 100, -math.random(0, 700) / 100, math.random(-100, 100) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
1467
else
1468
    Bullets(handee,math.random(1,2),r,math.random(200,520),6.3,false,false)
1469
            MagicBlock(BrickColor.new("Dark indigo"), RightArm.CFrame * cf(math.random(-100, 100) / 100, -math.random(0, 700) / 100, math.random(-100, 100) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
1470
end
1471
end
1472
1473
attack = false
1474
thing:Destroy()
1475
    end
1476
1477
1478
1479
1480
local cardmax = 0
1481
local cardpos = 3
1482
local carding = false
1483
function SCB()
1484
    print('Spell Card Barrage -> Debuff - 3.6 WalkSpeed.')
1485
    Humanoid.WalkSpeed = Humanoid.WalkSpeed-3.6
1486
    so("http://roblox.com/asset/?id=925333540",Torso,1.1,1)
1487
    MagicBlock4(BrickColor.new("Lime green"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
1488
1489
    MagicCircle4(BrickColor.new("Dark indigo"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 19.2, 19.2, 19.2, 0.03)
1490
    
1491
    MagicWave4(BrickColor.new("Dark indigo"), cf(RootPart.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.04)
1492
    
1493
 MagicWave4(BrickColor.new("Lime green"), RootPart.CFrame * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
1494
    attack = true
1495
1496
local Card = Instance.new('Part',Character)
1497
Card.Transparency = 0.5
1498
Card.Color = Color3.fromRGB(0,255,0)
1499
Card.Size = Vector3.new(0.65,0.2,1.2)
1500
Card.Material = "Neon"
1501
Card.CFrame = handee.CFrame + Vector3.new(0,3,0)
1502
CardMesh = Instance.new("BlockMesh",Card)
1503
local gyrothing = Instance.new("BodyGyro",Card)
1504
	gyrothing.D = 100
1505
	gyrothing.P = 2000
1506
	gyrothing.MaxTorque = Vector3.new(4000000,4000000,4000000)
1507
	gyrothing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1508
	local position = Instance.new("BodyPosition",Card)
1509
	position.D = 2350
1510
	position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1511
cardmax = cardmax+1
1512
cardpos = cardpos+1
1513
1514
      for i = 0,2,0.16 do
1515
        swait()
1516
        gyrothing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1517
        position.Position = Torso.Position + Vector3.new(10,3,0)
1518
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
1519
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
1520
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
1521
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1522
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
1523
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0)  * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
1524
end
1525
  
1526
  attack = false
1527
1528
for i = 1,65 do
1529
    position.Position = Torso.Position + Vector3.new(10-cardpos,cardpos,0)
1530
    --position.Position = Torso.Position + Vector3.new(0,cardpos,0)
1531
   swait(2.5)
1532
   gyrothing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1533
        if math.random(1,2) == 1 then
1534
    Bullets(Card,math.random(0.9,1.1),g,math.random(320,420),6.1,false,false)
1535
else
1536
    Bullets(Card,math.random(0.9,1.1),r,math.random(320,420),8.2,false,false)
1537
end
1538
end
1539
1540
1541
1542
Card:Destroy()
1543
cardmax = cardmax-1
1544
Humanoid.WalkSpeed = Humanoid.WalkSpeed+3.6
1545
cardpos = cardpos-1
1546
if Humanoid.WalkSpeed == 32 then
1547
    print('WalkSpeed Regained.')
1548-
  mouse.Button1Down:connect(function(key)
1548+
1549
    end
1550
1551
1552
1553
1554
function rotball()
1555
   
1556
1557
    so("http://roblox.com/asset/?id=925333540",Torso,1.1,1)
1558
    MagicBlock4(BrickColor.new("Lime green"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
1559
1560
    MagicCircle4(BrickColor.new("Dark indigo"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 19.2, 19.2, 19.2, 0.03)
1561
    
1562
    MagicWave4(BrickColor.new("Dark indigo"), cf(RootPart.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.04)
1563
    
1564
 MagicWave4(BrickColor.new("Lime green"), RootPart.CFrame * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
1565
    attack = true
1566
1567
1568
1569
                       local thing = Instance.new("BodyGyro",RootPart)
1570
thing.D = 350
1571
thing.P = 6000
1572
thing.MaxTorque = vt(100000,math.huge,0)
1573
thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1574
      for i = 0,2,0.16 do
1575
        swait()
1576
        thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1577
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
1578
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
1579
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
1580
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1581
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
1582
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0)  * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
1583
end
1584
1585
  
1586
		local beam = Instance.new("Part", workspace)
1587
		beam.BrickColor = BrickColor.new(g)
1588
		beam.FormFactor = "Custom"
1589
		beam.Material = "Neon"
1590
		beam.Transparency = 0.25
1591
		beam.Anchored = true
1592
		beam.Locked = false
1593
		beam.CanCollide = false
1594
				local Z = Instance.new("SpecialMesh",beam)
1595
	Z.MeshType = "Sphere"
1596
	
1597
		local ray = Ray.new(handee.CFrame.p, (mouse.Hit.p - handee.CFrame.p).unit * 700)
1598
		local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
1599
		local distance = (handee.CFrame.p - position).magnitude
1600
		beam.CFrame = CFrame.new(handee.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
1601
		beam.Size = Vector3.new(1, 1, distance)
1602
1603
1604
1605
for i = 1,6,0.1 do
1606
    swait()
1607
thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1608
		beam.CFrame = CFrame.new((beam.CFrame.p + position) / 2, beam.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
1609
		beam.Size = Vector3.new(1, 1, distance)
1610
		MagicBlock4(BrickColor.new("Lime green"), beam.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
1611
		MagicShockTrailAlt(BrickColor.new("Dark indigo"),beam.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,5,-0.05,-0.05,25,0.005,math.random(1,2))
1612
if math.random(1,2) == 1 then
1613
beam.BrickColor = BrickColor.new(g)
1614
else
1615
beam.BrickColor = BrickColor.new(r)
1616
end
1617
end
1618
  attack = false
1619
thing:Destroy()
1620
beam:Destroy()
1621
1622
1623
    end
1624
1625
1626
1627
function Ldash()
1628
    
1629
    
1630
1631
evadecooldown = true
1632
attack = true
1633
so("http://www.roblox.com/asset/?id=707957812", Torso, 2.5, 1)
1634
 
1635
 
1636
 
1637
 
1638
1639
1640
 --+173.8*i
1641
for i = 0,2,0.064 do
1642
swait()
1643
RootPart.Velocity = RootPart.CFrame.rightVector * -54
1644
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2)
1645
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2)
1646
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(77), math.rad(0), math.rad(70)),.2)
1647
LW.C0 = clerp(LW.C0, CFrame.new(-1.0, 0.5, -0.55) * angles(math.rad(30), math.rad(0), math.rad(70)),.2)
1648
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2)
1649
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2)
1650
end
1651
1652
attack = false
1653
wait(0.13)
1654
evadecooldown = false
1655
 
1656
 
1657
end
1658
1659
1660
1661
1662
1663
function Rdash()
1664
    
1665
    
1666
1667
evadecooldown = true
1668
attack = true
1669
so("http://www.roblox.com/asset/?id=707957812", Torso, 2.5, 1)
1670
 
1671
 
1672
 
1673
 
1674
 
1675
1676
 --+173.8*i
1677
for i = 0,2,0.064 do
1678
swait()
1679
RootPart.Velocity = RootPart.CFrame.rightVector * 54
1680
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2)
1681
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2)
1682
RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.55) * angles(math.rad(30), math.rad(0), math.rad(-70)),.2)
1683
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(77), math.rad(0), math.rad(-70)),.2)
1684
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2)
1685
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2)
1686
end
1687
1688
attack = false
1689
wait(0.13)
1690
evadecooldown = false
1691
 
1692
 
1693
end
1694
1695
1696
1697
  mouse.Button1Down:connect(function(key)  --problem area
1698
if attack == false then
1699
shoot()
1700
end
1701
end)
1702
 
1703
 
1704
 
1705
 
1706
  mouse.Button1Up:connect(function(key)
1707
if shooting == true then
1708
shooting = false
1709
end
1710
end)
1711
 
1712
 
1713
  
1714
  mouse.KeyDown:connect(function(key)
1715
if key == 'e' and attack == false and cardmax <= 5 then
1716
SCB()
1717
end
1718
end)
1719
 
1720
 
1721
 
1722
  mouse.KeyDown:connect(function(key)
1723
if key == 'f' and attack == false then
1724
Ldash()
1725
end
1726
end)
1727
 
1728
 
1729
 
1730
  mouse.KeyDown:connect(function(key)
1731
if key == 'g' and attack == false then
1732
Rdash()
1733
end
1734
end)
1735
 
1736
   mouse.KeyDown:connect(function(key)
1737
if key == 'r' and attack == false then
1738
rotball()
1739
end
1740
end)
1741
 
1742
 
1743
 
1744
 local idk = 0
1745
 
1746
 
1747
 
1748
 local f = 0
1749
 game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
1750
1751
1752
Humanoid.MaxHealth = 250
1753
f = f+1
1754
if f >= 7 then
1755
    MagicBlock4(BrickColor.new("Dark indigo"), LeftArm.CFrame * cf(0, -1, 0), 1, 1, 1, 0.7, 0.7, 0.7, 0.05)
1756
      MagicCircle4(BrickColor.new("Dark indigo"), LeftArm.CFrame * cf(0, -1, 0), 1, 0.1, 1, 6, 0, 6, 0.1)
1757
end
1758
1759
end)
1760
1761
 Humanoid.Health = 250
1762
 while true do
1763
swait()
1764
sine = sine + change
1765
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
1766
local velderp=RootPart.Velocity.y
1767
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1768
if attack==true or attack==false then
1769
if attack==false then
1770
idle=idle+1
1771
else
1772
idle=0
1773
end
1774
if idle>=500 then
1775
if attack==false then
1776
end
1777
end
1778
1779
1780
1781
if RootPart.Velocity.y > 1 and hitfloor==nil then
1782
Anim="Jump"
1783
1784
1785
1786
1787
1788
1789
if attack==false then
1790
change = 1
1791
 
1792
Humanoid.CameraOffset = Vector3.new(0,0,0)
1793
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -.15) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1)
1794
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.1)
1795
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30+2.05*math.cos(sine/5)), math.rad(0), math.rad(50-2.05*math.cos(sine/5))), 0.1)
1796
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30+2.05*math.cos(sine/5)), math.rad(0), math.rad(-50+2.05*math.cos(sine/5))), 0.1)
1797
1798
end
1799
if attack==false  then
1800
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
1801
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
1802
end
1803
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
1804
Anim="Fall"
1805
change = 1
1806
1807
1808
if attack==false then
1809
Humanoid.CameraOffset = Vector3.new(0,0,0)
1810
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
1811
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(20), math.rad(90)), 0.1)
1812
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.1)
1813
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.1)
1814
1815
end
1816
if attack==false or attack == true  then
1817
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(3), math.rad(0)), 0.1)
1818
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
1819
end
1820
     
1821
elseif torvel<1 and hitfloor~=nil then
1822
Anim="Idle"
1823
change = 1.73
1824
if attack==false and equip == false then
1825
Humanoid.CameraOffset = Vector3.new(0,0,0)
1826
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.10*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.1)
1827
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+4*math.sin(sine/40)),math.rad(0),math.rad(-30)),0.1)
1828
1829
1830
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/40), 0) * angles(math.rad(-3+2*math.cos(sine/40)), math.rad(0+7*math.cos(sine/40)), math.rad(3+3.2*math.cos(sine/40))),0.1)
1831
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/40), 0) * angles(math.rad(-3+2*math.cos(sine/40)), math.rad(0-7*math.cos(sine/40)), math.rad(-3-3.2*math.cos(sine/40))),0.1)
1832
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.10*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(2), math.rad(-3)), 0.1)
1833
1834
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.10*math.cos(sine/40), 0)  * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)), 0.1)
1835
end
1836
1837
1838
1839
1840
elseif torvel>2 and torvel<4205 and hitfloor~=nil then
1841
Anim="Walk"
1842
change = 1 + Character.Humanoid.WalkSpeed/113
1843
if attack==false and equip == false then
1844
Humanoid.CameraOffset = Vector3.new(0,0,0)
1845
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.42*math.cos(sine/2.5), -.8) * angles(math.rad(-23), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
1846
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-7+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1)
1847
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/5)) * angles(math.rad(0-80*math.sin(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+18*math.sin(sine/5))- RootPart.RotVelocity.Y / 34),.15)
1848
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0-0.34*math.sin(sine/5))*angles(math.rad(0+80*math.sin(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-6+18*math.sin(sine/5))+ RootPart.RotVelocity.Y / -34),.15)
1849
1850
1851
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.21*math.cos(sine/5)) * CFrame.Angles(math.rad(-5-60*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.8)
1852
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.21*math.cos(sine/5)) * CFrame.Angles(math.rad(-5+60*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.8)
1853
end
1854
1855
if attack==true and noleg == false then
1856
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0+0.32*math.sin(sine/5)) * CFrame.Angles(math.rad(0-65*math.sin(sine/5)), math.rad(3), math.rad(0)), 0.2)
1857
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5), 0-0.32*math.sin(sine/5)) * CFrame.Angles(math.rad(0+65*math.sin(sine/5)), math.rad(-3), math.rad(0)), 0.2)
1858
end
1859
1860
end
1861
end
1862
1863
1864
1865
 if 0 < #Effects then
1866
      for e = 1, #Effects do
1867
        if Effects[e] ~= nil then
1868
          local Thing = Effects[e]
1869
          if Thing ~= nil then
1870
            local Part = Thing[1]
1871
            local Mode = Thing[2]
1872
            local Delay = Thing[3]
1873
            local IncX = Thing[4]
1874
            local IncY = Thing[5]
1875
            local IncZ = Thing[6]
1876
            if Thing[1].Transparency <= 1 then
1877
              if Thing[2] == "Block1" then
1878
                Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80))
1879
                Mesh = Thing[1]:FindFirstChild("Mesh")
1880
                if not Mesh then
1881
                  Mesh = Instance.new("BlockMesh")
1882
                end
1883
                Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1884
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1885
              elseif Thing[2] == "Cylinder" then
1886
                  Mesh = Thing[1]:FindFirstChild("Mesh")
1887
                  if not Mesh then
1888
                    Mesh = Instance.new("BlockMesh")
1889
                  end
1890
                  Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1891
                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1892
                elseif Thing[2] == "Blood" then
1893
                    Mesh = Thing[1]:FindFirstChild("Mesh")
1894
                    if not Mesh then
1895
                      Mesh = Instance.new("BlockMesh")
1896
                    end
1897
                    Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
1898
                    Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1899
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1900
                  elseif Thing[2] == "Elec" then
1901
                      Mesh = Thing[1]:FindFirstChild("Mesh")
1902
                      if not Mesh then
1903
                        Mesh = Instance.new("BlockMesh")
1904
                      end
1905
                      Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
1906
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1907
                    elseif Thing[2] == "Disappear" then
1908
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1909
                      end
1910
            else
1911
              Part.Parent = nil
1912
              Part:Destroy()
1913
              --game:GetService("Debris"):AddItem(Part, 0)
1914
              table.remove(Effects, e)
1915
            end
1916
          end
1917
        end
1918
      end
1919
    end
1920
1921
end