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

will mesh parts work with clickdetector?

Asked by 4 years ago

I have a local script in the server script service this is it

local clickdetector = game.Workspace.pully.MeshPart.ClickDetector
clickdetector.MouseClick:Connect((function()
    game.Workspace.RemoteEvent:FireServer()
end)

I also have a remoteevent named RemoteEvent theres a script in there too!

local pully = game.Workspace.pully
    game.Workspace.RemoteEvent.OnServerEvent:Connect(function()



    pully.PrimaryPart = pully.primary_part




    pully:SetPrimaryPartCFrame(Vector3.new(-23.536, 10.517, -23.911))
    end)

what this should do is it should move the model in the workspace named pully to -23.536, 10.517, - 23.911

1 answer

Log in to vote
0
Answered by 4 years ago

click detectors will work in meshes

Ad

Answer this question