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

SpawnScript for tool doesnt work at all Fix?

Asked by 3 years ago
local Plr = game.Players.LocalPlayer
local mouse = Plr:GetMouse()
local Noob = game.ServerStorage.SpawnedItems.Ninja:Clone()

script.Parent.Activated:Connect(function()
    print'Spawn Noob'
    local hit = mouse.hit
    Noob.Parent = game.Workspace
    Noob:MoveTo(hit.p)
    Noob:MakeJoints()
end)

it may look completely bad but i trued to get the ninja to spawn where mouse was clicking it didnt work can anyone fix it or explain?

Answer this question