Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Camera = workspace.CurrentCamera
- local Views = workspace:WaitForChild("Views")
- local tweenService = game:GetService("TweenService")
- local Button = script.Parent
- function tweenCamera(pos,tweenTime)
- tweenService:Create(Camera,TweenInfo.new(tweenTime,Enum.EasingStyle.Linear), {CFrame = pos.CFrame}):Play()
- end
- Button.MouseEnter:Connect(function()
- tweenCamera(Views.ViewLeft, 0.5) -- Change name of your part and time
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement