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.
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.