Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local A1={"M9"}
- local A2={"M4A1"}
- local A3={"Remington 870"}
- local A4={"AK-47"}
- local slot1 = A1
- local slot2 = A2
- local slot3 = A3
- local slot4 = A4
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot1[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot2[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot3[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot4[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("M9")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("M4A1")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("AK-47")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("Remington 870")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- game.Players.LocalPlayer.CharacterAdded:Connect(function(Character)
- wait(0.01)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot1[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot2[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot3[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- for Y,Z in pairs(workspace.Prison_ITEMS.giver:GetChildren())do if Z.Name==slot4[1]then local lol=workspace.Remote.ItemHandler:InvokeServer(Z.ITEMPICKUP)end end
- wait(0.1)
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("M9")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("M4A1")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("AK-47")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- local lp = game:GetService("Players").LocalPlayer
- local gun = lp.Backpack:FindFirstChild("Remington 870")
- local sM = require(gun:FindFirstChild("GunStates"))
- sM["MaxAmmo"] = math.huge
- sM["StoredAmmo"] = math.huge
- sM["CurrentAmmo"] = math.huge
- end)
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
- Text = "Gunspawn +auto respawn loaded succesfully, enjoy! made by Virtual Void#0001",
- Color = Color3.new(0,0,0),
- FontSize = Enum.FontSize.Size24,
- })
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local on = Instance.new("TextButton")
- local off = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Position = UDim2.new(0.0543615669, 0, 0.879947186, 0)
- Frame.Size = UDim2.new(0, 105, 0, 31)
- on.Name = "on"
- on.Parent = Frame
- on.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
- on.Size = UDim2.new(0, 105, 0, 31)
- on.Font = Enum.Font.SourceSans
- on.Text = "auto respawn on"
- on.TextColor3 = Color3.fromRGB(0, 0, 0)
- on.TextSize = 14.000
- on.Visible = false
- on.MouseButton1Down:Connect(function()
- on.Visible = false
- off.Visible = true
- local blah = (game.Players.LocalPlayer.Name)
- _G.Looop = false
- while _G.Looop == true do wait(0.1)
- if game:GetService("Workspace")[blah].Humanoid.Health == 0 then
- saved = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Position Saved";
- Text = "Success";
- })
- local A_1 = "LocalPlayer"
- local Event = game:GetService("Workspace").Remote.loadchar
- Event:InvokeServer(A_1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = saved
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Position Loaded";
- Text = "Success";
- })
- end
- end
- end)
- off.Name = "off"
- off.Parent = Frame
- off.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
- off.Size = UDim2.new(0, 105, 0, 31)
- off.Font = Enum.Font.SourceSans
- off.Text = "auto respawn off"
- off.TextColor3 = Color3.fromRGB(0, 0, 0)
- off.TextSize = 14.000
- off.Visible = true
- off.MouseButton1Down:Connect(function()
- off.Visible = false
- on.Visible = true
- local blah = (game.Players.LocalPlayer.Name)
- _G.Looop = true
- while _G.Looop == true do wait(0.1)
- if game:GetService("Workspace")[blah].Humanoid.Health == 0 then
- saved = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Position Saved";
- Text = "Success";
- })
- local A_1 = "LocalPlayer"
- local Event = game:GetService("Workspace").Remote.loadchar
- Event:InvokeServer(A_1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = saved
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Position Loaded";
- Text = "Success";
- })
- end
- end
- end)
Add Comment
Please, Sign In to add comment