I'm new to this an I wasn't sure how to go about doing this, but here is what I tried doing:
mouse = game.Players.LocalPlayer:GetMouse()
mouse.Changed:connect(function()
print 'changed'
if mouse.Target == "GameRock" then
mouse.Button1Down:connect(function()
local t = mouse.Target
t:Destroy()
end)
end
end)
there are no errors, either. There is a part that spawns called 'GameRock' and when your mouse is over it, and you click the rock is supposed to destroy, but it doesn't.
