Upscalefanatic3

SWORD GUI FOR FENCING AND SWORD FIGHTS

Jan 23rd, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.49 KB | None | 0 0
  1. -- Objects
  2.  
  3. local SWORDGUI = Instance.new("ScreenGui")
  4. local MAIN = Instance.new("Frame")
  5. local DSG = Instance.new("Frame")
  6. local ImageLabel = Instance.new("ImageLabel")
  7. local TextLabel = Instance.new("TextLabel")
  8. local DSG_2 = Instance.new("Frame")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10. local TextLabel_3 = Instance.new("TextLabel")
  11. local fenval = Instance.new("TextBox")
  12. local changefen = Instance.new("TextButton")
  13. local TextLabel_4 = Instance.new("TextLabel")
  14. local onfen = Instance.new("TextButton")
  15. local offsw = Instance.new("TextButton")
  16. local TextLabel_5 = Instance.new("TextLabel")
  17. local onsw = Instance.new("TextButton")
  18. local offfen = Instance.new("TextButton")
  19. local changesw = Instance.new("TextButton")
  20. local swval = Instance.new("TextBox")
  21. local TextLabel_6 = Instance.new("TextLabel")
  22. local shadowsp = Instance.new("TextButton")
  23. local illumina = Instance.new("TextButton")
  24. local windf = Instance.new("TextButton")
  25. local ghostw = Instance.new("TextButton")
  26. local icedg = Instance.new("TextButton")
  27. local touchst = Instance.new("TextButton")
  28.  
  29. -- Properties
  30.  
  31. SWORDGUI.Name = "SWORDGUI"
  32. SWORDGUI.Parent = game.CoreGui
  33.  
  34. MAIN.Name = "MAIN"
  35. MAIN.Parent = SWORDGUI
  36. MAIN.Active = true
  37. MAIN.BackgroundColor3 = Color3.new(1, 1, 1)
  38. MAIN.BorderSizePixel = 0
  39. MAIN.Draggable = true
  40. MAIN.Position = UDim2.new(0.389502764, 0, 0.193798453, 0)
  41. MAIN.Selectable = true
  42. MAIN.Size = UDim2.new(0, 239, 0, 462)
  43.  
  44. DSG.Name = "DSG"
  45. DSG.Parent = MAIN
  46. DSG.BackgroundColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  47. DSG.BorderSizePixel = 0
  48. DSG.Position = UDim2.new(0.00339427916, 0, -0.0123049486, 0)
  49. DSG.Size = UDim2.new(0, 239, 0, 6)
  50.  
  51. ImageLabel.Parent = MAIN
  52. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  53. ImageLabel.BackgroundTransparency = 1
  54. ImageLabel.Position = UDim2.new(0.259414226, 0, 0, 0)
  55. ImageLabel.Size = UDim2.new(0, 115, 0, 75)
  56. ImageLabel.Image = "rbxassetid://109049502"
  57.  
  58. TextLabel.Parent = MAIN
  59. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  60. TextLabel.BackgroundTransparency = 1
  61. TextLabel.Position = UDim2.new(0.213389128, 0, 0, 0)
  62. TextLabel.Size = UDim2.new(0, 137, 0, 56)
  63. TextLabel.Font = Enum.Font.Bodoni
  64. TextLabel.FontSize = Enum.FontSize.Size14
  65. TextLabel.Text = "SWORD GUI"
  66. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  67. TextLabel.TextScaled = true
  68. TextLabel.TextSize = 14
  69. TextLabel.TextWrapped = true
  70.  
  71. DSG_2.Name = "DSG"
  72. DSG_2.Parent = MAIN
  73. DSG_2.BackgroundColor3 = Color3.new(0.560784, 0.560784, 0.560784)
  74. DSG_2.BorderSizePixel = 0
  75. DSG_2.Position = UDim2.new(0.00130222901, 0, 0.454862535, 0)
  76. DSG_2.Size = UDim2.new(0, 239, 0, 6)
  77.  
  78. TextLabel_2.Parent = MAIN
  79. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  80. TextLabel_2.BackgroundTransparency = 1
  81. TextLabel_2.Position = UDim2.new(0.213389128, 0, 0.194767445, 0)
  82. TextLabel_2.Size = UDim2.new(0, 137, 0, 18)
  83. TextLabel_2.Font = Enum.Font.Bodoni
  84. TextLabel_2.FontSize = Enum.FontSize.Size14
  85. TextLabel_2.Text = "FENCING"
  86. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  87. TextLabel_2.TextScaled = true
  88. TextLabel_2.TextSize = 14
  89. TextLabel_2.TextWrapped = true
  90.  
  91. TextLabel_3.Parent = MAIN
  92. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  93. TextLabel_3.BackgroundTransparency = 1
  94. TextLabel_3.Position = UDim2.new(0.163179919, 0, 0.474372029, 0)
  95. TextLabel_3.Size = UDim2.new(0, 162, 0, 24)
  96. TextLabel_3.Font = Enum.Font.Bodoni
  97. TextLabel_3.FontSize = Enum.FontSize.Size14
  98. TextLabel_3.Text = "Sword Fights on the Heights"
  99. TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
  100. TextLabel_3.TextScaled = true
  101. TextLabel_3.TextSize = 14
  102. TextLabel_3.TextWrapped = true
  103.  
  104. fenval.Name = "fenval"
  105. fenval.Parent = MAIN
  106. fenval.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  107. fenval.BorderSizePixel = 0
  108. fenval.Position = UDim2.new(0.786610901, 0, 0.293604642, 0)
  109. fenval.Size = UDim2.new(0, 38, 0, 23)
  110. fenval.Font = Enum.Font.SourceSans
  111. fenval.FontSize = Enum.FontSize.Size14
  112. fenval.Text = "0"
  113. fenval.TextColor3 = Color3.new(1, 1, 1)
  114. fenval.TextSize = 14
  115.  
  116. changefen.Name = "changefen"
  117. changefen.Parent = MAIN
  118. changefen.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  119. changefen.BorderSizePixel = 0
  120. changefen.Position = UDim2.new(0.0376569033, 0, 0.290697664, 0)
  121. changefen.Size = UDim2.new(0, 168, 0, 24)
  122. changefen.Font = Enum.Font.SourceSans
  123. changefen.FontSize = Enum.FontSize.Size14
  124. changefen.Text = "CHANGE REACH"
  125. changefen.TextColor3 = Color3.new(1, 1, 1)
  126. changefen.TextSize = 14
  127.  
  128. TextLabel_4.Parent = MAIN
  129. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  130. TextLabel_4.BackgroundTransparency = 1
  131. TextLabel_4.Position = UDim2.new(0.0376569182, 0, 0.389534891, 0)
  132. TextLabel_4.Size = UDim2.new(0, 137, 0, 18)
  133. TextLabel_4.Font = Enum.Font.Bodoni
  134. TextLabel_4.FontSize = Enum.FontSize.Size14
  135. TextLabel_4.Text = "SHOW HITBOX"
  136. TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
  137. TextLabel_4.TextScaled = true
  138. TextLabel_4.TextSize = 14
  139. TextLabel_4.TextWrapped = true
  140.  
  141. onfen.Name = "onfen"
  142. onfen.Parent = MAIN
  143. onfen.BackgroundColor3 = Color3.new(0.454902, 0.603922, 0.423529)
  144. onfen.BorderSizePixel = 0
  145. onfen.Position = UDim2.new(0.57740587, 0, 0.380813956, 0)
  146. onfen.Size = UDim2.new(0, 39, 0, 24)
  147. onfen.Font = Enum.Font.SourceSans
  148. onfen.FontSize = Enum.FontSize.Size14
  149. onfen.Text = "ON"
  150. onfen.TextColor3 = Color3.new(1, 1, 1)
  151. onfen.TextSize = 14
  152.  
  153. offsw.Name = "offsw"
  154. offsw.Parent = MAIN
  155. offsw.BackgroundColor3 = Color3.new(0.603922, 0.32549, 0.254902)
  156. offsw.BorderSizePixel = 0
  157. offsw.Position = UDim2.new(0.786610901, 0, 0.380813956, 0)
  158. offsw.Size = UDim2.new(0, 39, 0, 24)
  159. offsw.Font = Enum.Font.SourceSans
  160. offsw.FontSize = Enum.FontSize.Size14
  161. offsw.Text = "OFF"
  162. offsw.TextColor3 = Color3.new(1, 1, 1)
  163. offsw.TextSize = 14
  164.  
  165. TextLabel_5.Parent = MAIN
  166. TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
  167. TextLabel_5.BackgroundTransparency = 1
  168. TextLabel_5.Position = UDim2.new(0.00418411568, 0, 0.93579483, 0)
  169. TextLabel_5.Size = UDim2.new(0, 137, 0, 18)
  170. TextLabel_5.Font = Enum.Font.Bodoni
  171. TextLabel_5.FontSize = Enum.FontSize.Size14
  172. TextLabel_5.Text = "SHOW HITBOX"
  173. TextLabel_5.TextColor3 = Color3.new(0, 0, 0)
  174. TextLabel_5.TextScaled = true
  175. TextLabel_5.TextSize = 14
  176. TextLabel_5.TextWrapped = true
  177.  
  178. onsw.Name = "onsw"
  179. onsw.Parent = MAIN
  180. onsw.BackgroundColor3 = Color3.new(0.454902, 0.603922, 0.423529)
  181. onsw.BorderSizePixel = 0
  182. onsw.Position = UDim2.new(0.57740587, 0, 0.922681987, 0)
  183. onsw.Size = UDim2.new(0, 39, 0, 24)
  184. onsw.Font = Enum.Font.SourceSans
  185. onsw.FontSize = Enum.FontSize.Size14
  186. onsw.Text = "ON"
  187. onsw.TextColor3 = Color3.new(1, 1, 1)
  188. onsw.TextSize = 14
  189.  
  190. offfen.Name = "offfen"
  191. offfen.Parent = MAIN
  192. offfen.BackgroundColor3 = Color3.new(0.603922, 0.32549, 0.254902)
  193. offfen.BorderSizePixel = 0
  194. offfen.Position = UDim2.new(0.786610901, 0, 0.922681987, 0)
  195. offfen.Size = UDim2.new(0, 39, 0, 24)
  196. offfen.Font = Enum.Font.SourceSans
  197. offfen.FontSize = Enum.FontSize.Size14
  198. offfen.Text = "OFF"
  199. offfen.TextColor3 = Color3.new(1, 1, 1)
  200. offfen.TextSize = 14
  201.  
  202. changesw.Name = "changesw"
  203. changesw.Parent = MAIN
  204. changesw.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  205. changesw.BorderSizePixel = 0
  206. changesw.Position = UDim2.new(0.0376569033, 0, 0.526628375, 0)
  207. changesw.Size = UDim2.new(0, 168, 0, 24)
  208. changesw.Font = Enum.Font.SourceSans
  209. changesw.FontSize = Enum.FontSize.Size14
  210. changesw.Text = "CHANGE REACH"
  211. changesw.TextColor3 = Color3.new(1, 1, 1)
  212. changesw.TextSize = 14
  213.  
  214. swval.Name = "swval"
  215. swval.Parent = MAIN
  216. swval.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  217. swval.BorderSizePixel = 0
  218. swval.Position = UDim2.new(0.786610901, 0, 0.52737087, 0)
  219. swval.Size = UDim2.new(0, 38, 0, 23)
  220. swval.Font = Enum.Font.SourceSans
  221. swval.FontSize = Enum.FontSize.Size14
  222. swval.Text = "0"
  223. swval.TextColor3 = Color3.new(1, 1, 1)
  224. swval.TextSize = 14
  225.  
  226. TextLabel_6.Parent = MAIN
  227. TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
  228. TextLabel_6.BackgroundTransparency = 1
  229. TextLabel_6.Position = UDim2.new(0.330543935, 0, 0.590909123, 0)
  230. TextLabel_6.Size = UDim2.new(0, 81, 0, 12)
  231. TextLabel_6.Font = Enum.Font.Bodoni
  232. TextLabel_6.FontSize = Enum.FontSize.Size14
  233. TextLabel_6.Text = "TELEPORTING"
  234. TextLabel_6.TextColor3 = Color3.new(0, 0, 0)
  235. TextLabel_6.TextSize = 14
  236. TextLabel_6.TextWrapped = true
  237.  
  238. shadowsp.Name = "shadowsp"
  239. shadowsp.Parent = MAIN
  240. shadowsp.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  241. shadowsp.BorderSizePixel = 0
  242. shadowsp.Position = UDim2.new(0.146443516, 0, 0.632034659, 0)
  243. shadowsp.Size = UDim2.new(0, 168, 0, 15)
  244. shadowsp.Font = Enum.Font.SourceSans
  245. shadowsp.FontSize = Enum.FontSize.Size14
  246. shadowsp.Text = "ShadowSphere"
  247. shadowsp.TextColor3 = Color3.new(1, 1, 1)
  248. shadowsp.TextSize = 14
  249.  
  250. illumina.Name = "illumina"
  251. illumina.Parent = MAIN
  252. illumina.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  253. illumina.BorderSizePixel = 0
  254. illumina.Position = UDim2.new(0.146443516, 0, 0.681818247, 0)
  255. illumina.Size = UDim2.new(0, 168, 0, 15)
  256. illumina.Font = Enum.Font.SourceSans
  257. illumina.FontSize = Enum.FontSize.Size14
  258. illumina.Text = "Illumina"
  259. illumina.TextColor3 = Color3.new(1, 1, 1)
  260. illumina.TextSize = 14
  261.  
  262. windf.Name = "windf"
  263. windf.Parent = MAIN
  264. windf.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  265. windf.BorderSizePixel = 0
  266. windf.Position = UDim2.new(0.146443516, 0, 0.729437292, 0)
  267. windf.Size = UDim2.new(0, 168, 0, 15)
  268. windf.Font = Enum.Font.SourceSans
  269. windf.FontSize = Enum.FontSize.Size14
  270. windf.Text = "WindForce"
  271. windf.TextColor3 = Color3.new(1, 1, 1)
  272. windf.TextSize = 14
  273.  
  274. ghostw.Name = "ghostw"
  275. ghostw.Parent = MAIN
  276. ghostw.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  277. ghostw.BorderSizePixel = 0
  278. ghostw.Position = UDim2.new(0.146443516, 0, 0.774891853, 0)
  279. ghostw.Size = UDim2.new(0, 168, 0, 15)
  280. ghostw.Font = Enum.Font.SourceSans
  281. ghostw.FontSize = Enum.FontSize.Size14
  282. ghostw.Text = "Ghost Walker"
  283. ghostw.TextColor3 = Color3.new(1, 1, 1)
  284. ghostw.TextSize = 14
  285.  
  286. icedg.Name = "icedg"
  287. icedg.Parent = MAIN
  288. icedg.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  289. icedg.BorderSizePixel = 0
  290. icedg.Position = UDim2.new(0.138075322, 0, 0.824675381, 0)
  291. icedg.Size = UDim2.new(0, 168, 0, 15)
  292. icedg.Font = Enum.Font.SourceSans
  293. icedg.FontSize = Enum.FontSize.Size14
  294. icedg.Text = "Ice Dagger"
  295. icedg.TextColor3 = Color3.new(1, 1, 1)
  296. icedg.TextSize = 14
  297.  
  298. touchst.Name = "touchst"
  299. touchst.Parent = MAIN
  300. touchst.BackgroundColor3 = Color3.new(0.603922, 0.603922, 0.603922)
  301. touchst.BorderSizePixel = 0
  302. touchst.Position = UDim2.new(0.138075322, 0, 0.872294366, 0)
  303. touchst.Size = UDim2.new(0, 168, 0, 15)
  304. touchst.Font = Enum.Font.SourceSans
  305. touchst.FontSize = Enum.FontSize.Size14
  306. touchst.Text = "TouchStone"
  307. touchst.TextColor3 = Color3.new(1, 1, 1)
  308. touchst.TextSize = 14
  309.  
  310. changefen.MouseButton1Click:connect(function()
  311. game.Players.LocalPlayer.Backpack.Foil.Handle.Size = Vector3.new(1,1,fenval.Text)
  312. end)
  313.  
  314. onfen.MouseButton1Click:connect(function()
  315. local box = Instance.new("SelectionBox", game.Players.LocalPlayer.Backpack.Foil.Handle)
  316. box.Adornee = game.Players.LocalPlayer.Backpack.Foil.Handle
  317. end)
  318.  
  319. offfen.MouseButton1Click:connect(function()
  320. game.Players.LocalPlayer.Backpack.Foil.Handle.SelectionBox:Destroy()
  321. end)
  322.  
  323. changesw.MouseButton1Click:connect(function()
  324. game.Players.LocalPlayer.Backpack.Sword.Handle.Size = Vector3.new(1,1,swval.Text)
  325. game.Players.LocalPlayer.Backpack.Illumina.Handle.Size = Vector3.new(1,1,swval.Text)
  326. game.Players.LocalPlayer.Backpack.Windforce.Handle.Size = Vector3.new(1,1,swval.Text)
  327. game.Players.LocalPlayer.Backpack["Ghostwalker (0)"].Handle.Size = Vector3.new(1,1,swval.Text)
  328. game.Players.LocalPlayer.Backpack["Ice Dagger"].Handle.Size = Vector3.new(1,1,swval.Text)
  329. end)
  330.  
  331. icedg.MouseButton1Click:connect(function()
  332. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(2,257,325))
  333. end)
  334.  
  335. illumina.MouseButton1Click:connect(function()
  336. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-456,390,80))
  337. end)
  338.  
  339. shadowsp.MouseButton1Click:connect(function()
  340. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-205,470,256))
  341. end)
  342.  
  343. windf.MouseButton1Click:connect(function()
  344. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(83,636,-278))
  345. end)
  346.  
  347. ghostw.MouseButton1Click:connect(function()
  348. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(351,22,128))
  349. end)
  350.  
  351. touchst.MouseButton1Click:connect(function()
  352. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-209,280,-68))
  353. end)
  354.  
  355. onsw.MouseButton1Click:connect(function()
  356. local box1 = Instance.new("SelectionBox", game.Players.LocalPlayer.Backpack.Sword.Handle)
  357. box1.Adornee = game.Players.LocalPlayer.Backpack.Sword.Handle
  358. local box2 = Instance.new("SelectionBox", game.Players.LocalPlayer.Backpack.Illumina.Handle)
  359. box2.Adornee = game.Players.LocalPlayer.Backpack.Illumina.Handle
  360. local box3 = Instance.new("SelectionBox", game.Players.LocalPlayer.Backpack.Windforce.Handle)
  361. box3.Adornee = game.Players.LocalPlayer.Backpack.Windforce.Handle
  362. local box4 = Instance.new("SelectionBox", game.Players.LocalPlayer.Backpack["Ghostwalker (0)"].Handle)
  363. box4.Adornee = game.Players.LocalPlayer.Backpack.Ghostwalker.Handle
  364. local box4 = Instance.new("SelectionBox", game.Players.LocalPlayer.Backpack["Ice Dagger"].Handle)
  365. box4.Adornee = game.Players.LocalPlayer.Backpack["Ice Dagger"].Handle
  366. end)
  367.  
  368.  
  369. offsw.MouseButton1Click:connect(function()
  370. game.Players.LocalPlayer.Backpack.Sword.Handle.SelectionBox:Destroy()
  371. game.Players.LocalPlayer.Backpack.Illumina.Handle.SelectionBox:Destroy()
  372. game.Players.LocalPlayer.Backpack.Windforce.Handle.SelectionBox:Destroy()
  373. game.Players.LocalPlayer.Backpack["Ghostwalker (0)"].Handle.SelectionBox:Destroy()
  374. game.Players.LocalPlayer.Backpack["Ice Dagger"].Handle.SelectionBox:Destroy()
  375. end)
Add Comment
Please, Sign In to add comment