Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
C1RAXY 81
5 years ago
Edited 5 years ago

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.

0
read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again User#23365 30 — 5y
0
read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again User#23365 30 — 5y
0
read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again User#23365 30 — 5y
0
read "CameraMaxZoomDistance" and "CameraMinZoomDistance" again User#23365 30 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

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.

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") C1RAXY 81 — 5y
Ad

Answer this question