Hello Devfourm, I am trying to make a command that spawns a golf cart next to you. Im pretty sure I got the cart to spawn. But I am confused on how to move it.
Script:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "!spawn cart" then
if player:IsInGroup(10968280) then
if player:GetRankInGroup(10968280) >= 240 then
print("cart has spawned")
local clone = game.ReplicatedStorage.GolfCart:Clone()
clone.Parent = workspace
clone.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new (5, 0, 0)
else
print("sorry u cant spawn cart noob")
end
else
print("player is not in group!")
end
end
end)
end)
Ingame Devlogs:
Golf Cart Model:
Where the script is located:
Thanks, Kazok