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

Freezing Death Water Script

Asked by 11 years ago

How do I make a script that functions the same as asimo3089's Winter Games Lodge?

3 answers

Log in to vote
3
Answered by
Trewier 146
11 years ago

something like this:

01script.Parent.Touched:connect(function(part)
02character = part.Parent
03if character:FindFirstChild("Humanoid") then
04    for i,e in pairs(character:GetChildren()) do
05        if e:IsA("Part") then
06            e.Anchored = true
07        end
08    end
09ice = Instance.new("Part")
10ice.Size = Vector3.new(3,6,3)
11ice.CFrame = character.Torso.CFrame
12ice.Parent = character -- Parent it so it gets deleted when character dies
13ice.Anchored = true
14ice.Transparency = 0.5
15ice.BrickColor = BrickColor.new("Toothpaste")
View all 25 lines...

This is just a rough code, but it should do the trick for you. Have a nice day.

P.S. The script goes inside the part being touched.

Edit: Forgot to anchor ice, thanks to TheLuaWeaver for pointing this out.

Edit: Fixed some spelling mistakes and configured the ice. There you go. Sorry for that.

1
To add onto this answer, make sure that the "ice" is anchored. That is important. TheLuaWeaver 301 — 11y
0
Thanks, also, this is going into a local script or just a script? Mirror_Master 25 — 11y
0
this should go into a normal script Trewier 146 — 11y
0
Hmmm, it seems to not be working for me. I put the script inside a brick and tested it out but nothing happened. Yeah, I even got the new edited one and it's still not working. :( Mirror_Master 25 — 11y
View all comments (4 more)
0
Fixed. Sorry for the errors, i hadn't tested it. Trewier 146 — 11y
0
Thank you! It worked! Also, another thing? Does this work for a mesh? Mirror_Master 25 — 11y
0
This was already answered in game between us, but I explained that meshes don't collide so this won't. Just for those who are wondering Trewier 146 — 11y
0
You should add a debounce to the script. andreagoingblue 0 — 9y
Ad
Log in to vote
1
Answered by
Mazux 140
11 years ago

The freezing bit was very well covered above.

You could also make it take 5 health from the player when touched, the player is frozen so they wouldn't escape, that'd create slow death, like hyperthermia.

I'd also throw in some GUIs for extra cool tequniques.

Damaging: Player.Humanoid.Health -10

0
Uhhh. Could you do that on Roblox for me? I'm terrible at gui's? Mirror_Master 25 — 11y
Log in to vote
0
Answered by
Lopous 1
8 years ago

Add this into a "part" into to work 100%

01bin = script.Parent
02 
03function onTouched(part)
04    part.BrickColor = BrickColor.new(45)
05    wait(.55)
06    part.Reflectance = .2
07    wait(.5)
08    part.Reflectance = .4
09    wait(.5)
10    part.Reflectance = .6
11    wait(.5)
12    part.Reflectance = .8
13    wait(.1)
14    part.Anchored = true
15    part.CanCollide = true
View all 23 lines...

Answer this question