so like the title says i have a camera interpolation script that works fine but once it finishes it just repeatedly kills the player over and over
Script:
01 | local list = { 38270341 , 131541716 , 41163273 , 132007993 , 552452701 , - 1 } |
02 |
03 | game.Players.PlayerAdded:Connect( function (player) |
04 | player.CharacterAdded:Connect( function (char) |
05 | for i = 1 , #list do |
06 | if player.UserId = = list [ i ] then |
07 | local gui = script.TrueDarkness:Clone() |
08 | gui.Parent = player.PlayerGui |
09 | warn( "Gave " ..player.Name.. " True Darkness!" ) |
10 | end |
11 | end |
12 | end ) |
13 | end ) |
14 |
15 | --Misfortune comes uninvited.' It hungers for blood, craving eternal darkness. The time to repent is over! I will take up arms again, step out of the shadows, and teach them true darkness! |
LocalScript:
01 | local Caster = script:WaitForChild( "Caster" ) |
02 | local CastValue = Caster.Value |
03 | local camera = game.Workspace.CurrentCamera |
04 | local Character = game.Workspace:FindFirstChild(CastValue) |
05 | local plr = game.Players.LocalPlayer |
06 | camera.CameraType = Enum.CameraType.Scriptable |
07 | camera:Interpolate(Character.Head.CFrame, Character.Head.CFrame, 2 ) |
08 | wait( 1 ) |
09 | wait( 2 ) |
10 | camera:Interpolate(plr.Character.Head.CFrame, plr.Character.Head.CFrame, 1 ) |
11 | wait( 1 ) |
12 | camera.CameraType = Enum.CameraType.Custom |