This is the script that I thought of:
hit = Workspace.WiseDumbledore for _,ch in ipairs(hit:GetChildren()) do if ch.className == 'Part' then ch.Transparency = 1 ch.CanCollide = false ch.Anchored = true end end
This poses a few problems. When
ch = hit.Head
or
ch = hit.Torso
The line
ch.CanCollide = false
will be non effective. Also the face will not be invisible. Others suggested:
Workspace.WiseDumbledore: remove()
and
Workspace.WiseDumbledore.Parent = "Lighting"
These scripts will not allow the target to reset. Please help.
Thanks WiseDumbledore
local hitPart = Workspace.WiseDumbledore local player = Game.Players:GetPlayerFromCharacter(hitPart) if player then for index, object in pairs(player.Character:GetChildren()) do if object:IsA("BasePart") then object.Transparency = 1 object.CanCollide = false object.Anchored = true if object:FindFirstChild("face") then object.face.Transparency = 1 end elseif object:IsA("Hat") and object:FindFirstChild("Handle") then object.Handle.Transparency = 1 object.Handle.CanCollide = false object.Handle.Anchored = true end end end
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then -- if a humanoid exists, then humanoid.Parent.Torso.Anchored = true end end script.Parent.Touched:connect(onTouch)
And for disable reset (Put in StarterGui and make sure it's a localscript)
function onTouch(part) game:GetService("StarterGui"):SetCore("ResetButtonCallback", false) end game.Workspace.Part.Touched:connect(onTouch)
Make sure the "Part" is changed to your bricks name
This will work... You cant Move, or be interacted with. At the same time you CAN reset.
function Freeze(char) if char and char:IsA("Model") then for i,v in pairs(char:children()) do if v.className == "Part" then v.Transparency = 1 v.CanCollide = false end if v.className == "Hat" then v.Handle.Transparency = 1 v.Handle.CanCollide = false v.Handle.Anchored = true end if v.Name == "Head" then v.face.Transparency = 1 end end end end --If you want to freeze a player, Do Freeze(game.Players.Roblox.Character)