Ok, lets try it!
First Step : First of all! We need to know how to use a "Skip" button on a cutscene so we can get our character back [Our camera].
Second Step : We need to know how to use or move the camera, I made an example or how we can make it...
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
So now we can move it wherever we want! We can even make a mining simulator shop with that function!
Third Step : We need to know how to make a cutscene! I guess that you already have the script to do that, so lets only skip this step!
Fourth Step : Enjoy coding! You always have to enjoy what are you doing! Play some music while you script or even you can play a game for be relaxed!
Lets get into the code!
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
local skipV = false
local function skipF()
if not skipV then
wait()
print("Only testing!")
end
skipV = true
if skipV == true then
camera.CameraType = Enum.CameraType.Custom
end
end
script.Parent.MouseButton1Click:Connect(skipF)
local warnMessage = "The code is incorrect!"
pcall(warnMessage)
That's all you need! Now we know how to use a "skip" and now we know how to return the camera to the player!
I hope my answer already solve your question! It does please accept my answer! That will help me a lot!
Keep scripting!
2 comments
this isn't the fix to your problem, but I just wanted to say that the print parts won't work because there aren't any parentheses
It works without parentheses