|
| 05 Feb 2014 08:26 AM |
| So, I made a fort for my group and now there's this huge lake. You cross a log but if you fall off the log you land in the lake. I want you to freeze in the lake and die. Anyone know how to do that? |
|
|
| Report Abuse |
|
|
shawnyg
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 1428 |
|
|
| 05 Feb 2014 08:33 AM |
Have a script in the lake anchor all of your parts, and you turn blue, then you respawn.
~Hope I helped! If you need a script, PM me.~ ~The G~ ~CAT General Shawnyg~ |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 08:39 AM |
| What would the script be though? |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 08:43 AM |
I believe the script would be,
function Touched() game.Players.GetPlayer() game.Players.Player.Anchored = true end script.Parent.Touched:connect(Touched) Something Like that... |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Feb 2014 08:46 AM |
function OnTouch (hit) player = hit.Parent if player:FindFirstChild("Humanoid") then player("Left arm").Anchored = true player("Right arm").Anchored = true player("Left leg").Anchored = true player("Right leg").Anchored = true player("Torso").Anchored = true player("Head").Anchored = true wait(1) player("Left arm").Reflectance = 1 player("Right arm").Reflectance = 1 player("Left leg").Reflectance = 1 player("Right leg").Reflectance = 1 player("Torso").Reflectance = 1 player("Head").Reflectance = 1 wait(1) player:LoadCharacter() end end script.Parent.Touched:connect(OnTouch)
Try that, not sure if it work, because I can't open studio. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 08:48 AM |
function OnTouched() game.Players.GetPlayer() if game.Players.Player.Touched then game.Players.GetFirstChild.Anchored = true end end script.Parent.Parent.Touched:connect(OnTouched)
This should work, if not, ask someone to edit it for you, or I will post the ENTIRE script with the blue and all. |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Feb 2014 09:11 AM |
game.Workspace.Lake.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then char = hit.Parent charparts = hit.Parent:GetChildren() for i, v in ipairs(charparts) do if v ~= "Humanoid" or v~= "Clothing" or v~= "Pants" then v.Anchored = true end end torsopos = char.Torso.Position ice = Instance.new('Part', char) ice.Size = Vector3.new(10,10,10) ice.Position = Vector3.new(torsopos.x, torsopos.y, torsopos.z) ice.BrickColor = BrickColor.new(11) ice.Transparency = 0.5
repeat char.Humanoid.Health = char.Humanoid.Health - 10 wait(0.5) until char.Humanoid.Health = 0 end)
probably won't work but you can fix it
|
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 09:12 AM |
| I just made my own. But thanks! |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 09:28 AM |
| Lil, you are trying to use a method like a child of something. Please learn how to actualy use methods in Lua before trying to help anyone. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 12:24 PM |
| I can still script, so it's ok, I like my method. |
|
|
| Report Abuse |
|
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 05 Feb 2014 12:29 PM |
| @lil It's not if you like it or not, it is just that it won't work |
|
|
| Report Abuse |
|
|