This script is "glacius" which freezes the target with the use of a wand but I don't want to use the wand with this. Instead I want the player to just tap a target and they will freeze. Is that possible?? If so can someone help me!!

local char = script.Parent
if char:FindFirstChild("Ice")==nil and char:FindFirstChild("Rock")==nil then
	for _,v in next,char:GetDescendants() do
		if v:IsA("BasePart") and v:FindFirstAncestorOfClass("Tool") == nil then
			v.Anchored=true
			if v.Name~="HumanoidRootPart" and v.Name ~= "Effect" then
				local r=v:clone()
				r.Anchored=false
				r.Name="Ice"
				r.BrickColor=BrickColor.new("Baby blue")
				r.Material=Enum.Material.Ice
				r.Size=v.Size+Vector3.new(.05,.05,.05)
				r.Transparency = .55
				local Weld = Instance.new("Weld")
				Weld.Part0 = v
				Weld.Part1 = r
				Weld.Parent = r
				r.Parent=char
				v.Transparency = 0
			end
		end
	end
	wait(math.random(5,12))
	for _,v in next,char:GetDescendants() do
		if v:IsA("BasePart") and v:FindFirstAncestorOfClass("Tool") == nil then
			v.Anchored=false
			if v.Name~="HumanoidRootPart" then
				if v.Name=="Ice" then
					v:Destroy()
				else
					v.Transparency=0
				end
			end
		end
	end
end
--
wait()
script:Destroy()

1 comment

0

can someone help?