Advertisement
YandZ1

Duel Blade

Mar 13th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. local UserName = game:GetService('Players').LocalPlayer.Name
  2. local Autoride = true
  3.  
  4. local Animations = {Swing = 170455431}
  5. local Icon, Mesh, Texture = 2304702014, 4776057466, 4695230072
  6. local Name, ToolTip = "Sword", "Duol Sword Made by Jett & Daniel"
  7.  
  8. local CE = {}
  9. local Variables = {
  10. workspace = game:GetService("Workspace"),
  11. players = game:GetService("Players")
  12. }
  13.  
  14. local MainUserP, MainUserW = Variables.players.LocalPlayer, Variables.workspace:FindFirstChild(UserName)
  15.  
  16. function CE:FireEvent(ItemName, Object, Property, Value)
  17. MainUserW:FindFirstChild(ItemName)["ServerControl"]:InvokeServer("SetProperty",{["Value"]=Value,["Property"]=Property,["Object"]=Object})
  18. end
  19.  
  20. game.Workspace.GiveTool:FireServer(2187476, "PompousTheCloud")
  21. MainUserP["Backpack"]:WaitForChild("PompousTheCloud").Parent = MainUserW
  22.  
  23. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"TextureId","rbxassetid://"..Icon)
  24.  
  25. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"MeshId","rbxassetid://"..Mesh)
  26. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"TextureId","rbxassetid://"..Texture)
  27. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Orientation",Vector3.new(-0,0,0))
  28. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Position",Vector3.new(14.981, 1.759, -11.839))
  29.  
  30. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Scale",Vector3.new(.92,1,1))
  31. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripForward",Vector3.new(-0.065, 0.057, -0.996))
  32. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripPos",Vector3.new(3, -2.4 , .98))
  33. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripRight",Vector3.new(0.997, -0.036, -0.068))
  34. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripUp",Vector3.new(0.04, 0.998, 0.055))
  35.  
  36. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"ToolTip",ToolTip)
  37. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["LocalScript"],"Disabled",true)
  38. CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"Name",Name)
  39. wait()
  40.  
  41. local Sword = MainUserW["Sword"]
  42.  
  43. MainUserP:GetMouse().Button1Down:Connect(function()
  44. if MainUserW:FindFirstChild("Sword") then
  45. if MainUserP:GetMouse().Target.Parent:FindFirstChild("HumanoidRootPart") or MainUserP:GetMouse().Target.Parent.Parent:FindFirstChild("HumanoidRootPart") then
  46. CE:FireEvent("Sword",Sword,"GripRight",Vector3.new(0.838, -0.026, -0.545))
  47. local Animation = Instance.new("Animation") -- Swing
  48. Animation.AnimationId = "rbxassetid://170455431"
  49. local AnimationLoader = MainUserP.Character.Humanoid:LoadAnimation(Animation)
  50. AnimationLoader:Play()
  51. AnimationLoader:AdjustSpeed(1)
  52. wait()
  53. Variables.workspace.GuiEvent:FireServer(".")
  54. wait(0.5)
  55. CE:FireEvent("Sword",MainUserW["."]:WaitForChild("Head"),"Parent",MainUserP:GetMouse().Target.Parent)
  56. CE:FireEvent("Sword",Sword,"GripRight",Vector3.new(1, -0.026, 0))
  57. end
  58. end
  59. end)
  60. print[["Duol Sword Made by Jett aka Icy#7325 & Daniel"]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement