generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I need help with a script.

Previous Thread :: Next Thread 
HockeyGod112 is not online. HockeyGod112
Joined: 09 Nov 2012
Total Posts: 11321
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 is not online. 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
HockeyGod112 is not online. HockeyGod112
Joined: 09 Nov 2012
Total Posts: 11321
05 Feb 2014 08:39 AM
What would the script be though?
Report Abuse
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
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
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
05 Feb 2014 08:44 AM
Messed up I will post it.
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
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
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
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
HockeyGod112 is not online. HockeyGod112
Joined: 09 Nov 2012
Total Posts: 11321
05 Feb 2014 09:05 AM
None worked.
Report Abuse
shinybearhead is not online. shinybearhead
Joined: 24 Jan 2011
Total Posts: 135
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
HockeyGod112 is not online. HockeyGod112
Joined: 09 Nov 2012
Total Posts: 11321
05 Feb 2014 09:12 AM
I just made my own. But thanks!
Report Abuse
Solsticedev is not online. Solsticedev
Joined: 02 Feb 2014
Total Posts: 343
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
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
05 Feb 2014 12:24 PM
I can still script, so it's ok, I like my method.
Report Abuse
Kingmouli is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image