Heyo, I’m trying to make a takedown kill thing in Roblox and I plan on adding frameworks to it but there is one problem. when I enter the cutscene for the kill I’m invisible (if I’m in first person) anyway I could fix this?
Video of what this looks like
As you can see I’m Invisible (I’m not invisible when I’m not in first person, but since I’m planning on adding frameworks I HAVE TO BE IN FIRST PERSON)
https://gyazo.com/c1d5cb463f072000a70158b43f5c6d1d
Here is the code for the Hitbox(Script)
local hitbox = script.Parent
local knife = game.StarterPack:FindFirstChild("Knife")
local Target = script.Parent.Parent
local anim = script:WaitForChild("Fall")
local humanoid = script.Parent.Parent:WaitForChild("Humanoid")
local FallOnKnees = humanoid:LoadAnimation(anim)
local db = true
hitbox.Touched:Connect(function(hit)
local char = hit.Parent
local hum = char and char:FindFirstChild("Humanoid")
local plr = game.Players:FindFirstChild(char.Name)
if db and hum and plr then
db = false
local KTF = plr:WaitForChild("KTF")
local KT = KTF:FindFirstChild("Takedown")
if KT.Value then
KT.Value = false
char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.Position, hitbox.Position)
game.ReplicatedStorage.TakedownCam:FireClient(plr)
game.ReplicatedStorage.TakedownAnimV1:FireClient(plr)
wait(1.5)
FallOnKnees:Play()
script.Parent.Parent.Humanoid.Health = 10
else
print("Takedown is not available at the moment")
end
wait(1)
db = true
end
end)
Here is the code for me to be in first person, short and sweet (LocalScript)
local plr = game.Players.LocalPlayer
plr.CameraMode = Enum.CameraMode.LockFirstPerson