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

How to make tool that creates a brick?

Asked by
pwgth 11
3 years ago

so, in this question, I'm kinda asking to learn how to make it so that when I click with the tool equipped, it creates a brick where the player is standing.

  • just teaching me what to use/do is fine(I wish to learn), but a complete script is always welcome lol.

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Like this. This is a server script in the tool

local tool = script.Parent
local mouse

tool.Equipped:Connect(function(m)
    mouse = m
end)

tool.Activated:Connect(function()
    if mouse then
        local Part = Instance.new("Part",workspace)
        Part.Position = mouse.Hit.P
        --Anything else you ant to do with the part
    end
end)

More documentation on tools can be found here

0
pretty sure that'll work WINDOWS10XPRO 438 — 3y
0
if it does can you accept the answer? deadwalker601 110 — 3y
0
lol he wasn't the one who asked it, it was me lol. but either way thanks, I must also thank you for giving me extra help for finding info on tools. pwgth 11 — 3y
Ad

Answer this question