I tried to do ‘‘Play’’ but script diddnt work now just only working on ‘‘Play here’’ button can someone help
Please show us the script you’re using.
Are you talking about the Studio “Play” or “Play here” buttons, or in game?
Also tell us what “this happened” means. You know what’s wrong with the picture, but we can’t read your mind to figure it out.
If you’re asking for help in the scripting forum please copy/paste the script here so we can see it. Otherwise we can’t really help you.
Please put 3 backticks (```) before and after the script so it formats properly here too.
here u go: --Kickitlee9
local Camera = workspace.CurrentCamera
local MenuCamera = game.workspace.MenuCamera
wait(.001)
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCamera.CFrame
Sry its really short script
–Kickitlee9
local Camera = workspace.CurrentCamera
local MenuCamera = game.workspace.MenuCamera
wait(.001)
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCamera.CFrame
Apologies, is this the script you’re using for your menu screen? I’m assuming the play button will set the camera type back to normal?
Studio ‘‘Play’’ and ‘‘Play Here’’ these buttons have some problems i guess
oh okay thank you for helping sir. Have nice day!
You misunderstand. I’m asking for the script that you use in the play button to start the game.
Are you using screen GUI buttons?
The buttons aren’t referenced here at all to detect someone clicking on them.
Also, wait(.001)
doesn’t actually wait that long. The minimum it normally waits (so wait()
instead) is approximately .03 seconds, so
Your friend should also be using task.wait()
now
idk let me try i hope it works
Changing the time it waits won’t affect it. I’m just suggesting a slightly better way for your friend to write that part of his scripts.
it diddnt work again. ig our roblox studio version have some problem
my friend changed the time new script: --Kickitlee9
local Camera = workspace.CurrentCamera
local MenuCamera = game.workspace.MenuCamera
task.wait()
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCamera.CFrame
Try this script. You’ll need to adjust it to your liking.
Unaware if this works, as i don’t have time to test it
LocalScript inside your button
local Camera = game.Workspace.CurrentCamera
local MenuCamera = game.Workspace.MenuCamera
task.wait(.001)
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCamera.CFrame
script.Parent.MouseButton1Down:Connect(function()
Camera.CameraType = Enum.CameraType.Track -- or another cameratype, idk
script.Parent.Parent.Enabled = false -- assuming the button's parent is the main ScreenGui
end)
thanks let me try if it works!