Advertisement
Anukun_Lucifer

MenuScript(LocalScript)

Nov 27th, 2022
1,981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | Gaming | 0 0
  1. local cc = workspace.CurrentCamera
  2. local sc = workspace.StoryCam
  3. local vc = workspace.VSCam
  4.  
  5. local story = script.Parent.Story
  6. local vs = script.Parent.Vs
  7.  
  8. wait(.001)
  9.  
  10. cc.CameraType = Enum.CameraType.Scriptable
  11.  
  12. local function storyEntered()
  13.     cc.CFrame = sc.CFrame
  14. end
  15.  
  16. story.MouseEnter:Connect(storyEntered)
  17.  
  18. local function vsEntered()
  19.     cc.CFrame = vc.CFrame
  20. end
  21.  
  22. vs.MouseEnter:Connect(vsEntered)
Tags: Roblox SCIRPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement