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

I need some help, could someone please help me?

Hi! I am making a gun for my game, but I am having trouble with some little aspect of it.

local bullet = game:GetService("RbxUtility").Create "Part" {
	Size = Vector3.new(1,1,1);
}

That code is meant to create a part and inside the Table has all it's properties. I have used it before, but I cannot remember if it is GetService or something else. Please help!

Love always, BloodMachete.

1 answer

I've never heard of such a service called "RbxUtility." What you might be looking for is Instance.new(obj, parent). It accepts two parameters: the object itself (required) and the parent of it (optional).

local bullet = Instance.new("Part", workspace)
bullet.Size = Vector3.new(1,1,1)

If you have any questions, feel free to ask.

1 comment

0

No, I am not after that.. And, I figured it out, thanks anyway!

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