View difference between Paste ID: GkAyBZ89 and YvP2bfdh
SHOW: | | - or go back to the newest paste.
1-
--[[ Made by KillerDarkness0105/Codex#6685, Because uno is a good meme and you should all play it. ]]--
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
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 --[[ Made by KillerDarkness0105/Codex#6685, Because uno is a good meme and you should all play it. ]]--
6
7
8
9
10
11
Player=game:GetService("Players").LocalPlayer
12
Character=Player.Character
13
LeftArm=Character["Left Arm"] 
14
LeftLeg=Character["Left Leg"] 
15
RightArm=Character["Right Arm"] 
16
RightLeg=Character["Right Leg"]
17
Torso=Character.Torso 
18
Head=Character.Head 
19
Humanoid=Character.Humanoid 
20
local mouse = Player:GetMouse()
21
angles=CFrame.Angles
22
it=Instance.new
23
attacktype=1
24
vt=Vector3.new
25
cf=CFrame.new
26
euler=CFrame.fromEulerAnglesXYZ
27
angles=CFrame.Angles
28
RootPart=Character.HumanoidRootPart
29
RootJoint=RootPart.RootJoint
30
local attack = false
31
local Effects = {}
32
m = game.Players.LocalPlayer
33
	char = m.Character
34
	local txt = Instance.new("BillboardGui", char)
35
	txt.Adornee = char .Head
36
	txt.Name = "_status"
37
	txt.Size = UDim2.new(2, 0, 1.2, 0)
38
	txt.StudsOffset = Vector3.new(-9, 8, 0)
39
	local text = Instance.new("TextLabel", txt)
40
	text.Size = UDim2.new(10, 0, 7, 0)
41
	text.FontSize = "Size24"
42
	text.TextScaled = true
43
	text.TextTransparency = 0
44
	text.BackgroundTransparency = 1 
45
	text.TextTransparency = 0
46
	text.TextStrokeTransparency = 0
47
	text.Font = "Bodoni"
48
	text.TextStrokeColor3 = Color3.new(0,0,0)
49
50
	v=Instance.new("Part")
51
	v.Name = "ColorBrick"
52
	v.Parent=m.Character
53
	v.FormFactor="Symmetric"
54
	v.Anchored=true
55
	v.CanCollide=false
56
	v.BottomSurface="Smooth"
57
	v.TopSurface="Smooth"
58
	v.Size=Vector3.new(10,5,3)
59
	v.Transparency=1
60
	v.CFrame=char.Torso.CFrame
61
	v.BrickColor=BrickColor.new("Really black")
62
	v.Transparency=1
63
	text.TextColor3 = Color3.new(0,255,255)
64
	v.Shape="Block"
65
	text.Text = ""
66
67
deb = game:GetService("Debris")
68
69
function clerp(a,b,t) 
70
local qa = {QuaternionFromCFrame(a)}
71
local qb = {QuaternionFromCFrame(b)} 
72
local ax, ay, az = a.x, a.y, a.z 
73
local bx, by, bz = b.x, b.y, b.z
74
local _t = 1-t
75
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
76
end 
77
 
78
function QuaternionFromCFrame(cf) 
79
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
80
local trace = m00 + m11 + m22 
81
if trace > 0 then 
82
local s = math.sqrt(1 + trace) 
83
local recip = 0.5/s 
84
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
85
else 
86
local i = 0 
87
if m11 > m00 then
88
i = 1
89
end
90
if m22 > (i == 0 and m00 or m11) then 
91
i = 2 
92
end 
93
if i == 0 then 
94
local s = math.sqrt(m00-m11-m22+1) 
95
local recip = 0.5/s 
96
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
97
elseif i == 1 then 
98
local s = math.sqrt(m11-m22-m00+1) 
99
local recip = 0.5/s 
100
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
101
elseif i == 2 then 
102
local s = math.sqrt(m22-m00-m11+1) 
103
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
104
end 
105
end 
106
end
107
 
108
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
109
local xs, ys, zs = x + x, y + y, z + z 
110
local wx, wy, wz = w*xs, w*ys, w*zs 
111
local xx = x*xs 
112
local xy = x*ys 
113
local xz = x*zs 
114
local yy = y*ys 
115
local yz = y*zs 
116
local zz = z*zs 
117
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)) 
118
end
119
function QuaternionSlerp(a, b, t) 
120
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
121
local startInterp, finishInterp; 
122
if cosTheta >= 0.0001 then 
123
if (1 - cosTheta) > 0.0001 then 
124
local theta = math.acos(cosTheta) 
125
local invSinTheta = 1/math.sin(theta) 
126
startInterp = math.sin((1-t)*theta)*invSinTheta 
127
finishInterp = math.sin(t*theta)*invSinTheta  
128
else 
129
startInterp = 1-t 
130
finishInterp = t 
131
end 
132
else 
133
if (1+cosTheta) > 0.0001 then 
134
local theta = math.acos(-cosTheta) 
135
local invSinTheta = 1/math.sin(theta) 
136
startInterp = math.sin((t-1)*theta)*invSinTheta 
137
finishInterp = math.sin(t*theta)*invSinTheta 
138
else 
139
startInterp = t-1 
140
finishInterp = t 
141
end 
142
end 
143
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 
144
end
145
146
--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)
147
148
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
149
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
150
end 
151
152
153
154
155
156
157
--save shoulders 
158
RSH, LSH=nil, nil 
159
--welds 
160
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
161
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
162
LH=Torso["Left Hip"]
163
RH=Torso["Right Hip"]
164
TorsoColor=Torso.BrickColor
165
function NoOutline(Part)
166
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
167
end
168
player=Player 
169
ch=Character
170
RSH=ch.Torso["Right Shoulder"] 
171
LSH=ch.Torso["Left Shoulder"] 
172
-- 
173
RSH.Parent=nil 
174
LSH.Parent=nil 
175
-- 
176
RW.Name="Right Shoulder"
177
RW.Part0=ch.Torso 
178
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
179
RW.C1=cf(0, 0.5, 0) 
180
RW.Part1=ch["Right Arm"] 
181
RW.Parent=ch.Torso 
182
-- 
183
LW.Name="Left Shoulder"
184
LW.Part0=ch.Torso 
185
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
186
LW.C1=cf(0, 0.5, 0) 
187
LW.Part1=ch["Left Arm"] 
188
LW.Parent=ch.Torso 
189
190
	Player=game:GetService('Players').LocalPlayer
191
	Character=Player.Character
192
	Mouse=Player:GetMouse()
193
	m=Instance.new('Model',Character)
194
195
196
	local function weldBetween(a, b)
197
	    local weldd = Instance.new("ManualWeld")
198
	    weldd.Part0 = a
199
	    weldd.Part1 = b
200
	    weldd.C0 = CFrame.new()
201
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
202
	    weldd.Parent = a
203
	    return weldd
204
	end
205
	
206
	
207
	
208
	function RemoveOutlines(part)
209
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
210
end
211
   
212
213
part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
214
  local fp = it("Part")
215
  fp.formFactor = formfactor
216
  fp.Parent = parent
217
  fp.Reflectance = reflectance
218
  fp.Transparency = transparency
219
  fp.CanCollide = false
220
  fp.Locked = true
221
  fp.BrickColor = brickcolor
222
  fp.Name = name
223
  fp.Size = size
224
  fp.Position = Torso.Position
225
  NoOutline(fp)
226
  if fp.BrickColor == BrickColor.new("Dark indigo") then
227
    fp.Material = "Neon"
228
  else
229
    if fp.BrickColor == BrickColor.new("Fossil") then
230
      fp.BrickColor = BrickColor.new("Dark indigo")
231
      fp.Material = "Neon"
232
    else
233
      fp.Material = "Neon"
234
    end
235
  end
236
  fp:BreakJoints()
237
  return fp
238
end
239
240
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
241
  local mesh = it(Mesh)
242
  mesh.Parent = part
243
  if Mesh == "SpecialMesh" then
244
    mesh.MeshType = meshtype
245
    mesh.MeshId = meshid
246
  end
247
  mesh.Offset = offset
248
  mesh.Scale = scale
249
  return mesh
250
end
251
252
weld = function(parent, part0, part1, c0)
253
  local weld = it("Weld")
254
  weld.Parent = parent
255
  weld.Part0 = part0
256
  weld.Part1 = part1
257
  weld.C0 = c0
258
  return weld
259
end
260
261
F1 = Instance.new("Folder", Character)
262
F1.Name = "Effects Folder"
263
F2 = Instance.new("Folder", F1)
264
F2.Name = "Effects"
265
Triangle = function(a, b, c)
266
end
267
268
MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
269
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
270
  prt.Anchored = true
271
  prt.CanCollide = false
272
  prt.CFrame = cframe
273
  prt.Name = "prt"
274
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
275
  game:GetService("Debris"):AddItem(prt, 5)
276
  table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
277
end
278
279
280
281
MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
282
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
283
  prt.Anchored = true
284
  prt.CanCollide = false
285
  prt.CFrame = cframe
286
  prt.Name = "prt"
287
  local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
288
  game:GetService("Debris"):AddItem(prt, 5)
289
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
290
end
291
292
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
293
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
294
  prt.Anchored = true
295
  prt.CFrame = cframe
296
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
297
  game:GetService("Debris"):AddItem(prt, 5)
298
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
299
end
300
301
MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
302
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
303
  prt.Anchored = true
304
  prt.CFrame = cframe
305
  msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
306
  game:GetService("Debris"):AddItem(prt, 5)
307
  Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
308
end
309
310
MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
311
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
312
  prt.Anchored = true
313
  prt.CFrame = cframe
314
  msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
315
  game:GetService("Debris"):AddItem(prt, 5)
316
  Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
317
end
318
319
MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
320
  local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
321
  prt.Anchored = true
322
  prt.CFrame = cframe
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, "Blood", delay, x3, y3, z3})
326
end
327
328
ElecEffect = function(cff, x, y, z)
329
  local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
