Heres a script that can spawn a part when 'e' is pressed:
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(Key) Key = Key:lower() if Key == 'e' then print'e' local Part = Instance.new('Part', game.Workspace) Part.Anchored = true Part.CFrame = Player.Character.Head.CFrame * CFrame.new(0,0,-5) end end)
I want the part to be customized to what i want, how would i go about doing this?
Instance.new(“Part”) local Part = game.Workspace.Part Part.Color = Color3.fromRGB(0, 0, 0) Part.Size = Vector3.new(5,2,5)
That’s just an example of a color change? I also added a Size like you asked :)