Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a furniture placement system?

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!

1 comment

0

instead of c.Position = mouse.Position use c.Position = Udim2.new(0,mouse.X,0,mouse.Y)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.