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

How can you change a players mouse position?

Asked by
Uluomis 32
4 years ago

So I am wondering how to change a players mouse position when a function is called and it doesn't seem to work. I've tried this myself and looked on the developer.roblox.com articles about this and haven't found anything. I guessed it would be something like this but it doesn't work. Anyone have any guesses?

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

script.Parent.MouseEnter:Connect(function()
mouse.Position = Vector2.new(0,0)
end)
0
make a custom mouse Fifkee 2017 — 4y
0
wut Uluomis 32 — 4y
0
You can't move the player's mouse from a script, mouse.Position is a read-only property. EmilyBendsSpace 1025 — 4y
0
would be cool if roblox made it customizable, would look awesome for creating horror effects. 123nabilben123 499 — 4y

Answer this question