Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with Camera Man. after Respawn?

Asked by 9 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

Why doesn't this work after a player respawns? The LocalScript is located inside the PlayerGui.

01repeat wait() until game:GetService("Players").LocalPlayer
02 
03local Player = game:GetService("Players").LocalPlayer
04local Playing = Player:WaitForChild("Playing")
05local Character = Player.Character
06local Humanoid = Character:FindFirstChild("Humanoid")
07local ReplicatedStorage = game:GetService("ReplicatedStorage")
08local Timer = ReplicatedStorage:WaitForChild("Timer")
09local MapHolder = workspace:WaitForChild("MapHolder")
10local SelectedMap = ReplicatedStorage:WaitForChild("SelectedMap")
11local Database = script.Parent:WaitForChild("Database")
12 
13local CurrentCamera = workspace.CurrentCamera
14 
15Angle = 0
View all 30 lines...

Answer this question