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

Character Selector (Only one) keeps killing or resetting player once activated, why?

Asked by 1 year ago

I've altered it multiple times, I've made sure that it should run almost entirely client sided so it doesn't bug when I try using ss scripts to help it I'm not getting any errors in console.

local button = script.Parent local freddy = game.ReplicatedStorage.Freddy local camera = game.Workspace.CurrentCamera local changeCharacterEvent = game:GetService("ReplicatedStorage").ChangeCharacter

repeat wait() camera.CameraType = Enum.CameraType.Scriptable until camera.CameraType == Enum.CameraType.Scriptable camera.CFrame = workspace.CameraPart.CFrame

button.Activated:Connect(function(player) changeCharacterEvent:FireServer(player) script.Parent.Parent.Visible = false player.Character:MoveTo(Vector3.new(100,0,100)) camera.CameraType = Enum.CameraType.Custom local character = freddy:Clone() character.Parent = player.Character or player if player.Character then player.Character.visible = false end player.Character = character end)

Thanks

0
Try using prints("hi") to find the error theking66hayday 841 — 1y

Answer this question