Hi, IVE BEEN GOOGLING (looking at you, moderator) FOR ABOUT 40 MINUTES NOW, TO NO AVAIL (Moderation Note says: Only if the player hasn't tried to solve the problem themselves, read better m8), and i'm wondering if there's a function or command for if you hover your cursor over and object and click, it will initiate a custom command? I have also tried to solve it myself by adding a click detector and doing:

local clickde = game.Workspace.Part.ClickDetector
clickde.MouseClick:Connect(function()
if game.Players.LocalPlayer.MouseCursor = game:GetService("Players") then
game.Workspace.Humanoid.Health = 0
end)

(Sorry If the script isn't indented I just wrote it out from the game.) but that didnt work either.

1 comment

0

Random code isn’t an attempt.