local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local plrModule = require(playerScripts:WaitForChild("PlayerModule"))
local Controls = plrModule:GetControls()
Controls:Disable()
to a localscript in StarterPlayerScripts seems to fix the ad infinitum part, but running the game after that still gives me a
So does anyone know why this is happening, and how to fix it?
The Code (Script in ServerScriptService) Removing The Character
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
repeat wait()
print("Character is not in the game... wierd")
until Character
print("Character has loaded and..")
Character.Animate:Destroy()
Character:Destroy()
print("Character is dead.")
end)
end)
The Code (Local Script in StarterGUI) Freezing the Camera
local cc = workspace.CurrentCamera
local cam = workspace.CameraPart -- ignore, for other part of the menu.
repeat wait()
cc.CameraType = Enum.CameraType.Scriptable
until cc.CameraType == Enum.CameraType.Scriptable
why dont you use this instead, if you ever need the character back then just parent it back to workspace otherwise if you dont need the character, then I dont know.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
repeat
task.wait()
until chr ~= nil
if chr then
chr.Parent = nil
end
end)
end)