Advertisement
LelzYT

Sword Simulator Script

Sep 1st, 2019
20,136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. -- Instances:
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local TextLabel = Instance.new("TextLabel")
  5. local kill = Instance.new("TextButton")
  6. local power = Instance.new("TextButton")
  7. local close = Instance.new("TextButton")
  8. local e = Instance.new("TextLabel")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10. local TextLabel_3 = Instance.new("TextLabel")
  11. local TextLabel_4 = Instance.new("TextLabel")
  12. local TextLabel_5 = Instance.new("TextLabel")
  13. local TextLabel_6 = Instance.new("TextLabel")
  14. local open = Instance.new("TextButton")
  15. --Properties:
  16. ScreenGui.Parent = game.CoreGui
  17. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18.  
  19. Frame.Parent = ScreenGui
  20. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  21. Frame.BackgroundTransparency = 0.31000000238419
  22. Frame.BorderSizePixel = 3
  23. Frame.Position = UDim2.new(0.321611732, 0, 0.260756195, 0)
  24. Frame.Size = UDim2.new(0, 348, 0, 196)
  25.  
  26. Frame.Active = true
  27. Frame.Draggable = true
  28.  
  29. TextLabel.Parent = Frame
  30. TextLabel.BackgroundColor3 = Color3.new(0.584314, 0.552941, 0.572549)
  31. TextLabel.BackgroundTransparency = 0.40000000596046
  32. TextLabel.BorderSizePixel = 0
  33. TextLabel.Size = UDim2.new(0, 348, 0, 50)
  34. TextLabel.Font = Enum.Font.SciFi
  35. TextLabel.Text = "Sword Sim"
  36. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  37. TextLabel.TextSize = 14
  38.  
  39. kill.Name = "kill"
  40. kill.Parent = Frame
  41. kill.BackgroundColor3 = Color3.new(0.258824, 0.329412, 0.313726)
  42. kill.Position = UDim2.new(0.0497387424, 0, 0.596938789, 0)
  43. kill.Size = UDim2.new(0, 120, 0, 43)
  44. kill.Font = Enum.Font.SciFi
  45. kill.Text = "Kill All"
  46. kill.TextColor3 = Color3.new(0, 0, 0)
  47. kill.TextSize = 14
  48.  
  49. power.Name = "power"
  50. power.Parent = Frame
  51. power.BackgroundColor3 = Color3.new(0.258824, 0.329412, 0.313726)
  52. power.Position = UDim2.new(0.590595424, 0, 0.596938789, 0)
  53. power.Size = UDim2.new(0, 120, 0, 43)
  54. power.Font = Enum.Font.SciFi
  55. power.Text = "Power"
  56. power.TextColor3 = Color3.new(0, 0, 0)
  57. power.TextSize = 14
  58.  
  59. close.Name = "close"
  60. close.Parent = Frame
  61. close.BackgroundColor3 = Color3.new(1, 1, 1)
  62. close.BackgroundTransparency = 1
  63. close.Position = UDim2.new(0.892946601, 0, 0, 0)
  64. close.Size = UDim2.new(0, 37, 0, 35)
  65. close.Font = Enum.Font.GothamSemibold
  66. close.Text = "Close Gui"
  67. close.TextColor3 = Color3.new(0.784314, 0, 0)
  68. close.TextSize = 30
  69.  
  70. TextLabel_2.Parent = Frame
  71. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  72. TextLabel_2.BackgroundTransparency = 1
  73. TextLabel_2.Position = UDim2.new(0.212643683, 0, 0.418367296, 0)
  74. TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
  75. TextLabel_2.Font = Enum.Font.Highway
  76. TextLabel_2.Text = "tahmeedisgone - script creator"
  77. TextLabel_2.TextColor3 = Color3.new(0.729412, 0.729412, 0.729412)
  78. TextLabel_2.TextSize = 14
  79.  
  80. TextLabel_5.Parent = Frame
  81. TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
  82. TextLabel_5.BackgroundTransparency = 1
  83. TextLabel_5.Position = UDim2.new(0.212643668, 0, 0.673469365, 0)
  84. TextLabel_5.Size = UDim2.new(0, 200, 0, 50)
  85. TextLabel_5.Font = Enum.Font.SciFi
  86. TextLabel_5.Text = "Warning:"
  87. TextLabel_5.TextColor3 = Color3.new(0.807843, 0.141176, 0.0235294)
  88. TextLabel_5.TextSize = 14
  89.  
  90. TextLabel_6.Parent = Frame
  91. TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
  92. TextLabel_6.BackgroundTransparency = 1
  93. TextLabel_6.Position = UDim2.new(0.212643683, 0, 0.816326559, 0)
  94. TextLabel_6.Size = UDim2.new(0, 200, 0, 50)
  95. TextLabel_6.Font = Enum.Font.SciFi
  96. TextLabel_6.Text = "Equip your sword for it to work."
  97. TextLabel_6.TextColor3 = Color3.new(0.807843, 0.141176, 0.0235294)
  98. TextLabel_6.TextSize = 14
  99.  
  100. open.Name = "Open"
  101. open.Parent = ScreenGui
  102. open.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  103. open.BackgroundTransparency = 0.20000000298023
  104. open.Position = UDim2.new(-0.0109890113, 0, 0.799217761, 0)
  105. open.Size = UDim2.new(0, 200, 0, 50)
  106. open.Visible = false
  107. open.Font = Enum.Font.GothamBold
  108. open.Text = "OPEN"
  109. open.TextColor3 = Color3.new(0.823529, 0.882353, 0.180392)
  110. open.TextSize = 14
  111.  
  112. kill.MouseButton1Down:Connect(function()
  113. local name = game.Players.LocalPlayer.Name
  114. for _,v in pairs(game.Players:GetChildren()) do
  115. if v.Name ~= game.Players.LocalPlayer.Name then
  116. local A_1 = game:GetService("Workspace")[v.Name].Humanoid
  117. local A_2 = 10140000000
  118. local Event = game:GetService("Workspace")[name].sword.Handle.dmg.RemoteEvent:FireServer(A_1, A_2)
  119. else
  120. print'equip your sword'
  121. end
  122. end
  123. end)
  124.  
  125. power.MouseButton1Down:Connect(function()
  126. function power()
  127. local name = game.Players.LocalPlayer.Name
  128. local Event = game:GetService("Workspace")[name].sword.Handle.up.RemoteEvent:FireServer()
  129. end
  130. game:GetService("RunService").stepped:connect(power)
  131. end)
  132.  
  133. close.MouseButton1Down:Connect(function()
  134. Frame.Visible = false
  135. open.Visible = true
  136. end)
  137.  
  138. open.MouseButton1Down:Connect(function()
  139. Frame.Visible = true
  140. open.Visible = false
  141. end)
  142. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement