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

I need some help, could someone please help me?

Asked by 10 years ago

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

Log in to vote
0
Answered by
Redbullusa 1580 Moderation Voter
10 years ago

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.

0
No, I am not after that.. And, I figured it out, thanks anyway! MatutinaStella 0 — 10y
Ad

Answer this question