- What do you want to achieve? Keep it simple and clear!
make Root invisible - What is the issue? Include screenshots / videos if possible!
Root aren’t invisibles even Localscript made them to be invisible
Also, All of Root/Tools are issued by localscript
if Staircase_DetectorD == true then
local ifCLONE = ItemFolder:FindFirstChild("Staircase detector")
if not ifCLONE then
local Clone = Staircase_Detector:Clone()
local Attachment = Instance.new("Motor6D", Character.LeftHand)
local animation = Character:FindFirstChild("AnimationFolder"):FindFirstChild("equipRadarStaircase")
Attachment.Name = "RadarDetector_Attachment"
Attachment.Part0 = Clone.PrimaryPart
Attachment.Part1 = Character.LeftHand
Attachment.C0 = CFrame.new(-0.5, 0, 0) * CFrame.fromEulerAnglesYXZ(math.rad(90), math.rad(-90), 0)
Clone.RootRadar.LocalTransparencyModifier = 1
Clone.RootRadar.Transparency = 1
for _, NotRelated in pairs(ItemFolder:GetChildren()) do
if NotRelated.Name ~= Clone.Name then
NotRelated:Destroy()
end
end
Clone.Parent = ItemFolder
if animation:IsA("Animation") and humanoid:IsA("Humanoid") then
animation.AnimationId = "rbxassetid://84585994210346"
local track = humanoid:LoadAnimation(animation)
track:Play()
animation.AnimationId = "rbxassetid://72753251806405"
local track1 = humanoid:LoadAnimation(animation)
track1.Looped = true
track1:Play()
-- Start checking for flashlight turning off
local connection
connection = game["Run Service"].Heartbeat:Connect(function()
if not Staircase_DetectorD then
print("RadarStaircase turned off. Stopping animation.")
track1:Stop()
connection:Disconnect()
end
end)
end
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.