Advertisement
Void_scripter0

uno

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