Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why didn't the block showed up when ontouch freeze?

function onTouched(part)
local hu = part.Parent:findFirstChild("Humanoid")
local he = part.Parent:findFirstChild("Head")
local la = part.Parent:findFirstChild("Left Arm")
local ll = part.Parent:findFirstChild("Left Leg")
local ra = part.Parent:findFirstChild("Right Arm")
local rl = part.Parent:findFirstChild("Right Leg")
local to = part.Parent:findFirstChild("Torso")
if hu~=nil then
he.BrickColor = BrickColor.new(1013)
he.Transparency = 0.7
he.Anchored = true
la.BrickColor = BrickColor.new(1013)
la.Transparency = 0.7
la.Anchored = true
ll.BrickColor = BrickColor.new(1013)
ll.Transparency = 0.7
ll.Anchored = true
ra.BrickColor = BrickColor.new(1013)
ra.Transparency = 0.7
ra.Anchored = true
rl.BrickColor = BrickColor.new(1013)
rl.Transparency = 0.7
rl.Anchored = true
to.BrickColor = BrickColor.new(1013)
to.Transparency = 0.7
to.Anchored = true
end
end
script.Parent.Touched:connect(onTouched)

For example, a wave touch player's torso, the player's torso will be anchored in the script and the ice block will show up on the torso. It's more like player freezed in an iceblock. But this script doesn't show the ice block. Help?

4 comments

0

Where is the code to create the ice block?

0

of course this doesn't show wave block. This is only player body parts.

0

We need the code to create the ice block?

0

I thought we can just put he.BrickColor and so on

1 answer

✓ Accepted answer

Although I'm not home, I can provide some useful information. I believe I had this problem once, but I believe the solution is the following: BodyColors. It's a property of Humanoid, in which it shows the various body colors for you to edit. They most likely override any brick colors.

2 comments

0

So how do i overcome the problem?

0

@SHIFTRK9 Using BodyColors. I want you to apply it to your issue. Look into Humanoid,and you'll see it.

This discussion is preserved as it was. New answers, comments, and votes are closed.