I made a boat shop using a surface gui, and it clones the boat into workspace from replicated storage. But whenever the boat gets cloned into workspace, it all falls apart. I made the surface welds. It works when I don't clone it. Script:
script.Parent.MouseButton1Click:connect(function(buy) if game.Players.LocalPlayer.leaderstats.Beli.Value >= 50 and game.Players.LocalPlayer.ShipGot.Value == false then l = game.ReplicatedStorage.Boat:Clone() l.Parent = game.Workspace l.Name = ""..game.Players.LocalPlayer.Name game.Players.LocalPlayer.leaderstats.Beli.Value = game.Players.LocalPlayer.leaderstats.Beli.Value - 50 end end)
script.Parent.MouseButton1Click:connect(function(buy) if game.Players.LocalPlayer.leaderstats.Beli.Value >= 50 and game.Players.LocalPlayer.ShipGot.Value == false then local l = game.ReplicatedStorage.Boat:Clone() l.Parent = game.Workspace l.Name = game.Players.LocalPlayer.Name l:MakeJoints() --See if this works. game.Players.LocalPlayer.leaderstats.Beli.Value = game.Players.LocalPlayer.leaderstats.Beli.Value - 50 end end)
You use :MakeJoints()
to clone things like NPCs or things that need to be welded and have welds. Most respawn scripts have :MakeJoints()
in it.