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