Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Issues with "mouse.Icon" script, any idea what its happening?

Im new on this forum and working with lua so yeah i hope you can understand me.

The code.

local player = game.Players.LocalPlayer
local mouse = game.Players.LocalPlayer:GetMouse()

mouse.Icon = ''

if player.CameraMaxZoomDistance < 2 then

mouse.Icon = ''

elseif player.CameraMinZoomDistance == 1 then
	
mouse.Icon = 'http://www.roblox.com/asset/?id=950896037' -- It dosnt changes

end
		
	

btw pretty nooby script i know...

My idea is when im on first person camera mode, the mouse icon changes and when i zoom out it changes for the default mouse icon.

Hope someone can solve it, any question or something u can ask me. Thanks for reading.

4 comments

0

read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again

0

read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again

0

read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again

0

read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again

1 answer

✓ Accepted answer

It won't work because the Max or Min CameraZoomDistance will not change unless you change it from the properties of the player.

These two properties determine the max and min distance the the player can zoom in and out.

1 comment

0

Oh, so what property i have to use instead Max or Min camerazoom distance (i have another script that it limits the zoom in and out. The min is "1" and the max is "10")

This discussion is preserved as it was. New answers, comments, and votes are closed.