Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cloning Error that makes towers?

Asked by 6 years ago

I making a script to place clones of my union at the position of the mouse and it works but it makes towers of them, how can I fix this?

mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:connect(function()

    mouse.Button1Down:connect(function(Hit)
        local Road = game.Workspace.Road
        local Clone = Road:Clone()
        Clone.Parent = game.Workspace
        local x = mouse.Hit.X
        local y = mouse.Hit.Y
        local z = mouse.Hit.Z
        Clone.Position = Vector3.new(x,y,z)


    end)

end)
0
Maybe a debounce problem? jack8699 15 — 6y
0
why is the same event inside of itself? Also on an off note, this script wouldn't work with a filter enabled game Vulkarin 581 — 6y

Answer this question