XxmadmaxgamexX

no u

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