if Target then Commented out because I'm not sure if this is the right way to get what the Players Mouses' Target is. UserInputService.InputEnded:Connect(function(input) UserInputService.InputBegan:Connect(function(input) [[ Commented out because I tried with this and it didn't work Local Status = Gui:WaitForChild('Status') Local Gui = player:WaitForChild('PlayerGui'):WaitForChild('Gui') This event ought not be used for general button activation since not all platforms use a mouse see TextButton.Activated. Local newPart = setTarget:InvokeServer(Target) Although it is possible to detect mouse button events on any GuiObject using GuiObject.InputBegan, only ImageButton and TextButton have dedicated events for these (e.g. If Target and workspace.SpawnedOres:FindFirstChild(Target) then Here is the code I have written out, please help me out if you can! My goal is to make this the most efficient way possible, so if you can help me accomplish that, I’d appreciate it! function Activated() Hello! I’m continuing to work on my mining system, I have written out this code and I’m doubting myself on how to decide whether or not the client is holding down their Left Mouse Button down and their mouse is on an ore.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |