Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local haxs = Instance.new("ScreenGui")
- local Title = Instance.new("Frame")
- local TitleText = Instance.new("TextLabel")
- local Head = Instance.new("Frame")
- local TP = Instance.new("TextButton")
- local TPplayer = Instance.new("TextBox")
- local Cmds = Instance.new("Frame")
- local FallDamage = Instance.new("TextButton")
- local UnlimitedStamina = Instance.new("TextButton")
- local CmdsTitle = Instance.new("TextLabel")
- local Overhead = Instance.new("Frame")
- local Oil = Instance.new("TextButton")
- local Gunpowder = Instance.new("TextButton")
- local Crystal = Instance.new("TextButton")
- local Obsidian = Instance.new("TextButton")
- local Electronics = Instance.new("TextButton")
- local IronIngot = Instance.new("TextButton")
- local Ink = Instance.new("TextButton")
- local Polymer = Instance.new("TextButton")
- local Coal = Instance.new("TextButton")
- local Cloth = Instance.new("TextButton")
- local CopperIngot = Instance.new("TextButton")
- local MainFrame = Instance.new("Frame")
- local Stone = Instance.new("TextButton")
- local Wood = Instance.new("TextButton")
- local Foliage = Instance.new("TextButton")
- local Fiber = Instance.new("TextButton")
- local Iron = Instance.new("TextButton")
- local Gold = Instance.new("TextButton")
- local Credit = Instance.new("TextLabel")
- toggle = true
- -- Properties
- haxs.Name = "haxs"
- haxs.Parent = game.CoreGui
- Title.Name = "Title"
- Title.Parent = haxs
- Title.BackgroundColor3 = Color3.new(0,0,0)
- Title.BackgroundTransparency = 0.5
- Title.BorderColor3 = Color3.new(0, 0, 0)
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0, 0, 0.8, 0)
- Title.Size = UDim2.new(0, 150, 0, 30)
- TitleText.Name = "TitleText"
- TitleText.Parent = Title
- TitleText.BackgroundColor3 = Color3.new(255, 255, 255)
- TitleText.BackgroundTransparency = 1
- TitleText.Position = UDim2.new(0, 0, 0, 0)
- TitleText.Size = UDim2.new(0, 150, 0, 30)
- TitleText.Font = Enum.Font.Bodoni
- TitleText.Text = "Primitive Gui"
- TitleText.TextStrokeTransparency = 1
- TitleText.TextColor3 = Color3.new(255, 255, 255)
- TitleText.TextSize = 25
- TP.Name = "TP"
- TP.Parent = haxs
- TP.BackgroundColor3 = Color3.new(0, 0, 0)
- TP.BackgroundTransparency = 0.5
- TP.BorderSizePixel = 0
- TP.Position = UDim2.new(0, 0, 0.8, 35)
- TP.Size = UDim2.new(0, 150, 0, 20)
- TP.Font = Enum.Font.SourceSansLight
- TP.Text = "TELEPORT TO PLAYER"
- TP.TextStrokeTransparency = 1
- TP.TextColor3 = Color3.new(255, 255, 255)
- TP.TextSize = 18
- TPplayer.Name = "TPplayer"
- TPplayer.Parent = haxs
- TPplayer.BackgroundColor3 = Color3.new(0, 0, 0)
- TPplayer.BackgroundTransparency = 0.5
- TPplayer.BorderSizePixel = 0
- TPplayer.Position = UDim2.new(0, 6, 0.9, 8)
- TPplayer.Size = UDim2.new(0, 138, 0, 20)
- TPplayer.Font = Enum.Font.SourceSansLight
- TPplayer.Text = "PLAYER"
- TPplayer.TextStrokeTransparency = 1
- TPplayer.TextColor3 = Color3.new(255, 255, 255)
- TPplayer.TextScaled = true
- Cmds.Name = "Cmds"
- Cmds.Parent = Head
- Cmds.Active = true
- Cmds.BorderSizePixel = 0
- Cmds.BackgroundColor3 = Color3.new(0, 0, 0)
- Cmds.BackgroundTransparency = 0.5
- Cmds.BorderSizePixel = 0
- Cmds.Position = UDim2.new(0, 6, 11, -5)
- Cmds.Selectable = true
- Cmds.Size = UDim2.new(0, 440, 0, 90)
- CmdsTitle.Name = "CmdsTitle"
- CmdsTitle.Parent = Cmds
- CmdsTitle.BorderSizePixel = 0
- CmdsTitle.BackgroundColor3 = Color3.new(0, 0, 0)
- CmdsTitle.BackgroundTransparency = 0
- CmdsTitle.Position = UDim2.new(0, 0, 0, 0)
- CmdsTitle.Size = UDim2.new(0, 440, 0, 30)
- CmdsTitle.Font = Enum.Font.SourceSansLight
- CmdsTitle.Text = "Quick commands"
- CmdsTitle.TextStrokeTransparency = 1
- CmdsTitle.TextColor3 = Color3.new(255, 255, 255)
- CmdsTitle.TextSize = 25
- FallDamage.Name = "FallDamage"
- FallDamage.Parent = Cmds
- FallDamage.BorderSizePixel = 0
- FallDamage.BackgroundTransparency = 0.5
- FallDamage.BackgroundColor3 = Color3.new(0, 0, 0)
- FallDamage.Position = UDim2.new(0, 13, 0.35, 3)
- FallDamage.Size = UDim2.new(0, 414, 0, 23)
- FallDamage.Font = Enum.Font.SourceSansLight
- FallDamage.Text = "Remove Fall Damage"
- FallDamage.TextColor3 = Color3.new(255, 255, 255)
- FallDamage.TextSize = 20
- UnlimitedStamina.Name = "UnlimitedStamina"
- UnlimitedStamina.Parent = Cmds
- UnlimitedStamina.BorderSizePixel = 0
- UnlimitedStamina.BackgroundTransparency = 0.5
- UnlimitedStamina.BackgroundColor3 = Color3.new(0, 0, 0)
- UnlimitedStamina.Position = UDim2.new(0, 13, 0.35, 30)
- UnlimitedStamina.Size = UDim2.new(0, 414, 0, 23)
- UnlimitedStamina.Font = Enum.Font.SourceSansLight
- UnlimitedStamina.Text = "Unlimited Stamina"
- UnlimitedStamina.TextColor3 = Color3.new(255, 255, 255)
- UnlimitedStamina.TextSize = 20
- Head.Name = "Head"
- Head.Parent = haxs
- Head.Active = true
- Head.BackgroundColor3 = Color3.new(0, 0, 0)
- Head.BackgroundTransparency = 0.5
- Head.BorderSizePixel = 0
- Head.Position = UDim2.new(0.5, -225, 0.5, -150)
- Head.Selectable = true
- Head.Size = UDim2.new(0, 452, 0, 29)
- Overhead.Name = "Overhead"
- Overhead.Parent = Head
- Overhead.BorderSizePixel = 0
- Overhead.BackgroundColor3 = Color3.new(1, 1, 1)
- Overhead.Position = UDim2.new(0.00043797493, 0, 1.00482917, 0)
- Overhead.Size = UDim2.new(0, 452, 0, 3)
- Oil.Name = "Oil"
- Oil.Parent = MainFrame
- Oil.BackgroundTransparency = 0.5
- Oil.BorderSizePixel = 0
- Oil.BackgroundColor3 = Color3.new(0, 0, 0)
- Oil.Position = UDim2.new(0.516, 0, 0.75, 0)
- Oil.Size = UDim2.new(0, 200, 0, 20)
- Oil.Font = Enum.Font.SourceSansLight
- Oil.Text = "Unlimited Oil"
- Oil.TextColor3 = Color3.new(255, 255, 255)
- Oil.TextSize = 20
- Gunpowder.Name = "Gunpowder"
- Gunpowder.Parent = MainFrame
- Gunpowder.BackgroundTransparency = 0.5
- Gunpowder.BorderSizePixel = 0
- Gunpowder.BackgroundColor3 = Color3.new(0, 0, 0)
- Gunpowder.Position = UDim2.new(0.516, 0, 0.55, 0)
- Gunpowder.Size = UDim2.new(0, 200, 0, 20)
- Gunpowder.Font = Enum.Font.SourceSansLight
- Gunpowder.Text = "Unlimited Gunpowder"
- Gunpowder.TextColor3 = Color3.new(255, 255, 255)
- Gunpowder.TextSize = 20
- Crystal.Name = "Crystal"
- Crystal.BorderSizePixel = 0
- Crystal.Parent = MainFrame
- Crystal.BackgroundTransparency = 0.5
- Crystal.BackgroundColor3 = Color3.new(0, 0, 0)
- Crystal.Position = UDim2.new(0.03, 0, 0.45, 0)
- Crystal.Size = UDim2.new(0, 200, 0, 20)
- Crystal.Font = Enum.Font.SourceSansLight
- Crystal.Text = "Unlimited Crystal"
- Crystal.TextColor3 = Color3.new(255, 255, 255)
- Crystal.TextSize = 20
- Obsidian.Name = "Obsidian"
- Obsidian.Parent = MainFrame
- Obsidian.BackgroundTransparency = 0.5
- Obsidian.BorderSizePixel = 0
- Obsidian.BackgroundColor3 = Color3.new(0, 0, 0)
- Obsidian.Position = UDim2.new(0.03, 0, 0.35, 0)
- Obsidian.Size = UDim2.new(0, 200, 0, 20)
- Obsidian.Font = Enum.Font.SourceSansLight
- Obsidian.Text = "Unlimited Obsidian"
- Obsidian.TextColor3 = Color3.new(255, 255, 255)
- Obsidian.TextSize = 20
- Electronics.Name = "Electronics"
- Electronics.Parent = MainFrame
- Electronics.BorderSizePixel = 0
- Electronics.BackgroundTransparency = 0.5
- Electronics.BackgroundColor3 = Color3.new(0, 0, 0)
- Electronics.Position = UDim2.new(0.03, 0, 0.55, 0)
- Electronics.Size = UDim2.new(0, 200, 0, 20)
- Electronics.Font = Enum.Font.SourceSansLight
- Electronics.Text = "Unlimited Electronics"
- Electronics.TextColor3 = Color3.new(255, 255, 255)
- Electronics.TextSize = 20
- IronIngot.Name = "IronIngot"
- IronIngot.Parent = MainFrame
- IronIngot.BorderSizePixel = 0
- IronIngot.BackgroundTransparency = 0.5
- IronIngot.BackgroundColor3 = Color3.new(0, 0, 0)
- IronIngot.Position = UDim2.new(0.03, 0, 0.75, 0)
- IronIngot.Size = UDim2.new(0, 200, 0, 20)
- IronIngot.Font = Enum.Font.SourceSansLight
- IronIngot.Text = "Unlimited Iron Ingot"
- IronIngot.TextColor3 = Color3.new(255, 255, 255)
- IronIngot.TextSize = 20
- Ink.Name = "Ink"
- Ink.Parent = MainFrame
- Ink.BackgroundTransparency = 0.5
- Ink.BorderSizePixel = 0
- Ink.BackgroundColor3 = Color3.new(0, 0, 0)
- Ink.Position = UDim2.new(0.03, 0, 0.65, 0)
- Ink.Size = UDim2.new(0, 200, 0, 20)
- Ink.Font = Enum.Font.SourceSansLight
- Ink.Text = "Unlimited Ink"
- Ink.TextColor3 = Color3.new(255, 255, 255)
- Ink.TextSize = 20
- Polymer.Name = "Polymer"
- Polymer.Parent = MainFrame
- Polymer.BackgroundTransparency = 0.5
- Polymer.BorderSizePixel = 0
- Polymer.BackgroundColor3 = Color3.new(0, 0, 0)
- Polymer.Position = UDim2.new(0.516, 0, 0.65, 0)
- Polymer.Size = UDim2.new(0, 200, 0, 20)
- Polymer.Font = Enum.Font.SourceSansLight
- Polymer.Text = "Unlimited Polymers"
- Polymer.TextColor3 = Color3.new(255, 255, 255)
- Polymer.TextSize = 20
- Coal.Name = "Coal"
- Coal.Parent = MainFrame
- Coal.BackgroundTransparency = 0.5
- Coal.BorderSizePixel = 0
- Coal.BackgroundColor3 = Color3.new(0, 0, 0)
- Coal.Position = UDim2.new(0.516, 0, 0.45, 0)
- Coal.Size = UDim2.new(0, 200, 0, 20)
- Coal.Font = Enum.Font.SourceSansLight
- Coal.Text = "Unlimited Coal"
- Coal.TextColor3 = Color3.new(255, 255, 255)
- Coal.TextSize = 20
- Cloth.Name = "Cloth"
- Cloth.Parent = MainFrame
- Cloth.BackgroundTransparency = 0.5
- Cloth.BorderSizePixel = 0
- Cloth.BackgroundColor3 = Color3.new(0, 0, 0)
- Cloth.Position = UDim2.new(0.516, 0, 0.35, 0)
- Cloth.Size = UDim2.new(0, 200, 0, 20)
- Cloth.Font = Enum.Font.SourceSansLight
- Cloth.Text = "Unlimited Cloths"
- Cloth.TextColor3 = Color3.new(255, 255, 255)
- Cloth.TextSize = 20
- Gold.Name = "Gold"
- Gold.Parent = MainFrame
- Gold.BackgroundTransparency = 0.5
- Gold.BorderSizePixel = 0
- Gold.BackgroundColor3 = Color3.new(0, 0, 0)
- Gold.Position = UDim2.new(0.03, 0, 0.85, 0)
- Gold.Size = UDim2.new(0, 414, 0, 20)
- Gold.Font = Enum.Font.SourceSansLight
- Gold.Text = "Unlimited Gold"
- Gold.TextColor3 = Color3.new(255, 255, 255)
- Gold.TextSize = 20
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = Overhead
- MainFrame.BackgroundTransparency = 0.4
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.BorderColor3 = Color3.new(0, 0, 0)
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.0130805373, 0, 3.05461407, 0)
- MainFrame.Size = UDim2.new(0, 440, 0, 270)
- Stone.Name = "Stone"
- Stone.Parent = MainFrame
- Stone.BackgroundTransparency = 0.5
- Stone.BorderSizePixel = 0
- Stone.BackgroundColor3 = Color3.new(0, 0, 0)
- Stone.Position = UDim2.new(0.03, 0, 0.05, 0)
- Stone.Size = UDim2.new(0, 200, 0, 20)
- Stone.Font = Enum.Font.SourceSansLight
- Stone.Text = "Unlimited Stone"
- Stone.TextColor3 = Color3.new(255, 255, 255)
- Stone.TextSize = 20
- Wood.Name = "Wood"
- Wood.Parent = MainFrame
- Wood.BackgroundTransparency = 0.5
- Wood.BorderSizePixel = 0
- Wood.BackgroundColor3 = Color3.new(0, 0, 0)
- Wood.Position = UDim2.new(0.03, 0, 0.15, 0)
- Wood.Size = UDim2.new(0, 200, 0, 20)
- Wood.Font = Enum.Font.SourceSansLight
- Wood.Text = "Unlimited Wood"
- Wood.TextColor3 = Color3.new(255, 255, 255)
- Wood.TextSize = 20
- Foliage.Name = "Foliage"
- Foliage.Parent = MainFrame
- Foliage.BackgroundTransparency = 0.5
- Foliage.BorderSizePixel = 0
- Foliage.BackgroundColor3 = Color3.new(0, 0, 0)
- Foliage.Position = UDim2.new(0.516, 0, 0.15, 0)
- Foliage.Size = UDim2.new(0, 200, 0, 20)
- Foliage.Font = Enum.Font.SourceSansLight
- Foliage.Text = "Unlimited Foliage"
- Foliage.TextColor3 = Color3.new(255, 255, 255)
- Foliage.TextSize = 20
- Fiber.Name = "Fiber"
- Fiber.Parent = MainFrame
- Fiber.BackgroundTransparency = 0.5
- Fiber.BorderSizePixel = 0
- Fiber.BackgroundColor3 = Color3.new(0, 0, 0)
- Fiber.Position = UDim2.new(0.516, 0, 0.05, 0)
- Fiber.Size = UDim2.new(0, 200, 0, 20)
- Fiber.Font = Enum.Font.SourceSansLight
- Fiber.Text = "Unlimited Fiber"
- Fiber.TextColor3 = Color3.new(255, 255, 255)
- Fiber.TextSize = 20
- Iron.Name = "Iron"
- Iron.Parent = MainFrame
- Iron.BackgroundTransparency = 0.5
- Iron.BorderSizePixel = 0
- Iron.BackgroundColor3 = Color3.new(0, 0, 0)
- Iron.Position = UDim2.new(0.03, 0, 0.25, 0)
- Iron.Size = UDim2.new(0, 200, 0, 20)
- Iron.Font = Enum.Font.SourceSansLight
- Iron.Text = "Unlimited Iron"
- Iron.TextColor3 = Color3.new(255, 255, 255)
- Iron.TextSize = 20
- CopperIngot.Name = "CopperIngot"
- CopperIngot.Parent = MainFrame
- CopperIngot.BackgroundTransparency = 0.5
- CopperIngot.BorderSizePixel = 0
- CopperIngot.BackgroundColor3 = Color3.new(0, 0, 0)
- CopperIngot.Position = UDim2.new(0.516, 0, 0.25, 0)
- CopperIngot.Size = UDim2.new(0, 200, 0, 20)
- CopperIngot.Font = Enum.Font.SourceSansLight
- CopperIngot.Text = "Unlimited Copper Ingot"
- CopperIngot.TextColor3 = Color3.new(255, 255, 255)
- CopperIngot.TextSize = 20
- Credit.Name = "Credit"
- Credit.Parent = Head
- Credit.BackgroundColor3 = Color3.new(255, 255, 255)
- Credit.BackgroundTransparency = 1
- Credit.BorderSizePixel = 0
- Credit.Position = UDim2.new(0.269911498, 0, 0, 0)
- Credit.Size = UDim2.new(0, 219, 0, 29)
- Credit.Font = Enum.Font.SourceSansLight
- Credit.Text = "Made by : Manveet (Mark#7477), Z to toggle on/off"
- Credit.TextColor3 = Color3.new(255, 255, 255)
- Credit.TextSize = 20
- Wood.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Wood"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Stone.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Stone"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Fiber.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Fiber"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Foliage.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Foliage"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Iron.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Iron"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- CopperIngot.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Copper Ingot"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Ink.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Ink"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Cloth.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Cloth"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- IronIngot.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Iron Ingot"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Coal.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Coal"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Polymer.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Polymer"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- TP.MouseButton1Down:connect(function()
- local char = game.Players:FindFirstChild(TPplayer.Text).Character
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new( char.HumanoidRootPart.Position.X, char.HumanoidRootPart.Position.Y, char.HumanoidRootPart.Position.Z)
- end)
- Gold.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Gold"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Obsidian.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Obsidian"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Oil.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Oil"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- FallDamage.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.FallDamage:Destroy()
- end)
- UnlimitedStamina.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.SprintScript:Destroy()
- wait(1)
- local userInputService = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- local modStat = game.Workspace.Events.ModifyStat
- local character = player.Character
- local humanoid = character.Humanoid
- local stats = character.Stats
- local camera = game.Workspace.CurrentCamera
- local sprintSound = game.Workspace.Events.AddSound:InvokeServer("SprintSound", "rbxassetid://225453554", 0.1, 1, true, character.HumanoidRootPart)
- local sprinting = stats.Sprinting
- function sprint()
- while wait(0.5) do
- if sprinting.Value then
- modStat:FireServer(player, "Stamina", 0)
- if stats.Stamina.Value < 0 or humanoid.MoveDirection == Vector3.new(0, 0, 0) then
- onInputEnded({
- UserInputType = Enum.UserInputType.Keyboard,
- KeyCode = Enum.KeyCode.LeftShift
- })
- end
- end
- end
- end
- function onJump(active)
- if active and stats.Stamina.Value > 9 then
- modStat:FireServer(player, "Stamina", 0)
- elseif active then
- humanoid.JumpPower = 0
- spawn(function()
- while wait(1) do
- if stats.Stamina.Value > 9 then
- humanoid.JumpPower = 50
- break
- end
- end
- end)
- end
- end
- function onInput(input, onGui)
- if input.UserInputType == Enum.UserInputType.Keyboard and not onGui and input.KeyCode == Enum.KeyCode.LeftShift and not sprinting.Value and stats.Stamina.Value > 9 and humanoid.MoveDirection ~= Vector3.new(0, 0, 0) then
- sprinting.Value = true
- for i = 1, 10 do
- wait()
- camera.FieldOfView = camera.FieldOfView + 1
- end
- sprintSound:Play()
- end
- end
- function onInputEnded(input)
- if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.LeftShift and sprinting.Value then
- sprinting.Value = false
- for i = 1, 10 do
- wait()
- camera.FieldOfView = camera.FieldOfView - 1
- end
- sprintSound:Stop()
- end
- end
- spawn(sprint)
- userInputService.InputBegan:Connect(onInput)
- userInputService.InputEnded:Connect(onInputEnded)
- humanoid.Jumping:Connect(onJump)
- end)
- Electronics.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Electronics"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Gunpowder.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Gunpowder"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- Crystal.MouseButton1Down:connect(function()
- local A_1 = "Materials"
- local A_2 = "Crystal"
- local A_3 = 9999
- local plr = game.Players.LocalPlayer.Character
- local Event = plr.ItemHandler.Server.Drop
- Event:FireServer(A_1, A_2, A_3)
- end)
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- print("Z was pressed")
- if toggle == false then
- toggle = true
- wait(.5)
- Head.Visible = true
- Head:TweenPosition(UDim2.new(0.5,-225,0.5,-150))
- else
- toggle = false
- wait(.5)
- Head:TweenPosition(UDim2.new(Head.Position) + UDim2.new(Head.Position.X,3,0))
- wait(1)
- Head.Position = UDim2.new(-1,0,0.5,-150)
- Head.Visible = false
- end
- end
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.Z)
- spawn(function()
- while wait() do
- Overhead.BackgroundColor3 = Color3.fromHSV(tick() * 55 % 255/255, 1, 1)
- end
- end)
- Head.Draggable = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement