I am trying to make a furniture placement system so you can design your house, but I am not even near to making it. Be aware I am new to scripting. Here is my script so far:
script.Parent.MouseButton1Click:Connect(function() while wait() do game:GetService("UserInputService").InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then plr = game.Players.LocalPlayer local mouse = plr:GetMouse() local c = game.ReplicatedStorage.Table:Clone() c.Position = mouse.Position end end) end end)
That is in a local script inside a text button in StarterGui. Could someone please help here? Thanks in advance!
https://scriptinghelpers.org/blog/creating-a-furniture-placement-system