330
  prt.Anchored = true
331
  prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
332
  prt.CFrame = cf(prt.Position)
333
  game:GetService("Debris"):AddItem(prt, 2)
334
  xval = math.random() / 2
335
  yval = math.random() / 2
336
  zval = math.random() / 2
337
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
338
  Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
339
end
340
341
	
342
	
343
	
344
	ArtificialHB = Instance.new("BindableEvent", script)
345
ArtificialHB.Name = "Heartbeat"
346
347
script:WaitForChild("Heartbeat")
348
349
frame = 1 / 60
350
tf = 0
351
allowframeloss = false
352
tossremainder = false
353
lastframe = tick()
354
script.Heartbeat:Fire()
355
356
game:GetService("RunService").Heartbeat:connect(function(s, p)
357
	tf = tf + s
358
	if tf >= frame then
359
		if allowframeloss then
360
			script.Heartbeat:Fire()
361
			lastframe = tick()
362
		else
363
			for i = 1, math.floor(tf / frame) do
364
				script.Heartbeat:Fire()
365
			end
366
			lastframe = tick()
367
		end
368
		if tossremainder then
369
			tf = 0
370
		else
371
			tf = tf - frame * math.floor(tf / frame)
372
		end
373
	end
374
end)
375
376
function swait(num)
377
	if num == 0 or num == nil then
378
		ArtificialHB.Event:wait()
379
	else
380
		for i = 0, num do
381
			ArtificialHB.Event:wait()
382
		end
383
	end
384
end
385
386
387
388
function Dmgfunc(player,mindamage,maxdamage,waait)
389
    
390
dodamage = coroutine.wrap(function()
391
    
392
if player ~= Character and player:FindFirstChild("IsHit") == nil then
393
    
394
Max = mindamage + math.random(-mindamage,maxdamage)
395
396
player.Humanoid.Health = player.Humanoid.Health - Max
397
398
399
local thiing = Instance.new("ObjectValue",player)
400
thiing.Name = "IsHit"
401
deb:AddItem(thiing,waait)
402
403
    
404
end
405
end)
406
dodamage(player,mindamage,maxdamage,waait)
407
end
408
409
410
411
local handee = Instance.new("Part")
412
handee.Parent = Character
413
handee.Size = Vector3.new(1, 0.3, 1.4)
414
handee.Archivable = true
415
handee.Transparency = 0
416
handee.CanCollide = false
417
handee.BrickColor = BrickColor.new("Really black")
418
handee.Material = "SmoothPlastic"
419
local handeemesh = Instance.new("BlockMesh",handee)
420
local handeedecal = Instance.new("Decal",handee)
421
handeedecal.Texture = "rbxassetid://45214611"
422
local handeedecal2 =  Instance.new("Decal",handee)
423
handeedecal2.Texture = "rbxassetid://45214611"
424
handeedecal.Face = "Top"
425
handeedecal2.Face = "Bottom"
426
local handeeweld = Instance.new("Weld")
427
handeeweld.Parent = handee
428
handeeweld.Part0 = RightArm
429
handeeweld.Part1 = handee
430
handeeweld.C1 = CFrame.new(0, -0.64, 0.96)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
431
		handeeweld.Part0 = RightArm
