Mouse Icon is not disappearing for the certain time. when I change it to false it disappears after the time but when I put it to true it doesn’t seem to work. I can’t see the problem
local UserInPutService = game:GetService("UserInputService")
while true do
wait (12)
UserInPutService.MouseIconEnabled = true
end
I believe, if you’re going for the Mouse Icon to toggle on and off every 12 seconds, you should do:
local UserInputService = game:GetService("UserInputService")
while true do
UserInputService.MouseIconEnabled = not UserInputService.MouseIconEnabled
wait (12)
end
Let me know if that works or if you need anything else.
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.Icon = "Put a blank image in here"
wait(12)
Mouse.Icon = "Ur mouse image"
The code below toggles it on and off every 12 seconds. I used RunService as it runs better than a while loop.
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("UserInputService")
RunService.Heartbeat:Connect(function()
UserInputService.MouseIconEnabled = not UserInputService.MouseIconEnabled
wait(12)
end)
The code below here makes it so that it turns off at the beginning of the game, then 12 seconds later turns back on permanently.
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("UserInputService")
UserInputService.MouseIconEnabled = false
wait(12)
UserInputService.MouseIconEnabled = true