Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i customize the part?

Asked by 4 years ago

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?

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 sean_thecoolman 189 — 4y
0
who is snooxy? Funnyskyswagway3 30 — 4y

1 answer

Log in to vote
0
Answered by
iivSnooxy 248 Moderation Voter
4 years ago
Edited 4 years ago
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 :)

0
It works thank you but is there a script to change the size? Funnyskyswagway3 30 — 4y
0
Heyyy, I added a Size script too! :) Hope it helps! iivSnooxy 248 — 4y
Ad

Answer this question