Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SpawnGui = Instance.new("ScreenGui")
- local ItemName = Instance.new("TextBox")
- local TextButton = Instance.new("TextButton")
- local Count = Instance.new("TextBox")
- local TextButton_2 = Instance.new("TextButton")
- local Hide = Instance.new("TextButton")
- local Show = Instance.new("TextButton")
- local SpawnButton = Instance.new("TextButton")
- -- Properties
- Hide.Name = "Hide"
- Hide.Parent = SpawnGui
- Hide.BackgroundColor3 = Color3.new(1, 1, 1)
- Hide.Position = UDim2.new(0, 0, 0, 264)
- Hide.Size = UDim2.new(0, 50, 0, 35)
- Hide.Font = Enum.Font.SciFi
- Hide.FontSize = Enum.FontSize.Size10
- Hide.Text = "Hide <"
- Show.Name = "Show"
- Show.Parent = SpawnGui
- Show.BackgroundColor3 = Color3.new(1, 1, 1)
- Show.Position = UDim2.new(0, 0, 0, 264)
- Show.Size = UDim2.new(0, 50, 0, 35)
- Show.Visible = false
- Show.Font = Enum.Font.SciFi
- Show.FontSize = Enum.FontSize.Size10
- Show.Text = "Show >"
- SpawnGui.Name = "SpawnGui"
- SpawnGui.Parent = game.CoreGui
- ItemName.Name = "ItemName"
- ItemName.Parent = SpawnGui
- ItemName.BackgroundColor3 = Color3.new(0.529412, 0.529412, 0.529412)
- ItemName.Position = UDim2.new(0, 0, 0, 300)
- ItemName.Size = UDim2.new(0, 200, 0, 50)
- ItemName.Font = Enum.Font.SciFi
- ItemName.FontSize = Enum.FontSize.Size14
- ItemName.Text = "Item"
- TextButton.Parent = ItemName
- TextButton.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- TextButton.Position = UDim2.new(0, 200, 0, 0)
- TextButton.Size = UDim2.new(0, 50, 0, 50)
- TextButton.Font = Enum.Font.SciFi
- TextButton.FontSize = Enum.FontSize.Size10
- TextButton.Text = "Item OK!"
- Count.Name = "Count"
- Count.Parent = SpawnGui
- Count.BackgroundColor3 = Color3.new(0.529412, 0.529412, 0.529412)
- Count.Position = UDim2.new(0, 0, 0, 350)
- Count.Size = UDim2.new(0, 200, 0, 50)
- Count.Font = Enum.Font.SciFi
- Count.FontSize = Enum.FontSize.Size14
- Count.Text = "Stack in item"
- TextButton_2.Parent = Count
- TextButton_2.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- TextButton_2.Position = UDim2.new(0, 200, 0, 0)
- TextButton_2.Size = UDim2.new(0, 50, 0, 50)
- TextButton_2.Font = Enum.Font.SciFi
- TextButton_2.FontSize = Enum.FontSize.Size10
- TextButton_2.Text = "Stack OK!"
- SpawnButton.Name = "SpawnButton"
- SpawnButton.Parent = SpawnGui
- SpawnButton.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- SpawnButton.Position = UDim2.new(0, 0, 0, 451)
- SpawnButton.Size = UDim2.new(0, 250, 0, 40)
- SpawnButton.Font = Enum.Font.SciFi
- SpawnButton.FontSize = Enum.FontSize.Size10
- SpawnButton.Text = "Spawn!"
- SpawnButton.TextColor3 = Color3.new(0, 0, 0)
- lightup = function(button)
- coroutine.resume(coroutine.create(function()
- local origincolor = button.BackgroundColor3
- button.BackgroundColor3 = Color3.new(0, 1, 0)
- wait(0.1)
- button.BackgroundColor3 = origincolor
- end))
- end
- function changename()
- lightup(TextButton)
- nameofitem = ItemName.Text
- end
- TextButton.MouseButton1Down:connect(changename)
- function changeamount()
- lightup(TextButton_2)
- Amount = tonumber(Count.Text)
- end
- TextButton_2.MouseButton1Down:connect(changeamount)
- HideGui = function()
- lightup(Hide)
- for _, v in pairs (SpawnGui:GetChildren()) do
- v.Visible = false
- end
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
- Show.Visible = true
- end
- Hide.MouseButton1Down:connect(HideGui)
- ShowGui = function()
- lightup(Show)
- for _, v in pairs (SpawnGui:GetChildren()) do
- v.Visible = true
- end
- Show.Visible = false
- end
- Show.MouseButton1Down:connect(ShowGui)
- local player = game.Players.LocalPlayer
- local user = player.Character;
- local cam = workspace.CurrentCamera;
- function spawnitem()
- lightup(SpawnButton)
- if Amount and nameofitem then
- for i = 1, Amount do
- local player = game.Players.LocalPlayer
- local user = player.Character;
- local cam = workspace.CurrentCamera;
- local hit, position =
- workspace:FindPartOnRayWithIgnoreList(Ray.new((user.Torso.CFrame*CFrame.new(0,
- 0, -5)).p, Vector3.new(0, -60, 0)), {cam, workspace.Terrain});
- local area = CFrame.new(position+Vector3.new(0, 3, 0))*CFrame.Angles(0, math.rad(math.random(0, 359)), 0);
- local origin = game.Players.LocalPlayer.Character.Torso.CFrame;
- local cframe = area*origin:toObjectSpace(game.Players.LocalPlayer.Character.Torso.CFrame);
- game.Workspace.resources.events.createItemInWorld:FireServer(10, tostring(nameofitem), cframe)
- end
- end
- end
- SpawnButton.MouseButton1Down:connect(spawnitem)
- plr = game.Players.LocalPlayer
- hum = plr.Character.HumanoidRootPart
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "t" then
- if mouse.Target then
- hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
- end
- end
- end)
- local setkey = "y" -- change to something like "g" or whatever to change it
- local waitduration = 0.5 -- the amount of time before the ESP updates (removes all current ESP objects and makes new ones)
- --=you don't have to edit below but you can i guess=--
- local plr = game:GetService('Players').LocalPlayer
- function getteam(plr) -- yeah i did this instead of getting their actual team because for some reason that doesnt work sometimes idk why
- local thang = nil
- if plr.TeamColor then
- for i,v in pairs(game:GetService('Teams'):GetChildren()) do
- if v.TeamColor == plr.TeamColor then
- thang = v
- end
- end
- end
- return thang
- end
- local plr = game:GetService('Players').LocalPlayer
- if plr:FindFirstChild('Zz1pF800p8lDrsOQgGiqa') ==nil then
- local thingy = Instance.new('IntValue',plr)
- thingy.Name="Zz1pF800p8lDrsOQgGiqa"
- thingy.AncestryChanged:connect(function()
- wait()
- thingy.Parent = plr
- end)
- local mou = plr:GetMouse()
- local active = false
- function invert(Color)
- return Color3.new((255 - Color.r * 255)/255, (255 - Color.g * 255)/255, (255 - Color.b * 255)/255)
- end
- function heil()
- for i,v in pairs(game:GetService('CoreGui'):GetChildren()) do
- if v:IsA('Folder') and (game:GetService('Players'):FindFirstChild(v.Name) or v:FindFirstChildOfClass("BillboardGui") or v:FindFirstChildOfClass("BoxHandleAdornment")) then
- v:Destroy()
- end
- end
- if active == true then
- for i,v in pairs(game:GetService('Players'):GetChildren()) do
- if v.Character and v~=plr then
- if game:GetService('CoreGui'):FindFirstChild(v.Name) == nil then
- local folder = Instance.new('Folder',game:GetService('CoreGui'))
- folder.Name = v.Name
- if v.Character:FindFirstChild('Head') then
- local gui = Instance.new('BillboardGui',folder)
- gui.Adornee = v.Character.Head
- gui.AlwaysOnTop = true
- gui.LightInfluence = 0
- gui.Size = UDim2.new(10,0,2,0)
- gui.StudsOffset=Vector3.new(0,4,0)
- local text = Instance.new('TextLabel',gui)
- if getteam(v) then
- text.BackgroundColor3 = v.TeamColor.Color
- text.TextColor3 = invert(v.TeamColor.Color)
- text.BorderColor3 = v.TeamColor.Color
- else
- text.BackgroundColor3 = Color3.new(1,1,1)
- text.TextColor3 = Color3.new(0,0,0)
- text.BorderColor3 = Color3.new(1,1,01)
- end
- text.BorderSizePixel = 2
- text.Size = UDim2.new(1,0,1,0)
- text.TextScaled = true
- text.Text = v.Name
- text.TextYAlignment = Enum.TextYAlignment.Top
- text.Font = Enum.Font.SourceSansBold
- local text2 = Instance.new('TextLabel',text)
- text2.BackgroundTransparency = 1
- text2.Size = UDim2.new(1,0,0.3,0)
- text2.Position = UDim2.new(0,0,0.7,0)
- text2.TextScaled = true
- if getteam(v) then
- text2.Text = [[Team: "]]..getteam(v).Name..[["]]
- else
- text2.Text = [[Team: "None"]]
- end
- text2.Font = Enum.Font.SourceSansBold
- if getteam(v) then
- text2.TextColor3 = invert(v.TeamColor.Color)
- else
- text2.TextColor3 = Color3.new(0,0,0)
- end
- end
- if (v.Character:FindFirstChild('Head')) then
- for _,part in pairs(v.Character:GetChildren()) do
- if part:IsA('BasePart') then
- local coru=coroutine.wrap(function()
- local endtransparency = part.Transparency
- local adorn = Instance.new('BoxHandleAdornment',folder)
- adorn.Name = v.Name
- if part.Name ~= "Head" then
- adorn.Size = part.Size
- else
- adorn.Size = (part.Size)-Vector3.new(part.Size.X/2,0,0)
- end
- adorn.Adornee = part
- adorn.AlwaysOnTop = true
- adorn.ZIndex = 5
- adorn.Transparency = endtransparency
- adorn.Color3 = Color3.fromRGB(255, 44, 17)
- local adorn2 = Instance.new('BoxHandleAdornment',folder)
- adorn2.Name = v.Name
- if part.Name ~= "Head" then
- adorn2.Size = part.Size*1.1
- else
- adorn2.Size = (part.Size*1.1)-Vector3.new(part.Size.X/2,0,0)
- end
- adorn2.Adornee = part
- adorn2.AlwaysOnTop = true
- adorn2.ZIndex = 2
- adorn2.Transparency = endtransparency+0.1
- adorn2.Color3 = Color3.fromRGB(183, 209, 73)
- local adorn3 = Instance.new('BoxHandleAdornment',folder)
- adorn3.Name = v.Name
- if part.Name ~= "Head" then
- adorn3.Size = part.Size*1.15
- else
- adorn3.Size = (part.Size*1.15)-Vector3.new(part.Size.X/2,0,0)
- end
- adorn3.Adornee = part
- adorn3.AlwaysOnTop = true
- adorn3.ZIndex = 1
- adorn3.Transparency = endtransparency+0.2
- adorn3.Color3 = Color3.fromRGB(35, 166, 184)
- end)
- coru()
- end
- end
- end
- end
- end
- end
- end
- end
- mou.KeyDown:connect(function(key)
- if key==setkey then
- active = not active
- end
- end)
- while true do
- heil()
- wait(waitduration)
- end
- end
- noclip = false
- game:GetService('RunService').Stepped:connect(function()
- if noclip then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "u" then
- noclip = not noclip
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- print('Loaded')
- print('Press "y" to noclip')
- local spawner = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local ItemFrame = Instance.new("ScrollingFrame")
- local ItemSearch = Instance.new("TextBox")
- local SpawnButton = Instance.new("TextButton")
- local Title = Instance.new("TextLabel")
- spawner.Name = "spawner"
- spawner.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = spawner
- Main.BackgroundColor3 = Color3.new(0.701961, 0.701961, 0.701961)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0, 667, 0, 228)
- Main.Size = UDim2.new(0, 266, 0, 244)
- Main.Active = true
- Main.Draggable = true
- ItemFrame.Name = "ItemFrame"
- ItemFrame.Parent = Main
- ItemFrame.BackgroundColor3 = Color3.new(0.317647, 0.317647, 0.317647)
- ItemFrame.BorderSizePixel = 0
- ItemFrame.Position = UDim2.new(0, 56, 0, 76)
- ItemFrame.Size = UDim2.new(0, 155, 0, 92)
- ItemFrame.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- ItemFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- ItemFrame.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
- ItemSearch.Name = "ItemSearch"
- ItemSearch.Parent = Main
- ItemSearch.BackgroundColor3 = Color3.new(0.533333, 0.533333, 0.533333)
- ItemSearch.BorderSizePixel = 0
- ItemSearch.Position = UDim2.new(0, 56, 0, 53)
- ItemSearch.Size = UDim2.new(0, 155, 0, 25)
- ItemSearch.Font = Enum.Font.SourceSansBold
- ItemSearch.FontSize = Enum.FontSize.Size14
- ItemSearch.Text = "Search for an item!"
- ItemSearch.TextColor3 = Color3.new(1, 1, 1)
- ItemSearch.TextScaled = true
- ItemSearch.TextSize = 14
- ItemSearch.TextWrapped = true
- SpawnButton.Name = "SpawnButton"
- SpawnButton.Parent = Main
- SpawnButton.BackgroundColor3 = Color3.new(0.027451, 1, 0.482353)
- SpawnButton.BorderSizePixel = 0
- SpawnButton.Position = UDim2.new(0, 34, 0, 186)
- SpawnButton.Size = UDim2.new(0, 199, 0, 35)
- SpawnButton.ZIndex = 2
- SpawnButton.AutoButtonColor = false
- SpawnButton.Font = Enum.Font.ArialBold
- SpawnButton.FontSize = Enum.FontSize.Size14
- SpawnButton.Text = "SPAWN"
- SpawnButton.TextColor3 = Color3.new(1, 1, 1)
- SpawnButton.TextScaled = true
- SpawnButton.TextSize = 14
- SpawnButton.TextWrapped = true
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.BorderSizePixel = 0
- Title.Size = UDim2.new(0, 266, 0, 30)
- Title.Font = Enum.Font.SourceSansBold
- Title.FontSize = Enum.FontSize.Size14
- Title.Text = "DeadWinter"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.TextSize = 14
- Title.TextWrapped = true
- local backgroundObjects = Instance.new('Folder', spawner.Main)
- backgroundObjects.Name = 'BackgroundObjects'
- local SpawnButton = Instance.new("TextButton", backgroundObjects)
- SpawnButton.Name = "SpawnButton"
- SpawnButton.Parent = game.CoreGui.spawner.Main.BackgroundObjects
- SpawnButton.BackgroundColor3 = Color3.new(0.0196078, 0.729412, 0.34902)
- SpawnButton.BorderSizePixel = 0
- SpawnButton.Position = UDim2.new(0, 34, 0, 193)
- SpawnButton.Size = UDim2.new(0, 199, 0, 35)
- SpawnButton.AutoButtonColor = false
- SpawnButton.Font = Enum.Font.SourceSans
- SpawnButton.FontSize = Enum.FontSize.Size14
- SpawnButton.Text = ""
- SpawnButton.TextSize = 14
- local gui = spawner.Main
- local box = gui:WaitForChild('ItemSearch')
- local items = gui:WaitForChild('ItemFrame')
- local path = Game.Lighting.assets.itemModels
- local btn = gui:WaitForChild('SpawnButton')
- local pos = gui:WaitForChild('BackgroundObjects').SpawnButton.Position
- local function search(text)
- local items = {}
- for i, v in next, path:GetChildren() do
- if text:upper() == v.Name:sub(1, string.len(text)):upper() then
- table.insert(items, v.Name)
- end
- end
- return items
- end
- local function bind(thing, f)
- thing.MouseButton1Click:connect(function()
- f()
- end)
- end
- box.Changed:connect(function()
- local list = search(box.Text)
- if box.Text:gsub("", "") == "" then
- items.CanvasSize = UDim2.new(0, 0, 0, 0)
- items:ClearAllChildren()
- return
- end
- items.CanvasSize = UDim2.new(0, 0, 0, 0)
- items:ClearAllChildren()
- for i, v in next, list do
- local yPos = ((20 * i) - 20)
- local s = Instance.new('TextButton', items)
- s.BorderSizePixel = 0
- s.Font = Enum.Font.ArialBold
- s.TextScaled = true
- s.Text = v
- s.Name = v
- s.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
- s.TextColor3 = Color3.new(0, 0, 0)
- s.Size = UDim2.new(0, 155, 0, 20)
- s.Position = UDim2.new(0, 0, 0, yPos)
- bind(s, function()
- box.Text = s.Text
- items:ClearAllChildren()
- items.CanvasSize = UDim2.new(0, 0, 0, 0)
- end)
- end
- items.CanvasSize = UDim2.new(0, 0, 0, (20 * #list))
- end)
- local People = game.Players.LocalPlayer.Name
- btn.MouseButton1Click:connect(function()
- game.Workspace.resources.events.createItemInWorld:FireServer(49,box.Text,Game.Workspace[People].Torso.CFrame,2000000000)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement