Advertisement
AndyWolf6610

UNO Card Script (FE By AndyWolf6610)

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