Obligatory its midnight and I am tired, so if I make no sense then you know why. Also might be a bit long for me to reply as I am gonna go to sleep. Anyways no more excuses
Not really sure what to say here, the camera won’t attach to the player, so output errors, and its set at custom camera, not anything else. Script is, I dont know its something so ill highlight the important stuff
localscript inside a gui (under a textbutton), highlighted lines that i think have the problem:
if workspace.isround.Value == true then
script.Parent.Text = "Loading. . ."
for i = 1, 0, -.02 do
script.Parent.Parent.Parent.darkness.BackgroundTransparency = i
wait()
end
script.Parent.Parent.Parent.darkness.BackgroundTransparency = 0
wait(.5)
repeat wait()
Camera.CameraType = Enum.CameraType.Custom
until Camera.CameraType == Enum.CameraType.Custom
script.Parent.Parent.Parent.dead.Visible = true
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.dead.LocalScript.Disabled = true
script.Parent.Parent.Parent.dead.LocalScript.Disabled = false
wait(.5)
for i = 0, 1, .02 do
script.Parent.Parent.Parent.darkness.BackgroundTransparency = i
wait()
end
script.Parent.Parent.Parent.darkness.BackgroundTransparency = 1
localscript inside a gui (under a textbutton) (whole script)
disabled = false
local Camera = workspace.CurrentCamera
script.Parent.MouseButton1Click:Connect(function()
--[[]if disabled == false then
disabled = true
script.Parent.BackgroundColor3 = Color3.new(217, 0, 0)
game.Workspace.Teleport.RemoteFunction:InvokeServer()
wait()
disabled = false
game.Players.LocalPlayer.PlayerGui.CameraGui.lol.Visible = false
game.Players.LocalPlayer.PlayerGui.CameraGui.Container.Visible = false
end]]
if workspace.isround.Value == true then
script.Parent.Text = "Loading. . ."
for i = 1, 0, -.02 do
script.Parent.Parent.Parent.darkness.BackgroundTransparency = i
wait()
end
script.Parent.Parent.Parent.darkness.BackgroundTransparency = 0
wait(.5)
repeat wait()
Camera.CameraType = Enum.CameraType.Custom
until Camera.CameraType == Enum.CameraType.Custom
script.Parent.Parent.Parent.dead.Visible = true
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.dead.LocalScript.Disabled = true
script.Parent.Parent.Parent.dead.LocalScript.Disabled = false
wait(.5)
for i = 0, 1, .02 do
script.Parent.Parent.Parent.darkness.BackgroundTransparency = i
wait()
end
script.Parent.Parent.Parent.darkness.BackgroundTransparency = 1
game.Workspace.Teleport.RemoteFunction:InvokeServer()
script.Parent.Parent.Parent.lol.Visible = false
print("its true")
elseif workspace.isround.Value == false then
print("its false")
local object = script.Parent.Parent.Parent.none
object.AnchorPoint = Vector2.new(0.5, 0.5)
object.Position = UDim2.new(0.1, 0, 0.5, 0)
wait(1)
script.Parent.Parent.Parent.none.Visible = true
script.Parent.Parent.Parent.lol.Visible = false
object:TweenPosition(UDim2.new(0.5, 0, 0.5, 0))
wait(2)
object:TweenPosition(UDim2.new(-0.5, 0, -0.5, 0))
script.Parent.Parent.Parent.lol.Visible = true
end
end)
any ideas on how to shorten it would be great, but not the priority