✓ Accepted answer
Make a tool place? Ok sure here is code:
(Make a server script and a local script, also make a RemoteEvent in the tool)
In a local script (in tool)
local rEvent = script.Parent.RemoteEvent
game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
rEvent:FireServer(game.Players.LocalPlayer:GetMouse().Hit)
end)
In a server script (in tool)
local tool = script.Parent
local model = workspace.RandomModel
local rEvent = script.Parent.RemoteEvent
rEvent.OnServerEvent:Connect(function(plr, cf)
if plr.Character:FindFirstChild(tool.Name) then
local cl = model:Clone()
if cl.ClassName == "Model" then
cl:SetPrimaryPartCFrame(CFrame.new(cf.Position))
else
cl.CFrame = CFrame.new(cf.Position)
end
end
end)
Does this help? If you have questions ask me!
3 comments
Please give more detail? To place them in the workspace? Like click on a position then make the cone appear there? If so here's a few articles to help. http://wiki.roblox.com/index.php?title=CFrame https://www.robloxdev.com/api-reference/function/Instance/Clone https://www.robloxdev.com/api-reference/property/Mouse/Hit
Isn't mouse.hit deprecated?
no