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