![]() Local frame = Instance.new("Frame", surface)įrame.BackgroundColor3 = Color3. While there, select Rendering and reduce the QualityLevel option to lower. Local surface = Instance.new("SurfaceGui", belt) Just open Roblox Studio and navigate to Tools > Settings > Rendering. DEBUG : color the front of belt to make sure that it is oriented correctly Local weld = Instance.new("WeldConstraint", belt) ![]() Local rotationOffset = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))īelt.CFrame = hips.CFrame * positionOffset * rotationOffset Local positionOffset = CFrame.new(Vector3.new(0, 0, 0)) NOTE - EXPERIMENT WITH CHANGING THESE VALUES TO ADJUST THE POSITION AND ROTATION position the belt on the player's character Local hips = character:WaitForChild("LowerTorso", 10) DEBUG : wait for player to stop falling Player.CharacterAppearanceLoaded:Connect(function(character) If you are adding a belt to a Character model, I would recommend using a part within the model and using its CFrame as a starting point, then offsetting it accordingly.įor example : - access the character model in the workspace ![]() ![]() All CFrames have a LookVector that points in their forward direction. A humanoid's root part is just a regular Part, and all Parts have a CFrame that represents their position and orientation in 3d world space. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |