You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I’m trying to make the player freeze in place and have a frozen block spawn in the player
game.ReplicatedStorage.FreezeEvent.OnServerEvent:Connect(function(hit)
local freeze = Instance.new("Part")
freeze.Size = workspace.FreezeExample.Size
freeze.Name = "Freeze"
freeze.Anchored = true
freeze.Material = "Ice"
freeze.Color = Color3.new(0.2, 0.345098, 0.509804)
freeze.Transparency = 0.4
freeze.CanCollide = true
freeze.CFrame = hit.Character.HumanoidRootPart.CFrame
freeze.Parent = workspace
for index, Instance in pairs(hit.Character:GetChildren()) do
if Instance:IsA("BasePart") then
Instance.Anchored = true
end
end
task.wait(3)
print(freeze.CFrame)
print(hit.Character.HumanoidRootPart.CFrame)
for index, Instance in pairs(hit.Character:GetChildren()) do
if Instance:IsA("BasePart") then
Instance.Anchored = false
end
end
freeze:Destroy()
end)
-
What is the issue? Include screenshots / videos if possible!
Whenever the block is spawned it is slightly delayed from the character
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried checking the CFrame but it shows both as the same despite that clearly not being the case