![]() RaycastParams. Local function calculatePos() - send the return value of this to the server Attachment0.Position = posĬlient side position calculation local Players = game:GetService("Players") Return table.find(AllowedModels,Item.Name) ~= nil Local attach0, attach1 = Instance.new("Attachment"), Instance.new("Attachment")ĪlignPos.Attachment0, alignPos.Attachment1 = attach0, attach1Īttach0.Parent, attach1.Parent = workspace.Terrain, partĭestroyAlignPos() ![]() Local alignPos = Instance.new("AlignPosition") You should also add a limit to how far away the dragged part can be from the player. I don’t know how you calculate the position on the client, but I believe it could be a good idea to use an AlignPosition constraint for moving instead of directly setting the position. Workspace.Position = pos + Vector3.new(0,2,0) ![]() Print("Sucesfully reseted grabbing values") Print("Succesfully start grabbing init!") Players can use the wood they collect to build their dreams, or they can sell the wood to buy cool furniture and accessories to improve their experience. ![]() If table.find(AllowedModels,Item.Name) ~= nil then Lumber Tycoon 2 is a Roblox game created and developed by Defaultio, where players can explore Lumberland and deforest the trees around them. Local IsGrabbing = Instance.new("BoolValue",plr) SUBSCRIBEHALP in this video I need a name to come up with the idea of what im doing. Local GrabbingItem = Instance.new("StringValue",plr) I want to be able to create Lumber Tycoon 2 things from Roblox inside. So if you play it and you will come near to the part and click on it it will works but not as original Lumber Tycoon 2 system ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |