Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local b = "Palm Island" -- change to your island name
- local a = 1 -- change to what number rock u want to farm
- local PirateSimulator = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Title_2 = Instance.new("TextLabel")
- local KillAll = Instance.new("TextButton")
- local AF = Instance.new("TextButton")
- --Properties:
- PirateSimulator.Name = "PirateSimulator"
- PirateSimulator.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Main.Name = "Main"
- Main.Parent = PirateSimulator
- Main.BackgroundColor3 = Color3.new(0, 0, 0)
- Main.Position = UDim2.new(0.221798778, 0, 0.178470254, 0)
- Main.Size = UDim2.new(0, 586, 0, 433)
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(0, 586, 0, 50)
- Title.Font = Enum.Font.Code
- Title.Text = "Pirate Simulator"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.TextSize = 14
- Title.TextWrapped = true
- Title_2.Name = "Title"
- Title_2.Parent = Main
- Title_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Title_2.BackgroundTransparency = 1
- Title_2.Position = UDim2.new(0, 0, 0.115473442, 0)
- Title_2.Size = UDim2.new(0, 586, 0, 108)
- Title_2.Font = Enum.Font.Code
- Title_2.Text = "Scripts and gui made by Poki Hero"
- Title_2.TextColor3 = Color3.new(1, 1, 1)
- Title_2.TextScaled = true
- Title_2.TextSize = 14
- Title_2.TextWrapped = true
- KillAll.Name = "KillAll"
- KillAll.Parent = Main
- KillAll.BackgroundColor3 = Color3.new(0.458824, 0.458824, 0.458824)
- KillAll.BorderSizePixel = 0
- KillAll.Position = UDim2.new(0, 0, 0.401847571, 0)
- KillAll.Size = UDim2.new(0, 200, 0, 50)
- KillAll.Font = Enum.Font.Code
- KillAll.Text = "Kill All"
- KillAll.TextColor3 = Color3.new(0, 0, 0)
- KillAll.TextScaled = true
- KillAll.TextSize = 14
- KillAll.TextWrapped = true
- AF.Name = "AF"
- AF.Parent = Main
- AF.BackgroundColor3 = Color3.new(0.458824, 0.458824, 0.458824)
- AF.BorderSizePixel = 0
- AF.Position = UDim2.new(0.658703089, 0, 0.401847541, 0)
- AF.Size = UDim2.new(0, 200, 0, 50)
- AF.Font = Enum.Font.Code
- AF.Text = "Auto Farm"
- AF.TextColor3 = Color3.new(0, 0, 0)
- AF.TextScaled = true
- AF.TextSize = 14
- AF.TextWrapped = true
- Main.Active = true
- Main.Draggable = true
- KillAll.MouseButton1Click:Connect(function()
- while wait() do
- for i , v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- if v.Character.Humanoid.Health ~= 0 then
- local a = game.Players.LocalPlayer
- local b = a.Character.HumanoidRootPart
- b.CFrame = v.Character.HumanoidRootPart.CFrame
- local A_1 = "Hit"
- local A_2 =
- {
- [1] =
- {
- [1] = game:GetService("Workspace")[v.Name].Humanoid,
- [2] = game:GetService("Workspace")[v.Name].LowerTorso
- }
- }
- local A_3 = game:GetService("Workspace")[a.Name].HumanoidRootPart
- local Event = game:GetService("ReplicatedStorage").ReplicationManagers.HitPlayer
- Event:FireServer(A_1, A_2, A_3)
- Event:FireServer(A_1, A_2, A_3)
- Event:FireServer(A_1, A_2, A_3)
- Event:FireServer(A_1, A_2, A_3)
- Event:FireServer(A_1, A_2, A_3)
- Event:FireServer(A_1, A_2, A_3)
- Event:FireServer(A_1, A_2, A_3)
- end
- end
- end
- end
- end)
- AF.MouseButton1Click:Connect(function()
- while wait() do
- local A_1 = "Hit"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").ResourceIslands["Crescent Island"].Resources.Rocks:FindFirstChild("Rock"..a).Rock.CFrame local A_2 = game:GetService("Workspace").ResourceIslands["Crescent Island"].Resources.Rocks:FindFirstChild("Rock"..a)
- local Event = game:GetService("ReplicatedStorage").ReplicationManagers.HitResource Event:FireServer(A_1, A_2)
- local A_1 = "UnloadCargo"
- wait(0.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Islands[b].Jerri.HumanoidRootPart.CFrame
- local A_2 = game:GetService("Workspace").Islands[b].Jerri
- local Event = game:GetService("ReplicatedStorage").ReplicationManagers.JerriRE
- Event:FireServer(A_1, A_2)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement