Now this is the script inside the button gui. I click it multiple of times but it doesn't function because I put the print above when it fires
script.Parent.MouseButton1Click:connect(function(GetCar) local ModelName = "ARVBE" script.Parent.Visible = false wait(.1) print(ModelName) game.ReplicatedStorage.CarSpawn:FireServer(ModelName) end)
ServerScriptService
game.ReplicatedStorage.CarSpawn.OnServerEvent:connect(function(ModelName) print(ModelName) if ModelName == "ARVBE" then local Mod = game.ServerStorage[ModelName] Mod.ATSWelder.Disabled = false local clone = Mod:clone() clone.Parent = workspace clone:MakeJoints() end end)