REALLY Confused on this, Been going around on posts but nothing as fixed this for me. It works FLAWLESSLY on Studio but NON of my Local Scripts in StarterGui dont activate. Any help is appreciated. My Freeze Script for a "start" button
local player = game.Players.LocalPlayer local Target = player.Character.Torso local Cam = workspace.Camera local char = player.Character if not character or not character.Parent then character = player.CharacterAdded:wait() end local torso = char:FindFirstChild("Torso") local hum = char:FindFirstChild("Humanoid") Cam.CameraType = Enum.CameraType.Scriptable Cam.CameraSubject = player.Character.Torso while true do Cam.CoordinateFrame = CFrame.new(Target.Position) * CFrame.Angles(0,3.2,0) * CFrame.new(-2,0,5) wait(0.1) end
Still need help :( would appreciate it if you looked at comments. Also I tried to update the script with waitforchild, and it did not help, I updated the script with Character Added and it did not work either. Game is Filtered enabled.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) local part = game.Players.LocalPlayer.Character:WaitForChild("Torso") print(part.Name .. " added to workspace") local player = game.Players.LocalPlayer local nameofplayer = player.Character.Name if player and player.Character then local Target = game.Players.LocalPlayer.Character.Torso local Cam = workspace.Camera local char = player.Character if not character or not character.Parent then character = player.CharacterAdded:wait() end local torso = char:FindFirstChild("Torso") Cam.CameraType = Enum.CameraType.Scriptable Cam.CameraSubject = player.Character.Torso while true do Cam.CoordinateFrame = CFrame.new(Target.Position) * CFrame.Angles(0,3.2,0) * CFrame.new(-2,0,5) wait(0.1) end end end) end)