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

Is there a way to block the reset when I change CoordinateFrame?

Asked by 5 years ago

I've been trying to make an overhead style game on roblox and for the most part all the camera stuff is going decently well I have just one issue. Whenever I try to go to the next room I change the CoordinateFrame to be above and in the center of the next room, but everytime I change CoordinateFrame I die.

cam.CoordinateFrame = CFrame.new(113.5, 30.5, -0.5) --this is the code I use to change coordinate frame.

cam.Focus = CFrame.new(113.5, 0, -0.5) --and this is the code I use to change where the camera is looking I tested it and it's the first line of code that resets the player.

The CoordinateFrame moves but there's a reset is there anyway to block the reset?

1 answer

Log in to vote
1
Answered by
Arkrei 389 Moderation Voter
5 years ago

If you mean disabling resetting then you can set the coregui as you please

game:GetService("StarterGui"):SetCore("ResetButtonCallback",false) should disable the reset button then you can re-enable whenever you seem fit by changing false to true

Ad

Answer this question