Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can i customize the part?

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?

2 comments

0

put this in a code block even for being a simple script i still cant figure out a solution though snooxy has already put a decent one

0

who is snooxy?

1 answer

✓ Accepted answer
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 :)

2 comments

0

It works thank you but is there a script to change the size?

0

Heyyy, I added a Size script too! :) Hope it helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.