Hey guys! I hope you all do well, so I am writing this code to make a scene where your mouse doesn’t interrupts the feeling of the scene, but when I try to change the mouse for an invisible one it gives me the default mouse, what can I do here? I’ll appreciate a lot if you can give me a hand with this even if It’s a little bit, have a nice day!
-I’m in a LocalScript
Here’s the code:
local mouse = game.Players.LocalPlayer:GetMouse()
-- I tried too with only (mouse.Icon = "http://www.roblox.com/asset?id=7877951093") because...
-- I changed the mouse on another LocalScript to this one (5216789017)
if mouse.Icon == "http://www.roblox.com/asset/?id=5216789017" then
mouse.Icon = "http://www.roblox.com/asset?id=7877951093"
end
-- This part of the code (down this) doesn't matters
for i = 1, 100, 1 do
wait(0.04)
script.Parent.Parent.TweeningWolf.Frame.ImageLabel.ImageTransparency = script.Parent.Parent.TweeningImage.Frame.ImageLabel.ImageTransparency - 0.01
script.Parent.Parent.TweeningImage.Frame.Title.TextTransparency = script.Parent.Parent.TweeningImage.Frame.Title.TextTransparency - 0.01
script.Parent.Parent.TweeningImage.Frame.Description.TextTransparency = script.Parent.Parent.TweeningImage.Frame.Description.TextTransparency - 0.01
end
wait(10)
for i = 1, 100, 1 do
wait(0.04)
script.Parent.Parent.TweeningImage.Frame.ImageLabel.ImageTransparency = script.Parent.Parent.TweeningImage.Frame.ImageLabel.ImageTransparency + 0.01
script.Parent.Parent.TweeningImage.Frame.Title.TextTransparency = script.Parent.Parent.TweeningImage.Frame.Title.TextTransparency + 0.01
script.Parent.Parent.TweeningImage.Frame.Description.TextTransparency = script.Parent.Parent.TweeningImage.Frame.Description.TextTransparency + 0.01
end
wait(3)
Frame.Visible = true
if Frame.Visible == false then
Frame.Visible = not Frame.Visible
end
script.Parent.Parent.TweeningImage.Frame.Visible = false
if script.Parent.Parent.TweeningImage.Frame.Visible == true then
script.Parent.Parent.TweeningImage.Frame.Visible = not script.Parent.Parent.TweeningImage.Frame.Visible
end
Frame:TweenPosition(UDim2.new(0,0,-2,0),"In","Sine",8)
-- This part of the code (above) doesn't matters
mouse.Icon = "http://www.roblox.com/asset/?id=5216789017"
end
It gives me this mouse Icon:
It gives me this error:
Image https://assetdelivery.roblox.com/v1/asset?id=7877951093 failed to load. Error 403: Asset type does not match requested type