Advertisement
Guest User

swordfight

a guest
Jun 14th, 2019
11,914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. local SFOTHGui = Instance.new("ScreenGui")
  2. local Open = Instance.new("TextButton")
  3. local MainFrame = Instance.new("Frame")
  4. local Top = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local NormalReach = Instance.new("TextButton")
  7. local LongReach = Instance.new("TextButton")
  8. local KillAllReach = Instance.new("TextButton")
  9. local ESP = Instance.new("TextButton")
  10. local Credit = Instance.new("TextLabel")
  11.  
  12. SFOTHGui.Name = "SFOTH Gui"
  13. SFOTHGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. SFOTHGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Open.Name = "Open"
  17. Open.Parent = SFOTHGui
  18. Open.BackgroundColor3 = Color3.new(0.933333, 0.933333, 0.933333)
  19. Open.BorderSizePixel = 0
  20. Open.Position = UDim2.new(0, 0, 0.448160529, 0)
  21. Open.Size = UDim2.new(0, 107, 0, 48)
  22. Open.Font = Enum.Font.SourceSansSemibold
  23. Open.Text = "Open"
  24. Open.TextColor3 = Color3.new(0, 0, 0)
  25. Open.TextScaled = true
  26. Open.TextSize = 14
  27. Open.TextWrapped = true
  28.  
  29. MainFrame.Name = "MainFrame"
  30. MainFrame.Parent = SFOTHGui
  31. MainFrame.Active = true
  32. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  33. MainFrame.BorderSizePixel = 0
  34. MainFrame.Position = UDim2.new(0.347615212, 0, 0.188963205, 0)
  35. MainFrame.Selectable = true
  36. MainFrame.Size = UDim2.new(0, 328, 0, 359)
  37.  
  38. Top.Name = "Top"
  39. Top.Parent = MainFrame
  40. Top.BackgroundColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  41. Top.BorderSizePixel = 0
  42. Top.Position = UDim2.new(-0.00299453735, 0, -9.15229321e-05, 0)
  43. Top.Size = UDim2.new(0, 328, 0, 74)
  44.  
  45. TextLabel.Parent = Top
  46. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  47. TextLabel.BackgroundTransparency = 1
  48. TextLabel.Size = UDim2.new(0, 328, 0, 74)
  49. TextLabel.Text = "Sword Fight On The Heights Gui"
  50. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  51. TextLabel.TextScaled = true
  52. TextLabel.TextSize = 43
  53. TextLabel.TextStrokeTransparency = 0.89999997615814
  54. TextLabel.TextWrapped = true
  55.  
  56. NormalReach.Name = "Normal Reach"
  57. NormalReach.Parent = MainFrame
  58. NormalReach.BackgroundColor3 = Color3.new(0.886275, 0.886275, 0.886275)
  59. NormalReach.BorderSizePixel = 0
  60. NormalReach.Position = UDim2.new(0.240853652, 0, 0.283672154, 0)
  61. NormalReach.Size = UDim2.new(0, 167, 0, 35)
  62. NormalReach.Font = Enum.Font.SourceSansBold
  63. NormalReach.Text = "Normal Reach"
  64. NormalReach.TextColor3 = Color3.new(1, 1, 1)
  65. NormalReach.TextScaled = true
  66. NormalReach.TextSize = 14
  67. NormalReach.TextStrokeTransparency = 0.89999997615814
  68. NormalReach.TextWrapped = true
  69.  
  70. LongReach.Name = "Long Reach"
  71. LongReach.Parent = MainFrame
  72. LongReach.BackgroundColor3 = Color3.new(0.886275, 0.886275, 0.886275)
  73. LongReach.BorderSizePixel = 0
  74. LongReach.Position = UDim2.new(0.24390243, 0, 0.449638993, 0)
  75. LongReach.Size = UDim2.new(0, 167, 0, 35)
  76. LongReach.Font = Enum.Font.SourceSansBold
  77. LongReach.Text = "Long Reach"
  78. LongReach.TextColor3 = Color3.new(1, 1, 1)
  79. LongReach.TextScaled = true
  80. LongReach.TextSize = 14
  81. LongReach.TextStrokeTransparency = 0.89999997615814
  82. LongReach.TextWrapped = true
  83.  
  84. KillAllReach.Name = "Kill All Reach"
  85. KillAllReach.Parent = MainFrame
  86. KillAllReach.BackgroundColor3 = Color3.new(0.886275, 0.886275, 0.886275)
  87. KillAllReach.BorderSizePixel = 0
  88. KillAllReach.Position = UDim2.new(0.24390243, 0, 0.625555992, 0)
  89. KillAllReach.Size = UDim2.new(0, 167, 0, 39)
  90. KillAllReach.Font = Enum.Font.SourceSansBold
  91. KillAllReach.Text = "Kill All Reach"
  92. KillAllReach.TextColor3 = Color3.new(1, 1, 1)
  93. KillAllReach.TextScaled = true
  94. KillAllReach.TextSize = 14
  95. KillAllReach.TextStrokeTransparency = 0.89999997615814
  96. KillAllReach.TextWrapped = true
  97.  
  98. ESP.Name = "ESP"
  99. ESP.Parent = MainFrame
  100. ESP.BackgroundColor3 = Color3.new(0.886275, 0.886275, 0.886275)
  101. ESP.BorderSizePixel = 0
  102. ESP.Position = UDim2.new(0.243902445, 0, 0.784358263, 0)
  103. ESP.Size = UDim2.new(0, 167, 0, 39)
  104. ESP.Font = Enum.Font.SourceSansBold
  105. ESP.Text = "ESP"
  106. ESP.TextColor3 = Color3.new(1, 1, 1)
  107. ESP.TextScaled = true
  108. ESP.TextSize = 14
  109. ESP.TextStrokeTransparency = 0.89999997615814
  110. ESP.TextWrapped = true
  111.  
  112. Credit.Name = "Credit"
  113. Credit.Parent = MainFrame
  114. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  115. Credit.BackgroundTransparency = 1
  116. Credit.Position = UDim2.new(-0.00299444422, 0, 0.922005594, 0)
  117. Credit.Size = UDim2.new(0, 328, 0, 28)
  118. Credit.Font = Enum.Font.SourceSansBold
  119. Credit.Text = "Created by Viown"
  120. Credit.TextColor3 = Color3.new(1, 1, 1)
  121. Credit.TextScaled = true
  122. Credit.TextSize = 14
  123. Credit.TextStrokeTransparency = 0.89999997615814
  124. Credit.TextWrapped = true
  125.  
  126. function SCRIPT_VPSG79_FAKESCRIPT()
  127. local script = Instance.new('LocalScript')
  128. script.Parent = Open
  129. script.Parent.MouseButton1Click:Connect(function()
  130. if script.Parent.Text == "Open" then
  131. script.Parent.Parent.MainFrame.Visible = true;
  132. script.Parent.Text = "Close"
  133. else
  134. script.Parent.Parent.MainFrame.Visible = false;
  135. end
  136. end)
  137.  
  138. end
  139. coroutine.resume(coroutine.create(SCRIPT_VPSG79_FAKESCRIPT))
  140. function SCRIPT_LQFE84_FAKESCRIPT()
  141. local script = Instance.new('LocalScript')
  142. script.Parent = NormalReach
  143. script.Parent.MouseButton1Click:Connect(function()
  144. local scr=game.Players.LocalPlayer.Backpack.Sword
  145. a=Instance.new("SelectionBox",foil.Handle)
  146. a.Adornee=scr.Handle
  147. scr.Handle.Size=Vector3.new(1, 0.8, 4)
  148. scr.Equipped:connect(function()
  149. while wait() do
  150. game.Workspace[game.Players.LocalPlayer.Name].Foil.GripPos=Vector3.new(0,0,-30)
  151. end
  152. end)
  153. end)
  154.  
  155. end
  156. coroutine.resume(coroutine.create(SCRIPT_LQFE84_FAKESCRIPT))
  157. function SCRIPT_MCBZ74_FAKESCRIPT()
  158. local script = Instance.new('LocalScript')
  159. script.Parent = LongReach
  160. script.Parent.MouseButton1Click:Connect(function()
  161. local scr=game.Players.LocalPlayer.Backpack.Sword
  162. a=Instance.new("SelectionBox",scr.Handle)
  163. a.Adornee=scr.Handle
  164. scr.Handle.Size=Vector3.new(0.2,0.2,60)
  165. scr.Equipped:connect(function()
  166. while wait() do
  167. game.Workspace[game.Players.LocalPlayer.Name].Foil.GripPos=Vector3.new(0,0,-30)
  168. end
  169. end)
  170. end)
  171.  
  172.  
  173.  
  174. end
  175. coroutine.resume(coroutine.create(SCRIPT_MCBZ74_FAKESCRIPT))
  176. function SCRIPT_HKIJ88_FAKESCRIPT()
  177. local script = Instance.new('LocalScript')
  178. script.Parent = KillAllReach
  179. script.Parent.MouseButton1Click:Connect(function()
  180. local scr=game.Players.LocalPlayer.Backpack.Sword
  181. a=Instance.new("SelectionBox",scr.Handle)
  182. a.Adornee=scr.Handle
  183. scr.Handle.Size=Vector3.new(1000,1000,1000)
  184. scr.Equipped:connect(function()
  185. while wait() do
  186. game.Workspace[game.Players.LocalPlayer.Name].Foil.GripPos=Vector3.new(0,0,-30)
  187. end
  188. end)
  189. end)
  190.  
  191.  
  192.  
  193. end
  194. coroutine.resume(coroutine.create(SCRIPT_HKIJ88_FAKESCRIPT))
  195. function SCRIPT_LBJA77_FAKESCRIPT()
  196. local script = Instance.new('LocalScript')
  197. script.Parent = MainFrame
  198. script.Parent.Draggable = true;
  199.  
  200. end
  201. coroutine.resume(coroutine.create(SCRIPT_LBJA77_FAKESCRIPT))
  202. function SCRIPT_NAHZ76_FAKESCRIPT()
  203. local script = Instance.new('LocalScript')
  204. script.Parent = ESP
  205. script.Parent.MouseButton1Click:Connect(function()
  206. ALLYCOLOR = {0,255,255}
  207. ENEMYCOLOR = {255,0,0}
  208. TRANSPARENCY = 0.5
  209. HEALTHBAR_ACTIVATED = true
  210.  
  211.  
  212. function ESP()
  213.  
  214.  
  215. players = game:GetService("Players")
  216. faces = {"Front","Back","Bottom","Left","Right","Top"}
  217. currentPlayer = nil
  218. lplayer = players.LocalPlayer
  219.  
  220. players.PlayerAdded:Connect(function(p)
  221. currentPlayer = p
  222. p.CharacterAdded:Connect(function(character)
  223. createESP(character)
  224. end)
  225. end)
  226.  
  227. function checkPart(obj) if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end
  228.  
  229. function actualESP(obj)
  230.  
  231. for i=0,5 do
  232. surface = Instance.new("SurfaceGui",obj)
  233. surface.Face = Enum.NormalId[faces[i+1]]
  234. surface.AlwaysOnTop = true
  235.  
  236. frame = Instance.new("Frame",surface)
  237. frame.Size = UDim2.new(1,0,1,0)
  238. frame.BorderSizePixel = 0
  239. frame.BackgroundTransparency = TRANSPARENCY
  240. if currentPlayer.Team == players.LocalPlayer.Team then
  241. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3])
  242. else
  243. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])
  244. end
  245.  
  246. end
  247. end
  248.  
  249. function createHealthbar(hrp)
  250. board =Instance.new("BillboardGui",hrp)
  251. board.Name = "total"
  252. board.Size = UDim2.new(1,0,1,0)
  253. board.StudsOffset = Vector3.new(3,1,0)
  254. board.AlwaysOnTop = true
  255.  
  256. bar = Instance.new("Frame",board)
  257. bar.BackgroundColor3 = Color3.new(255,0,0)
  258. bar.BorderSizePixel = 0
  259. bar.Size = UDim2.new(0.2,0,4,0)
  260. bar.Name = "total2"
  261.  
  262. health = Instance.new("Frame",bar)
  263. health.BackgroundColor3 = Color3.new(0,255,0)
  264. health.BorderSizePixel = 0
  265. health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  266. hrp.Parent.Humanoid.Changed:Connect(function(property)
  267. hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  268. end)
  269. end
  270.  
  271. function createESP(c)
  272. bugfix = c:WaitForChild("Head")
  273. for i,v in pairs(c:GetChildren()) do
  274. if checkPart(v) then
  275. actualESP(v)
  276. end
  277. end
  278. if HEALTHBAR_ACTIVATED then
  279. createHealthbar(c:WaitForChild("HumanoidRootPart"))
  280. end
  281. end
  282.  
  283. for i,people in pairs(players:GetChildren())do
  284. if people ~= players.LocalPlayer then
  285. currentPlayer = people
  286.  
  287. createESP(people.Character)
  288. people.CharacterAdded:Connect(function(character)
  289. createESP(character)
  290. end)
  291. end
  292. end
  293.  
  294. end
  295.  
  296. ESP()
  297. end)
  298.  
  299. end
  300. coroutine.resume(coroutine.create(SCRIPT_NAHZ76_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement