As I am new to scripting, I am having problems in achieving a rotatable(along the Y axis) diablo 3 bird eye view camera.

Here is my forum post for more details: http://forum.roblox.com/Forum/ShowPost.aspx?PostID=209637076

NOTE: I DO NOT WANT A FULL GAME.

Here is the script I managed to piece together(of course its not working :/):

`

local angleOfElevation = 45
local dis = 25
local player = game:GetService("Players").LocalPlayer
local HumanoidRootPart = (wait() and player.Character or player.CharacterAdded:wait()):WaitForChild("HumanoidRootPart")

local NEWCHANGE = 0+1
local Mouse = Player:GetMouse() 


game:GetService("RunService").RenderStepped:connect(function()
	
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
											dis*math.si
	
	workspace.CurrentCamera.CoordinateFrame = CFrame.new(
	HumanoidRootPart.Position + Vector3.new(0,
											dis*math.sin(math.rad(angleOfElevation)),
											dis*math.cos(math.rad(angleOfElevation))),
											HumanoidRootPart.Position)

end)


Mouse.Button1Down:connect(function()
		workspace.CurrentCamera.CoordinateFrame = CFrame.new(
	HumanoidRootPart.Position + Vector3.new(NEWCHANGE,
											dis*math.sin(math.rad(angleOfElevation)),
											dis*math.cos(math.rad(angleOfElevation))),
											HumanoidRootPart.Position)
end)`

2 comments

0

You can't offer rewards for answers to your questions. It violates our community guidelines which you may review at https://scriptinghelpers.org/help/community-guidelines

0

I see, sorry. I actually saw that, but I was too frustrated to think on it. Perhaps you can answer my question? Of course, no rewards. Again, apologies as I am new to this community.