Advertisement
Fish_2651

fish#2651PirateWarsScript

Apr 14th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.21 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local fish2651PirateWarsScript = Instance.new("ScreenGui")
  7. local Title = Instance.new("Frame")
  8. local Frame = Instance.new("Frame")
  9. local Frame_2 = Instance.new("Frame")
  10. local LINE = Instance.new("Frame")
  11. local TextLabel = Instance.new("TextLabel")
  12. local RedSpwan = Instance.new("TextButton")
  13. local BlueSpwan = Instance.new("TextButton")
  14. local Fort = Instance.new("TextButton")
  15. local TextLabel_2 = Instance.new("TextLabel")
  16. local Island1 = Instance.new("TextButton")
  17. local Island2 = Instance.new("TextButton")
  18. local Island3 = Instance.new("TextButton")
  19. local Island4 = Instance.new("TextButton")
  20. local Island5 = Instance.new("TextButton")
  21. local TextLabel_3 = Instance.new("TextLabel")
  22.  
  23. --Properties:
  24.  
  25. fish2651PirateWarsScript.Name = "fish#2651 Pirate Wars Script"
  26. fish2651PirateWarsScript.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  27. fish2651PirateWarsScript.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28.  
  29. Title.Name = "Title"
  30. Title.Parent = fish2651PirateWarsScript
  31. Title.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
  32. Title.Position = UDim2.new(0.016831683, 0, 0.177453026, 0)
  33. Title.Size = UDim2.new(0, 426, 0, 33)
  34.  
  35. Frame.Parent = Title
  36. Frame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  37. Frame.Position = UDim2.new(0, 0, 0.999874234, 0)
  38. Frame.Size = UDim2.new(0, 425, 0, 322)
  39.  
  40. Frame_2.Parent = Title
  41. Frame_2.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  42. Frame_2.Position = UDim2.new(0.0588576607, 0, 1.34864295, 0)
  43. Frame_2.Size = UDim2.new(0, 364, 0, 288)
  44.  
  45. LINE.Name = "LINE"
  46. LINE.Parent = Frame_2
  47. LINE.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  48. LINE.Position = UDim2.new(0.49999997, 0, 0, 0)
  49. LINE.Size = UDim2.new(0, 0, 0, 288)
  50.  
  51. TextLabel.Parent = Frame_2
  52. TextLabel.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
  53. TextLabel.Size = UDim2.new(0, 181, 0, 26)
  54. TextLabel.Font = Enum.Font.SourceSans
  55. TextLabel.Text = "Main Tp"
  56. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  57. TextLabel.TextScaled = true
  58. TextLabel.TextSize = 14.000
  59. TextLabel.TextWrapped = true
  60.  
  61. RedSpwan.Name = "RedSpwan"
  62. RedSpwan.Parent = TextLabel
  63. RedSpwan.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  64. RedSpwan.Position = UDim2.new(0, 0, 1, 0)
  65. RedSpwan.Size = UDim2.new(0, 181, 0, 28)
  66. RedSpwan.Font = Enum.Font.SourceSans
  67. RedSpwan.Text = "RedSpwan"
  68. RedSpwan.TextColor3 = Color3.fromRGB(0, 0, 0)
  69. RedSpwan.TextScaled = true
  70. RedSpwan.TextSize = 14.000
  71. RedSpwan.TextWrapped = true
  72.  
  73. BlueSpwan.Name = "BlueSpwan"
  74. BlueSpwan.Parent = TextLabel
  75. BlueSpwan.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  76. BlueSpwan.Position = UDim2.new(0, 0, 2.07692313, 0)
  77. BlueSpwan.Size = UDim2.new(0, 181, 0, 28)
  78. BlueSpwan.Font = Enum.Font.SourceSans
  79. BlueSpwan.Text = "BlueSpwan"
  80. BlueSpwan.TextColor3 = Color3.fromRGB(0, 0, 0)
  81. BlueSpwan.TextScaled = true
  82. BlueSpwan.TextSize = 14.000
  83. BlueSpwan.TextWrapped = true
  84.  
  85. Fort.Name = "Fort"
  86. Fort.Parent = TextLabel
  87. Fort.BackgroundColor3 = Color3.fromRGB(225, 255, 239)
  88. Fort.Position = UDim2.new(0, 0, 3.15384626, 0)
  89. Fort.Size = UDim2.new(0, 181, 0, 28)
  90. Fort.Font = Enum.Font.SourceSans
  91. Fort.Text = "Fort"
  92. Fort.TextColor3 = Color3.fromRGB(0, 0, 0)
  93. Fort.TextScaled = true
  94. Fort.TextSize = 14.000
  95. Fort.TextWrapped = true
  96.  
  97. TextLabel_2.Parent = Frame_2
  98. TextLabel_2.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
  99. TextLabel_2.Position = UDim2.new(0.502747238, 0, 0, 0)
  100. TextLabel_2.Size = UDim2.new(0, 181, 0, 26)
  101. TextLabel_2.Font = Enum.Font.SourceSans
  102. TextLabel_2.Text = "Islands"
  103. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  104. TextLabel_2.TextScaled = true
  105. TextLabel_2.TextSize = 14.000
  106. TextLabel_2.TextWrapped = true
  107.  
  108. Island1.Name = "Island1"
  109. Island1.Parent = TextLabel_2
  110. Island1.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  111. Island1.Position = UDim2.new(0, 0, 1, 0)
  112. Island1.Size = UDim2.new(0, 181, 0, 28)
  113. Island1.Font = Enum.Font.SourceSans
  114. Island1.Text = "Island1"
  115. Island1.TextColor3 = Color3.fromRGB(0, 0, 0)
  116. Island1.TextScaled = true
  117. Island1.TextSize = 14.000
  118. Island1.TextWrapped = true
  119.  
  120. Island2.Name = "Island2"
  121. Island2.Parent = TextLabel_2
  122. Island2.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  123. Island2.Position = UDim2.new(0, 0, 2.07692313, 0)
  124. Island2.Size = UDim2.new(0, 181, 0, 28)
  125. Island2.Font = Enum.Font.SourceSans
  126. Island2.Text = "Island2"
  127. Island2.TextColor3 = Color3.fromRGB(0, 0, 0)
  128. Island2.TextScaled = true
  129. Island2.TextSize = 14.000
  130. Island2.TextWrapped = true
  131.  
  132. Island3.Name = "Island3"
  133. Island3.Parent = TextLabel_2
  134. Island3.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  135. Island3.Position = UDim2.new(0, 0, 3.15384626, 0)
  136. Island3.Size = UDim2.new(0, 181, 0, 28)
  137. Island3.Font = Enum.Font.SourceSans
  138. Island3.Text = "Island3"
  139. Island3.TextColor3 = Color3.fromRGB(0, 0, 0)
  140. Island3.TextScaled = true
  141. Island3.TextSize = 14.000
  142. Island3.TextWrapped = true
  143.  
  144. Island4.Name = "Island4"
  145. Island4.Parent = TextLabel_2
  146. Island4.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  147. Island4.Position = UDim2.new(0, 0, 4.23076916, 0)
  148. Island4.Size = UDim2.new(0, 181, 0, 28)
  149. Island4.Font = Enum.Font.SourceSans
  150. Island4.Text = "Island4"
  151. Island4.TextColor3 = Color3.fromRGB(0, 0, 0)
  152. Island4.TextScaled = true
  153. Island4.TextSize = 14.000
  154. Island4.TextWrapped = true
  155.  
  156. Island5.Name = "Island5"
  157. Island5.Parent = TextLabel_2
  158. Island5.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  159. Island5.Position = UDim2.new(0, 0, 5.30769253, 0)
  160. Island5.Size = UDim2.new(0, 181, 0, 28)
  161. Island5.Font = Enum.Font.SourceSans
  162. Island5.Text = "Island5"
  163. Island5.TextColor3 = Color3.fromRGB(0, 0, 0)
  164. Island5.TextScaled = true
  165. Island5.TextSize = 14.000
  166. Island5.TextWrapped = true
  167.  
  168. TextLabel_3.Parent = Title
  169. TextLabel_3.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  170. TextLabel_3.Size = UDim2.new(0, 425, 0, 26)
  171. TextLabel_3.Font = Enum.Font.SourceSans
  172. TextLabel_3.Text = "Fish Pirate Wars script"
  173. TextLabel_3.TextColor3 = Color3.fromRGB(170, 0, 255)
  174. TextLabel_3.TextSize = 35.000
  175. TextLabel_3.TextWrapped = true
  176.  
  177. -- Scripts:
  178.  
  179. local function LJTTVT_fake_script() -- RedSpwan.LocalScript
  180. local script = Instance.new('LocalScript', RedSpwan)
  181.  
  182. local Plr = game.Players.LocalPlayer
  183. local char = Plr.Character
  184.  
  185. script.Parent.MouseButton1Click:Connect(function()
  186. char.HumanoidRootPart.CFrame = CFrame.new(115.055, 28.5244, 1027.76)--add number here\
  187.  
  188. end)
  189.  
  190. end
  191. coroutine.wrap(LJTTVT_fake_script)()
  192. local function UQDLLJR_fake_script() -- BlueSpwan.LocalScript
  193. local script = Instance.new('LocalScript', BlueSpwan)
  194.  
  195. local Plr = game.Players.LocalPlayer
  196. local char = Plr.Character
  197.  
  198. script.Parent.MouseButton1Click:Connect(function()
  199. char.HumanoidRootPart.CFrame = CFrame.new(-1814.79, 31.8213, 922.881)--add number here\
  200.  
  201. end)
  202.  
  203. end
  204. coroutine.wrap(UQDLLJR_fake_script)()
  205. local function DLCZN_fake_script() -- Fort.LocalScript
  206. local script = Instance.new('LocalScript', Fort)
  207.  
  208. local Plr = game.Players.LocalPlayer
  209. local char = Plr.Character
  210.  
  211. script.Parent.MouseButton1Click:Connect(function()
  212. char.HumanoidRootPart.CFrame = CFrame.new(-857.8, 119.175, 987.036)--add number here\
  213.  
  214. end)
  215.  
  216. end
  217. coroutine.wrap(DLCZN_fake_script)()
  218. local function SUXC_fake_script() -- Island1.LocalScript
  219. local script = Instance.new('LocalScript', Island1)
  220.  
  221. local Plr = game.Players.LocalPlayer
  222. local char = Plr.Character
  223.  
  224. script.Parent.MouseButton1Click:Connect(function()
  225. char.HumanoidRootPart.CFrame = CFrame.new(-156.096, 18.0012, 1372.9)--add number here\
  226.  
  227. end)
  228.  
  229. end
  230. coroutine.wrap(SUXC_fake_script)()
  231. local function YKZTAT_fake_script() -- Island2.LocalScript
  232. local script = Instance.new('LocalScript', Island2)
  233.  
  234. local Plr = game.Players.LocalPlayer
  235. local char = Plr.Character
  236.  
  237. script.Parent.MouseButton1Click:Connect(function()
  238. char.HumanoidRootPart.CFrame = CFrame.new(-349.135, 18.0015, 638.289)--add number here\
  239.  
  240. end)
  241.  
  242. end
  243. coroutine.wrap(YKZTAT_fake_script)()
  244. local function TTNSMNS_fake_script() -- Island3.LocalScript
  245. local script = Instance.new('LocalScript', Island3)
  246.  
  247. local Plr = game.Players.LocalPlayer
  248. local char = Plr.Character
  249.  
  250. script.Parent.MouseButton1Click:Connect(function()
  251. char.HumanoidRootPart.CFrame = CFrame.new(-1146.57, 18.0025, 637.777)--add number here\
  252.  
  253. end)
  254.  
  255. end
  256. coroutine.wrap(TTNSMNS_fake_script)()
  257. local function VWIRRKV_fake_script() -- Island4.LocalScript
  258. local script = Instance.new('LocalScript', Island4)
  259.  
  260. local Plr = game.Players.LocalPlayer
  261. local char = Plr.Character
  262.  
  263. script.Parent.MouseButton1Click:Connect(function()
  264. char.HumanoidRootPart.CFrame = CFrame.new(-1517.31, 18.0013, 602.405)--add number here\
  265.  
  266. end)
  267.  
  268. end
  269. coroutine.wrap(VWIRRKV_fake_script)()
  270. local function OAEZKJ_fake_script() -- Island5.LocalScript
  271. local script = Instance.new('LocalScript', Island5)
  272.  
  273. local Plr = game.Players.LocalPlayer
  274. local char = Plr.Character
  275.  
  276. script.Parent.MouseButton1Click:Connect(function()
  277. char.HumanoidRootPart.CFrame = CFrame.new(-1506.23, 18.0015, 1377.75)--add number here\
  278.  
  279. end)
  280.  
  281. end
  282. coroutine.wrap(OAEZKJ_fake_script)()
  283. local function ORMUL_fake_script() -- Title.LocalScript
  284. local script = Instance.new('LocalScript', Title)
  285.  
  286. local Plr = game.Players.LocalPlayer
  287.  
  288. Plr:GetMouse().KeyDown:Connect(function(K)
  289. if K == "e" then
  290. script.Parent.Visible = true
  291. end
  292. end)
  293.  
  294. local Plr = game.Players.LocalPlayer
  295.  
  296. Plr:GetMouse().KeyDown:Connect(function(K)
  297. if K == "r" then
  298. script.Parent.Visible = false
  299. end
  300. end)
  301. end
  302. coroutine.wrap(ORMUL_fake_script)()
  303. local function HSQWB_fake_script() -- Title.FlyManager
  304. local script = Instance.new('LocalScript', Title)
  305.  
  306.  
  307.  
  308.  
  309. local Key = "x" -- Lowercase Letter
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321. local Player = game.Players.LocalPlayer
  322. repeat wait() until Player.Character and Player.Character:FindFirstChild('Humanoid')
  323. local Mouse = Player:GetMouse()
  324. local IsFlying = false
  325. local flyv
  326. local flyg
  327. local IsRunning = false
  328. local f = 0
  329. local Speed = 100
  330. local LastSpeed = Speed
  331. local maxspeed = 1000
  332. local wdown = false
  333. local sdown = false
  334. Mouse.KeyDown:Connect(function(key)
  335. if key:lower() == Key then
  336. if IsFlying then
  337. IsFlying = false
  338. flyv:Destroy()
  339. flyg:Destroy()
  340. script.Parent.Frame.IsOn.Text = "Off"
  341. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(255,0,0)
  342. Player.Character:WaitForChild('Humanoid').PlatformStand = false
  343. else
  344. IsFlying = true
  345. flyv = Instance.new("BodyVelocity")
  346.  
  347. flyv.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  348. flyv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  349.  
  350. flyg = Instance.new("BodyGyro")
  351. flyg.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  352. flyg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  353. flyg.P = 1000
  354. flyg.D = 50
  355. script.Parent.Frame.IsOn.Text = "On"
  356. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(0,255,0)
  357. Player.Character:WaitForChild('Humanoid').PlatformStand = true
  358. end
  359. end
  360. end)
  361. script.Parent.Frame.TextButton.MouseButton1Click:Connect(function()
  362.  
  363. if IsFlying then
  364. IsFlying = false
  365. flyv:Destroy()
  366. flyg:Destroy()
  367. script.Parent.Frame.IsOn.Text = "Off"
  368. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(255,0,0)
  369. Player.Character:WaitForChild('Humanoid').PlatformStand = false
  370. else
  371. IsFlying = true
  372. flyv = Instance.new("BodyVelocity")
  373.  
  374. flyv.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  375. flyv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  376.  
  377. flyg = Instance.new("BodyGyro")
  378. flyg.Parent = Player.Character:FindFirstChild('Torso') or Player.Character:FindFirstChild('UpperTorso')
  379. flyg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  380. flyg.P = 1000
  381. flyg.D = 100
  382. script.Parent.Frame.IsOn.Text = "On"
  383. script.Parent.Frame.IsOn.TextColor3 = Color3.fromRGB(0,255,0)
  384. Player.Character:WaitForChild('Humanoid').PlatformStand = true
  385. end
  386. end)
  387. script.Parent.Frame.TextButton2.FocusLost:Connect(function(Entered)
  388. if Entered then
  389. local BeginSpeed = tonumber(script.Parent.Frame.TextButton2.Text)
  390. if BeginSpeed ~= nil then
  391. Speed = BeginSpeed
  392. print(BeginSpeed)
  393. end
  394. end
  395. end)
  396.  
  397.  
  398. spawn(function()
  399. while true do
  400. wait()
  401. if IsFlying then
  402.  
  403. flyg.CFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((f+0)*50*Speed/maxspeed),0,0)
  404. flyv.Velocity = workspace.CurrentCamera.CoordinateFrame.LookVector * Speed
  405. wait(0.1)
  406.  
  407. if Speed > maxspeed then
  408. Speed = maxspeed
  409. f = 1
  410. else
  411. f = 0
  412. end
  413. if Speed < 0 then
  414. Speed = 0
  415. f = 0
  416.  
  417. end
  418.  
  419. end
  420. if IsRunning then
  421. Speed = LastSpeed
  422. else
  423. if not Speed == 0 then
  424. LastSpeed = Speed
  425. end
  426. Speed = 0
  427. end
  428. end
  429.  
  430.  
  431. end)
  432.  
  433. Player.Character.Humanoid.Changed:Connect(function()
  434. if Player.Character.Humanoid.Health == 0 then
  435. if IsFlying then
  436. IsFlying = false
  437. flyg:Destroy()
  438. flyv:Destroy()
  439. end
  440. end
  441. end)
  442. Player.Character.Humanoid.Changed:Connect(function(Prop)
  443.  
  444. if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  445. IsRunning = false
  446. else
  447. IsRunning = true
  448. end
  449. end)
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457. end
  458. coroutine.wrap(HSQWB_fake_script)()
  459.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement