-- game: https://www.roblox.com/games/75862543114918 -- credits: Farhat#9879 and Ai to make Gui if cloneref(game:GetService("CoreGui")):FindFirstChild("Spawn menu") then cloneref(game:GetService("CoreGui"))["Spawn menu"]:Destroy() end local lplr = cloneref(game:GetService("Players")).LocalPlayer local uis = cloneref(game:GetService("UserInputService")) local gui = Instance.new("ScreenGui") gui.Name = "Spawn menu" gui.ResetOnSpawn = false gui.Parent = cloneref(game:GetService("CoreGui")) local frame = Instance.new("Frame") frame.Size = UDim2.new(0,320,0,260) frame.Position = UDim2.new(0.5,-160,0.5,-130) frame.Active = true frame.Draggable = true frame.BackgroundColor3 = Color3.fromRGB(0,255,0) frame.BackgroundTransparency = 0.5 frame.Parent = gui local close = Instance.new("TextButton") close.Size = UDim2.new(0,30,0,30) close.Position = UDim2.new(1,-35,0,5) close.Text = "X" close.Parent = frame close.MouseButton1Click:Connect(function() gui:Destroy() end) local pathbox = Instance.new("TextBox") pathbox.Size = UDim2.new(0,200,0,30) pathbox.Position = UDim2.new(0,10,0,50) pathbox.PlaceholderText = "workspace.Part" pathbox.Text = "" pathbox.Parent = frame local bindbox = Instance.new("TextBox") bindbox.Size = UDim2.new(0,50,0,30) bindbox.Position = UDim2.new(0,10,0,150) bindbox.Text = "F" bindbox.Parent = frame local togglebind = Instance.new("TextButton") togglebind.Size = UDim2.new(0,100,0,30) togglebind.Position = UDim2.new(0,70,0,150) togglebind.Text = "Bind: ON" togglebind.Parent = frame local runbtn = Instance.new("TextButton") runbtn.Size = UDim2.new(0,100,0,30) runbtn.Position = UDim2.new(0,10,0,100) runbtn.Text = "Run" runbtn.Parent = frame local rotX = Instance.new("TextBox") rotX.Size = UDim2.new(0,80,0,25) rotX.Position = UDim2.new(0,10,0,200) rotX.PlaceholderText = "RotX" rotX.Text = "0" rotX.Parent = frame local rotY = Instance.new("TextBox") rotY.Size = UDim2.new(0,80,0,25) rotY.Position = UDim2.new(0,100,0,200) rotY.PlaceholderText = "RotY" rotY.Text = "0" rotY.Parent = frame local rotZ = Instance.new("TextBox") rotZ.Size = UDim2.new(0,80,0,25) rotZ.Position = UDim2.new(0,190,0,200) rotZ.PlaceholderText = "RotZ" rotZ.Text = "0" rotZ.Parent = frame local bindenabled = true local currentkey = Enum.KeyCode.F togglebind.MouseButton1Click:Connect(function() bindenabled = not bindenabled togglebind.Text = "Bind: "..(bindenabled and "ON" or "OFF") end) bindbox.FocusLost:Connect(function() local txt = (bindbox.Text or ""):gsub("^%s+",""):gsub("%s+$",""):upper() if Enum.KeyCode[txt] then currentkey = Enum.KeyCode[txt] end end) local function resolveexpr(expr) local f = loadstring("return " .. expr) if f then local ok,res = pcall(f) if ok then return res end end return nil end local function spawnitem(arg,pos) local rs = cloneref(game:GetService("ReplicatedStorage")) local lplr = cloneref(game:GetService("Players")).LocalPlayer local userid = lplr.UserId local args = {"RemoveFromDebounce",userid} rs:WaitForChild("Events"):WaitForChild("Remote"):WaitForChild("InvokePlacement"):FireServer(unpack(args)) task.wait(0.1) local args = {"Place",lplr,arg,pos} rs:WaitForChild("Events"):WaitForChild("Remote"):WaitForChild("InvokePlacement"):FireServer(unpack(args)) end local function getrotation() local x = tonumber(rotX.Text) or 0 local y = tonumber(rotY.Text) or 0 local z = tonumber(rotZ.Text) or 0 return CFrame.Angles(math.rad(x),math.rad(y),math.rad(z)) end local function spawnatpos() local target = resolveexpr(pathbox.Text) if not target then return end local base if bindenabled then local mouse = lplr:GetMouse() base = CFrame.new(mouse.Hit.p) else local hrp = lplr.Character and lplr.Character:FindFirstChild("HumanoidRootPart") if not hrp then return end base = CFrame.new(hrp.Position) end local pos = base * getrotation() spawnitem(target,pos) end runbtn.MouseButton1Click:Connect(function() spawnatpos() end) uis.InputBegan:Connect(function(input) if bindenabled and input.KeyCode == currentkey then spawnatpos() end end)