Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago
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?

0
Where is the code to create the ice block? Im_Kritz 334 — 9y
0
of course this doesn't show wave block. This is only player body parts. TheDeadlyPanther 2460 — 9y
0
We need the code to create the ice block? SHIFTRK9 -2 — 9y
0
I thought we can just put he.BrickColor and so on SHIFTRK9 -2 — 9y

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

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.

0
So how do i overcome the problem? SHIFTRK9 -2 — 9y
0
@SHIFTRK9 Using BodyColors. I want you to apply it to your issue. Look into Humanoid,and you'll see it. Shawnyg 4330 — 9y
Ad

Answer this question