432
433
434
435
436
local music = Instance.new("Sound",Torso)
437
music.Volume = 1.5
438
music.PlaybackSpeed = 1
439
music.Pitch = 1
440
music.SoundId = "rbxassetid://143994596"--music
441
music:Play()
442
music.Name = "The Skid Rekter Music"
443
music.Looped = true
444
445
446
447
local size = 0
448
function card()
449
local Card = Instance.new("Part",Workspace)
450
	Card.Name = "Shell"
451
	Card.Anchored = false
452
	Card.CanCollide = false
453
	Card.Transparency = 0
454
455
	k = math.random(1,5)
456
	if k == 1 then
457
	Card.BrickColor = BrickColor.new("Toothpaste")
458
	text.Text = "DRAW 69!"
459
elseif k == 2 then
460
    Card.BrickColor = BrickColor.new("Lime green")
461
    text.Text = "UNO TRAP CARD - HELLA GEY!"
462
elseif k == 3 then
463
    Card.BrickColor = BrickColor.new("Bright red")
464
    text.Text = "UNO SKIP!"
465
elseif k == 4 then
466
    Card.BrickColor = BrickColor.new("Really black")
467
    text.Text = "WILD!!!!!!"
468
elseif k == 5 then
469
    Card.BrickColor = BrickColor.new("New Yeller")
470
    text.Text = "UNO REVERSE!!!"
471
end
472
473
474
	Card.Size = Vector3.new(1.5,0.05,1)
475
	Card.Material = "SmoothPlastic"
476
	Card.CFrame = handee.CFrame*CFrame.new(0,0,0)
477
    Card.CFrame = CFrame.new(Card.Position,Torso.CFrame.p)
478
	local bv = Instance.new("BodyVelocity",Card)
479
	bv.maxForce = Vector3.new(99999,99999,99999)
480
	bv.velocity = Torso.CFrame.lookVector*120
481
	   deb:AddItem(Card, 7)
482
	
483
	
