I don’t want to use localscript for this because everything will break
What is wrong with this script?? camera cframes are different but nothing is happening in game {before the line 19 and after}
local active = false
local activeli2 = {}
script.Parent.Touched:connect(function(hit)
local findhum = hit.Parent:FindFirstChild("Humanoid")
local whois = hit.Parent
if whois:FindFirstChild("Humanoid") and not activeli2[whois.Name] then
activeli2[whois.Name] = true
if findhum then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
findhum.Jump = true
wait(0.05)
local vorona = whois:FindFirstChild("HumanoidRootPart")
--findhum.PlatformStand = true
vorona.CFrame *= CFrame.Angles(0, math.rad(180), 0)
task.wait(0.05)
print(whois)
print(workspace.CurrentCamera.CFrame)
workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(math.rad(180), 0, 0)
print(workspace.CurrentCamera.CFrame)
task.wait(0.33)
--findhum.PlatformStand = false
end
wait(0.5)
activeli2[whois.Name] = false
end
end)