--Server script inside the Server Script Service:
player=game.Players.LocalPlayer
Car = game.ServerStorage.Model
CarClone=Car:Clone()
--Change test to whatever you have named the item you want to spawn
game.ReplicatedStorage.SpawnCar.OnServerEvent:Connect(function()
CarClone.Parent = game.Workspace
CarClone:MakeJoints()
CarClone:SetPrimaryPartCFrame(player.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,15))
end)
-------Local script inside a text button in starter Gui:
local player=game.Players.LocalPlayer
local Car = game.ReplicatedStorage.Model
local CarClone=Car:Clone()
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.SpawnCar:FireServer()
player=game.Players.LocalPlayer
Car = game.ReplicatedStorage.Model
CarClone=Car:Clone()
--Change test to whatever you have named the item you want to spawn
game.ReplicatedStorage.SpawnCar.OnServerEvent:Connect(function()
CarClone.Parent = game.Workspace
CarClone:MakeJoints()
CarClone:SetPrimaryPartCFrame(player.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,15))
end)
end)

2 comments
so whats the issue?
The model i try to spawn near by my RootPart is not spawning there