Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

.Selected with the provided mouse arguement?

script.Parent.Selected:connect(function(m)
	print("hey")
    x = Instance.new("Part", game.Workspace)
    x.CFrame = m.Hit
end)

I think i'm not using the right property or something, help please?

1 answer

✓ Accepted answer
script.Parent.Selected:connect(function(m)
	m.Button1Down:connect(function()
	    print("hey")
	    x = Instance.new("Part", game.Workspace)
	    x.CFrame = m.Hit
	end)
end)

3 comments

0

its not fixed, I think I used the wrong event but whenever I click when I am using the tool its supposed to create a brick. The script you provided, only creates a brick when its selected. Thanks for the help but anything else you can recommend?

0

Sorry, I misunderstood your question. Fixed the answer.

0

Thanks so much, sorry for the confusion :D

This discussion is preserved as it was. New answers, comments, and votes are closed.