Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do i send this to the server so the items imported from RepStorage actually work?

Asked by 1 year ago
script.Parent.MouseButton1Click:Connect(function()
    local HRP = game.Players.LocalPlayer.Character.HumanoidRootPart
    local model = game.ReplicatedStorage.Turret
    local distance = 10 
    local pos = HRP.Position + (HRP.CFrame.LookVector)*distance

    model.Parent = workspace
    model:MoveTo(pos)
end)

Answer this question