#Possible Outdated Event Type

16 messages · Page 1 of 1 (latest)

polar glade
#

With the exception of variable names and what's inside the function, this is copy-pasted from the devhub wiki.

local ore = script.Parent

function mineOre(player)
    if player.Character:FindFirstChild("Pick") then
        print "Pick found"
    end
end

ore.MouseClick:Connect(mineOre)```

But when I run this script I get the error:* MouseClick is not a valid member of Part "Workspace.oreEmerald"*, which makes zero sense because MouseClick is a listed event from the wiki.
polar glade
#
local clickDetector = workspace.Part.ClickDetector

function onMouseClick()
    print("You clicked me!")
end

clickDetector.MouseClick:Connect(onMouseClick)
dry trout
#

studio** You are now Level 44! **studio

near blade
#

this is fine

#

and totally different than what you did

near blade
#

problem is

#

parts Do not have a MouseClick event

#

never had

near blade
#

which is what you would use

polar glade
#

ah

near blade