Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- READ THIS
- -- L KEY TO SPAWN THING SYOU WANT
- -- K TO NOFOG
- -- 0 TO REMOVE GUI
- function getitem(thing)
- for _, v in pairs(game.Lighting.LootDrops:GetChildren()) do
- if string.find(string.lower(v.Name),string.lower(thing)) then
- return v
- end
- end
- end
- function spawnitem(plr, item, amount)
- for i = 1, amount do
- game.Workspace.Remote.PlaceMaterial:FireServer(item, (CFrame.new(plr.Character.HumanoidRootPart.Position-item.PrimaryPart.Position + Vector3.new(0,0,0))+CFrame.new()))
- end
- end
- local mouse = game.Players.LocalPlayer:GetMouse()
- local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- local text = Instance.new("TextBox", gui)
- text.Position = UDim2.new(0.88, 0, 0.7, 0)
- text.Size = UDim2.new(0, 150, 0, 60)
- mouse.KeyDown:connect(function(a)
- if a == "l" then
- spawnitem(game.Players.LocalPlayer, getitem(text.Text), 1)
- elseif a == "k" then
- game.Lighting.FogEnd = 10000000
- elseif a == "0" then
- gui:remove()
- script.Disabled = true
- script:remove()
- end
- end)
- script.Parent = gui
- gui.ResetOnSpawn = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement