CFrame angles are not working, though I have them set to 90 in the Cframe.Angles arguments, It is set as 0, 90, 0 but when checked in workspace it has the value of 0, 116.3, 0
game.ReplicatedStorage.crack.OnServerEvent:Connect(function(plr)
local chr = plr.Character;
local leftArm = chr["Left Arm"]
local rightArm = chr["Right Arm"]
chr.Humanoid.WalkSpeed = 0;
chr.Humanoid.JumpPower = 0;
task.wait(0.1);
local leftCrack = game.ReplicatedStorage.gura:Clone();
local RightCrack = game.ReplicatedStorage.gura:Clone();
leftCrack.Parent = workspace;
RightCrack.Parent = workspace;
leftCrack.CFrame = chr:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(2.5, 0, 0) * CFrame.Angles(0, 90, 0)
RightCrack.CFrame = chr:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(-2.5, 0, 0) * CFrame.Angles(0, 90, 0)
task.wait(2)
for index, indexf1 in pairs(leftCrack:GetDescendants()) do
if indexf1:IsA("ParticleEmitter") then
indexf1.Enabled = false
end
end
for index, indexf1 in pairs(RightCrack:GetDescendants()) do
if indexf1:IsA("ParticleEmitter") then
indexf1.Enabled = false
end
end
task.wait(2)
leftCrack:Destroy();
RightCrack:Destroy();
chr.Humanoid.WalkSpeed = 16;
chr.Humanoid.JumpPower = 5;
end)
video: game.ReplicatedStorage.crack.OnServerEvent:Connect(function(plr)
local chr = plr.Character;
local leftArm = chr["Left Arm"]
local rightArm = chr["Right Arm"]
chr.Humanoid.WalkSpeed = 0;
chr.Humanoid.JumpPower = 0;
task.wait(0.1);
local leftCrack = game.ReplicatedStorage.gura:Clone();
local RightCrack = game.ReplicatedStorage.gura:Clone();
leftCrack.Parent = workspace;
RightCrack.Parent = workspace;
leftCrack.CFrame = chr:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(2.5, 0, 0) * CFrame.Angles(0, 90, 0)
RightCrack.CFrame = chr:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(-2.5, 0, 0) * CFrame.Angles(0, 90, 0)
task.wait(2)
for index, indexf1 in pairs(leftCrack:GetDescendants()) do
if indexf1:IsA("ParticleEmitter") then
indexf1.Enabled = false
end
end
for index, indexf1 in pairs(RightCrack:GetDescendants()) do
if indexf1:IsA("ParticleEmitter") then
indexf1.Enabled = false
end
end
task.wait(2)
leftCrack:Destroy();
RightCrack:Destroy();
chr.Humanoid.WalkSpeed = 16;
chr.Humanoid.JumpPower = 5;