I think the error is because I'm doing something to many times, but this doesn't seam like it.. I don't know what I'm doing wrong, do you?
wait(.1) local player=game.Players.LocalPlayer local building=game.ReplicatedStorage.Buildings:FindFirstChild("Hut") script.Parent.Equipped:connect(function(mouse) copy=building:Clone() copy.Parent=player.Character end)
Put a wait(0.01) after the Equipped event, like this:
wait(.1) local player=game.Players.LocalPlayer local building=game.ReplicatedStorage.Buildings:FindFirstChild("Hut") script.Parent.Equipped:connect(function(mouse) wait(0.01) copy=building:Clone() copy.Parent=player.Character end)
It should work