Wait so what is it you want to happen to the player whilst this camera event is triggered?
i just want the player to vibe there until it loads
So then what’s the issue with the script? If walking is disabled it should be fine unless you want them to be teleported to sit around that circle or something. Sorry I’m just confused with what you mean
I want the camera to change. also i think i got it to work by changing that Run.Rendered thing to a game.PlayerAdded event, but
19:27:33.911 leaderstats is not a valid member of Player "Players.NotAid_n" - Server - Main:20
19:27:33.912 Stack Begin - Studio
19:27:33.912 Script 'ServerScriptService.Main', Line 20 - Studio - Main:20
19:27:33.912 Stack End - Studio
is the problem im having now for this part
Camera.CameraType = Enum.CameraType.Scriptable
game.Players.PlayerAdded:Connect(function(player)
if player.leaderstats.Level.Value == 1 then
game.ReplicatedStorage.Cameras:FireClient(player)
end
end)
Try putting a WaitforChild on Leaderstats, because sometimes that takes time to load, into the player’s client.
player:WaitForChild("leaderstats").Level.Value
yeah other than that it should work hopefully.
Assuming you tried this as well:
Does this work?
local player = game.Players.LocalPlayer
local Camera = game.Workspace.Camera
local c1 = game.Workspace.Cams.Cam1
local c2 = game.Workspace.Cams.Cam2
local c3 = game.Workspace.Cams.Cam3
local c4 = game.Workspace.Cams.Cam4
local bl1 = game.Workspace.Balls.Ball1
local bl2 = game.Workspace.Balls.Ball2
local bl3 = game.Workspace.Balls.Ball3
local bl4 = game.Workspace.Balls.Ball4
-------- Cameras
Camera.CameraType = Enum.CameraType.Scriptable
game.Players.PlayerAdded:Connect(function(player)
if player.leaderstats.Level.Value == 1 then
Camera.CFrame = c1.CFrame
end
end)
--------
The Camera.CFrame = brick.CFrame
works on mine so I believe it will work on yours.
If it doesn’t work, tell me the error of this.
Do you have a script that creates the leaderstats?