Hey guys, in this script I am trying to recreate the bell effect from Deepwoken when a player dies. The main issue i’ve been running into is the fact that my player is also rotating with the part (transparent part with decal)
Video of problem in question:
Gyazo link to video
So far i’ve tried changing the “bell” to Massless, as well as changing cancollide and cantouch both to false, and also making the rootpriority to -1. Im at a loss for what to do haha.
local replicatedstorage = game:GetService("ReplicatedStorage")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local bell = replicatedstorage:WaitForChild("TheBell"):Clone()
local humanoid = character:WaitForChild("Humanoid")
while true do
wait(0.3)
if humanoid.Health < 10 then
local Weld = Instance.new("RigidConstraint", character.PrimaryPart)
bell.Massless = true
bell.CanCollide = false
bell.CanTouch = false
local attachment0 = Instance.new("Attachment")
local attachment1 = Instance.new("Attachment")
attachment0.Parent = character.PrimaryPart
attachment1.Parent = bell
attachment0.Name = "Attachment"
attachment1.Name = "Attachment"
Weld.Name = "Weld"
Weld.Attachment0 = character.PrimaryPart:WaitForChild("Attachment")
Weld.Attachment1 = bell:WaitForChild("Attachment")
bell.Parent = player.Character
wait(0.5)
print("Bell..")
humanoid.Health += 100
end
end
end)
end)
Thank you in advance