Advertisement
OofeyDoofy

Diced Swords Script v1.0

Feb 3rd, 2018
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.71 KB | None | 0 0
  1. print([[
  2.    
  3.    
  4. ----------------------------------------
  5. Diced Swords Script v1
  6. ----------------------------------------
  7. Script by: SlayKillerX66
  8. Ideas by: My brain
  9. ----------------------------------------
  10. Al... Thats old, stop it.
  11. ----------------------------------------
  12. ]])
  13.  
  14. sword = true
  15. shield = false
  16. dagger = false
  17. local id = {502270913,925412603,918971862,220211718,656478412}
  18. local player = game.Players.LocalPlayer
  19. local C = player.Character
  20. local mouse = player:GetMouse()
  21. local humanoid = C:WaitForChild("Humanoid")
  22. local Music = Instance.new("Sound")
  23.     Music.SoundId = "http://www.roblox.com/asset/?id="..id[1]
  24.     Music.Name = "Music"
  25.     Music.Parent = C.Torso
  26.     Music.Volume = 1
  27.     Music:play()
  28.     Music.Looped = true
  29.    
  30. local trail = Instance.new("Beam")
  31. trail.Color = ColorSequence.new(Color3.new(0.0666667, 0.0666667, 0.0666667), Color3.new(0.0666667, 0.0666667, 0.0666667))
  32. trail.Parent = C.Torso
  33. trail.Attachment0 = C:FindFirstChild("Left Arm").LeftGripAttachment
  34. trail.Attachment1 = nil
  35.  
  36. local trail1 = Instance.new("Trail")
  37. trail1.Color = ColorSequence.new(Color3.new(0.0666667, 0.0666667, 0.0666667), Color3.new(0.0666667, 0.0666667, 0.0666667))
  38. trail1.Parent = C.Torso
  39. trail1.Lifetime = 0.5
  40. trail1.Attachment0 = C:FindFirstChild("Torso").NeckAttachment
  41. trail1.Attachment1 = C:FindFirstChild("Torso").WaistCenterAttachment
  42.  
  43. local particleemitter = Instance.new("ParticleEmitter")
  44. particleemitter.LightInfluence = 1
  45. particleemitter.Lifetime = NumberRange.new(0.05, 0.1)
  46. particleemitter.Speed = NumberRange.new(50)
  47. particleemitter.Rate = 0.2
  48. particleemitter.Texture = "rbxassetid://1028077058"
  49. particleemitter.SpreadAngle = Vector2.new(255, 255)
  50. particleemitter.VelocitySpread = 255
  51. particleemitter.Parent = C.Torso
  52.  
  53. C.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/Asset?ID=28440069'
  54.  
  55. p=game:service"InsertService":LoadAsset(106690045)
  56. p.Parent=C
  57. p:MoveTo(C.Torso.Position)
  58. p:MakeJoints()
  59.  
  60. local shirtid=360358649
  61. local pantsid=360358755
  62. function kill(nam, parent) if parent:FindFirstChild(nam) then
  63.     parent[nam]:Destroy()
  64. end end
  65.     kill("roblox", C.Torso)
  66.     kill("Shirt", C)
  67.     kill("Pants", C)
  68.     local s=Instance.new("Shirt")
  69.     s.Parent=C
  70.     s.ShirtTemplate="http://www.roblox.com/asset/?id="..(shirtid-1)
  71.     local t=Instance.new("Pants")
  72.     t.Parent=C
  73.     t.PantsTemplate="http://www.roblox.com/asset/?id="..(pantsid-1)
  74.  
  75. mouse.KeyDown:connect(function(key)
  76.  
  77. if key == "c" then
  78.     local animation=Instance.new("Animation",C)
  79.    animation.Name="LocalAnimation"
  80.    animation.AnimationId = "http://www.roblox.com/Asset?ID=28488254"
  81.    local anim=humanoid:LoadAnimation(animation)
  82.    anim:Play()
  83.     C.LocalAnimation:remove()
  84. end
  85.  
  86. if key == "p" then
  87.     C.Torso.Music:Remove()
  88.     local Music = Instance.new("Sound")
  89.     Music.SoundId = "rbxassetid://"..id[math.random(1,5)]
  90.     Music.Name = "Music"
  91.     Music.Parent = C.Torso
  92.     Music.Volume = 1
  93.     Music:play()
  94.     Music.Looped = true
  95. end
  96. if key == "e" then
  97.     local Sound = Instance.new("Sound")
  98.     Sound.SoundId = "http://www.roblox.com/asset/?id=287614966"
  99.     Sound.Parent = workspace
  100.     Sound.Volume = 10
  101.     Sound:play()
  102.    local animation=Instance.new("Animation",C)
  103.    animation.Name="LocalAnimation"
  104.    animation.AnimationId = "http://www.roblox.com/Asset?ID=52155728"
  105.    local anim=humanoid:LoadAnimation(animation)
  106.    anim:Play()
  107.     C.LocalAnimation:remove()
  108. wait(2)
  109. anim:Stop()
  110.     end
  111.  
  112. if key == "f" then
  113.     if sword == true then
  114.    local animation=Instance.new("Animation",C)
  115.    animation.Name="LocalAnimation"
  116.    animation.AnimationId = "http://www.roblox.com/Asset?ID=30188122"
  117.    local anim=humanoid:LoadAnimation(animation)
  118.    anim:Play()
  119.     C.LocalAnimation:remove()
  120.    wait(0.5)
  121.    local ball = Instance.new("Part")
  122.    ball.Parent = C
  123.    ball.Color = Color3.new(0.152941, 0.27451, 0.176471)
  124.    ball.Size = Vector3.new(1, 1, 1)
  125.    ball.Shape = Enum.PartType.Ball
  126.    ball.CanCollide = false
  127.    ball.Anchored = true
  128.    ball.Transparency = 0.1
  129.    ball.Material = Enum.Material.Granite
  130.    ball.CFrame = CFrame.new(C.Torso.Position)
  131. function onTouch(part)
  132. local humanoid = part.Parent:findFirstChild("Humanoid")
  133. if (humanoid ~=nil) then
  134. humanoid.Health = humanoid.Health - 2
  135. end
  136. end
  137.  
  138. C.Part.Touched:connect(onTouch)
  139.     local Music = Instance.new("Sound")
  140.     Music.SoundId = "http://www.roblox.com/asset/?id=1087356234"
  141.     Music.Parent = workspace
  142.     Music.Volume = 10
  143.     Music:play()
  144.    for i=1,50 do
  145.    ball.Size = ball.Size + Vector3.new(2, 2, 2)
  146. wait(0.01)
  147. end
  148. ball:Remove()
  149. Music:Remove()
  150.     end
  151.     if dagger == true then
  152.     local animation=Instance.new("Animation",C)
  153.    animation.Name="LocalAnimation"
  154.    animation.AnimationId = "http://www.roblox.com/Asset?ID=30188122"
  155.    local anim=humanoid:LoadAnimation(animation)
  156.    anim:Play()
  157.     C.LocalAnimation:remove()
  158.    wait(0.5)
  159.    local ball = Instance.new("Part")
  160.    local mesh = Instance.new("SpecialMesh")
  161.    ball.Parent = C
  162.    ball.Color = Color3.new(0.458824, 0, 0)
  163.    ball.Size = Vector3.new(1, 1, 1)
  164.    ball.Shape = Enum.PartType.Ball
  165.    ball.CanCollide = false
  166.    ball.Anchored = true
  167.    ball.Transparency = 0.1
  168.    ball.Material = Enum.Material.Neon
  169.    ball.CFrame = CFrame.new(C.Torso.Position)
  170.    mesh.Parent = ball
  171.    mesh.MeshId = "rbxassetid://689879827"
  172. mesh.Scale = Vector3.new(0.001, 0.001, 0.001)
  173. function onTouch(part)
  174. local humanoid = part.Parent:findFirstChild("Humanoid")
  175. if (humanoid ~=nil) then
  176. humanoid.Health = humanoid.Health - 0.25
  177. end
  178. end
  179.  
  180. C.Part.Touched:connect(onTouch)
  181.     local Music = Instance.new("Sound")
  182.     Music.SoundId = "http://www.roblox.com/asset/?id=280247455"
  183.     Music.Parent = workspace
  184.     Music.Volume = 10
  185.     Music:play()
  186.    for i=1,100 do
  187.    mesh.Scale = mesh.Scale + Vector3.new(0.08, 0.08, 0.08)
  188. ball.Size = ball.Size + Vector3.new(7, 7, 7)
  189. wait(0.015)
  190. end
  191. ball:Remove()
  192. Music:Remove()
  193. anim:remove()
  194.     end
  195.     end
  196.  
  197. if key == "z" then
  198.     C.sword.Mesh.MeshId = "rbxassetid://524503990"
  199.     C.sword.Mesh.TextureId = "rbxassetid://524504010"
  200.     C.sword.Mesh.Scale = Vector3.new(0.005, 0.005, 0.005)
  201.     C.sword.Mesh.Offset = Vector3.new(0, -1, 0)
  202.     dagger = true
  203.     sword = false
  204. end
  205. if key == "x" then
  206.     C.sword.Mesh.MeshId = "rbxassetid://500489601"
  207.     C.sword.Mesh.TextureId = "rbxassetid://500489609"
  208.     C.sword.Mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
  209.     C.sword.Mesh.Offset = Vector3.new(0, 0, 0)
  210.     dagger = false
  211.     sword = true
  212. end
  213.  
  214. if key == "q" then
  215.  
  216.     local LS = C.Torso["Left Shoulder"]
  217.     local mt = mouse.Target
  218.     local hl = mt.Parent:findFirstChild("Humanoid")
  219.     if hl == nil then return end
  220.     for i=1,15 do
  221.     LS.C0 = LS.C0 * CFrame.Angles(0, 0, -0.1)
  222.     wait(0.01)
  223.     end
  224.     local hit = Instance.new("Attachment")
  225.     hit.Parent = mt.Parent:FindFirstChild("Torso")
  226.     trail.Attachment1 = hit
  227.     local Music = Instance.new("Sound")
  228.     Music.SoundId = "http://www.roblox.com/asset/?id=821439273"
  229.     Music.Parent = C.Torso
  230.     Music.Volume = 0.5
  231.     Music:play()
  232. hl.WalkSpeed = 3
  233. hl.Health = hl.Health - 55
  234.     for i=1,15 do
  235.     LS.C0 = LS.C0 * CFrame.Angles(0, 0, 0.1)
  236.     wait(0.01)
  237.     end
  238. trail.Attachment1 = nil
  239. wait(2.5)
  240. hl.WalkSpeed = 16
  241.  
  242. end
  243.    
  244. function onButton1Down(mouse)
  245.    
  246.     if sword == true then
  247.        
  248.     local animation=Instance.new("Animation",C)
  249.     animation.Name="LocalAnimation"
  250.     animation.AnimationId = "http://www.roblox.com/Asset?ID=186934658"
  251.     local anim=humanoid:LoadAnimation(animation)
  252.     anim:Play()
  253.         C.LocalAnimation:remove()
  254.     local mt = mouse.Target
  255.     local hl = mt.Parent:findFirstChild("Humanoid")
  256.     if hl == nil then return end
  257.     if (C.Torso.Position - mt.Position).magnitude < 8 then
  258.     wait(0.33)
  259.     local Music = Instance.new("Sound")
  260.     Music.SoundId = "http://www.roblox.com/asset/?id=566593606"
  261.     Music.Parent = C.Torso
  262.     Music.Volume = 10
  263.     Music:play()
  264.     hl.Health = 0
  265.     end
  266.     end
  267.    
  268.     if dagger == true then
  269.        
  270.     local animation=Instance.new("Animation",C)
  271.     animation.Name="LocalAnimation"
  272.     animation.AnimationId = "http://www.roblox.com/Asset?ID=94161333"
  273.     local anim=humanoid:LoadAnimation(animation)
  274.     anim:Play()
  275.         C.LocalAnimation:remove()
  276.     local mt = mouse.Target
  277.     local hl = mt.Parent:findFirstChild("Humanoid")
  278.     if hl == nil then return end
  279.     if (C.Torso.Position - mt.Position).magnitude < 8 then
  280.     wait(0.33)
  281.     local Music = Instance.new("Sound")
  282.     Music.SoundId = "http://www.roblox.com/asset/?id=566593606"
  283.     Music.Parent = C.Torso
  284.     Music.Volume = 10
  285.     Music:play()
  286.     hl.Health = 0
  287.     end
  288.     end
  289. end
  290. end)
  291.  
  292.  
  293. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  294.  
  295. C.Humanoid.MaxHealth = math.huge
  296. C.Humanoid.Health = math.huge
  297. C.Humanoid.WalkSpeed = 12
  298. local sword = Instance.new("Part")
  299. local weld = Instance.new("Weld")
  300. local mesh = Instance.new("SpecialMesh")
  301. local Pullout = Instance.new("Sound")
  302. local RS = C.Torso["Right Shoulder"]
  303. local N = C.Torso["Neck"]
  304. local LS = C.Torso["Left Shoulder"]
  305. local RH = C.Torso["Right Hip"]
  306. local LH = C.Torso["Left Hip"]
  307. N.C0 = N.C0 * CFrame.Angles(0.1,0,0)
  308. RH.C0 = RH.C0 * CFrame.Angles(-0.07,0,0)
  309. LS.C0 = LS.C0 * CFrame.Angles(-0.07,0,0)
  310. RS.C0 = RS.C0 * CFrame.Angles(-0.07,0,0)
  311. LH.C0 = LH.C0 * CFrame.Angles(-0.07,0,0)
  312. sword.Name = "sword"
  313. sword.Size = Vector3.new(0.8, 2, 0.1)
  314. Pullout.SoundId = "http://www.roblox.com/asset/?id=169310310"
  315. Pullout.Parent = C.Torso
  316. Pullout.Volume = 10
  317. Pullout:play()
  318. C.Animate.idle.Animation2:remove()
  319. sword.Parent = C
  320. sword.Anchored = false
  321. sword.CanCollide = false
  322. weld.Parent = C.Torso
  323. weld.Part0 = sword
  324. weld.Part1 = C:FindFirstChild("Right Arm")
  325. weld.C1 = CFrame.fromEulerAnglesXYZ(-1.5, -1.5, 0)
  326. weld.C0 = CFrame.new(1.15, -2, 0)
  327. mesh.MeshType = Enum.MeshType.FileMesh
  328. mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
  329. mesh.MeshId = "rbxassetid://500489601"
  330. mesh.TextureId = "rbxassetid://500489609"
  331. mesh.Parent = sword
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement