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