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

.Selected with the provided mouse arguement?

Asked by
yurhomi10 192
10 years ago
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

Log in to vote
1
Answered by
2eggnog 981 Moderation Voter
10 years ago
script.Parent.Selected:connect(function(m)
    m.Button1Down:connect(function()
        print("hey")
        x = Instance.new("Part", game.Workspace)
        x.CFrame = m.Hit
    end)
end)
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? yurhomi10 192 — 10y
0
Sorry, I misunderstood your question. Fixed the answer. 2eggnog 981 — 10y
0
Thanks so much, sorry for the confusion :D yurhomi10 192 — 10y
Ad

Answer this question