484
		Card.Touched:connect(function(hit)
485
	if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Card" and hit.Name ~= "prt" and Card.Anchored == false) then
486
	    Card.Anchored = true
487
	    Card.Transparency = 1
488
	    
489
	    
490
	    	    local orbexplode = Instance.new("Sound", Card)
491
    orbexplode.Volume = 0.4
492
    orbexplode.PlayOnRemove = true
493
    orbexplode.SoundId = "http://roblox.com/asset/?id=929619479"
494
    orbexplode.Pitch = 1
495
    orbexplode:Destroy()
496
    deb:AddItem(orbexplode, 4)
497
498
		local Explode = Instance.new("Explosion") 
499
	Explode.Position = Card.Position
500
	Explode.Parent = Workspace 
501
	Explode.BlastPressure = 0
502
	Explode.BlastRadius = Card.Size.X	*1.6
503
	Explode.Visible = false
504
	
505
	Card:Destroy()
506
		Explode.Hit:connect(function(hit)
507
	if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
508
Dmgfunc(hit.Parent,10,20,.01)
509
	end
510
end)
511
MagicCircle(BrickColor.new("White"), Card.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
512
end
513
end)
514
515
end
516
517
518
519
mouse.KeyDown:connect(function(key)
520
if key == "e" and attack == false then
521
    attack = true
522
    card()
523
for i = 0,0.3,0.1 do
524
    swait()
525
     LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.65, -0.5) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
526
 end
527
 for i = 0,0.3,0.1 do
528
     swait()
529
      LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.65, -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.8)
530
  end
531
  attack = false
532
end
533
end)
534
535
536
537
538
mouse.KeyDown:connect(function(key)
539
if key == "f" and attack == false then
540
if music.Volume == 1.5 then
541
    music.Volume = 0
542
else
543
    music.Volume = 1.5
544
    end
545
end
546
end)
547
548
-----RUN BUTTON XDDDDDDDD
549
mouse.KeyDown:connect(function(key)
550
    if string.byte(key) == 48 then
551
        Character.Humanoid.WalkSpeed = 25
552
end
553
end)
554
555
mouse.KeyUp:connect(function(key)
556
    if string.byte(key) == 48 then
557
        Character.Humanoid.WalkSpeed = 16
558
559
end
560
end)
561
-----XXDDDDDDDDXDDXXDXDXDXDXDDXDXD
562
563
564
565
566
567
568
while true do
569
    swait()
570
    if attack == false then
571
        RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.34, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.1)
572
        LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.65, -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.1)
573
    end
574
     if 0 < #Effects then
575
      for e = 1, #Effects do
576
        if Effects[e] ~= nil then
577
          local Thing = Effects[e]
578
          if Thing ~= nil then
579
            local Part = Thing[1]
580
            local Mode = Thing[2]
581
            local Delay = Thing[3]
582
            local IncX = Thing[4]
583
            local IncY = Thing[5]
584
            local IncZ = Thing[6]
585
            if Thing[1].Transparency <= 1 then
586
              if Thing[2] == "Block1" then
587
                Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80))
588
                Mesh = Thing[1]:FindFirstChild("Mesh")
589
                if not Mesh then
590
                  Mesh = Instance.new("BlockMesh")
591
                end
592
                Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
593
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
594
              elseif Thing[2] == "Cylinder" then
595
                  Mesh = Thing[1]:FindFirstChild("Mesh")
596
                  if not Mesh then
597
                    Mesh = Instance.new("BlockMesh")
598
                  end
599
                  Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
600
                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
601
                elseif Thing[2] == "Blood" then
602
                    Mesh = Thing[1]:FindFirstChild("Mesh")
603
                    if not Mesh then
604
                      Mesh = Instance.new("BlockMesh")
605
                    end
606
                    Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
607
                    Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
608
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
609
                  elseif Thing[2] == "Elec" then
610
                      Mesh = Thing[1]:FindFirstChild("Mesh")
611
                      if not Mesh then
612
                        Mesh = Instance.new("BlockMesh")
613
                      end
614
                      Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
615
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
616
                    elseif Thing[2] == "Disappear" then
617
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
618
                      end
619
            else
620
              Part.Parent = nil
621
              Part:Destroy()
622
              --game:GetService("Debris"):AddItem(Part, 0)
623
              table.remove(Effects, e)
624
            end
625
          end
626
        end
627
      end
628
    end
629
end