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 » Scripters
Home Search
 

Re: Whats wrong with this script?

Previous Thread :: Next Thread 
Baya is not online. Baya
Joined: 16 Feb 2009
Total Posts: 12044
03 Jul 2016 11:39 AM
Partt = script.Parent
Partt.TouchEnded:connect(function(Hit)
if Hit and Hit.Parent:FindFirstChild("Humanoid") and not Hit.Parent:FindFirstChild("ForceField") then Instance.new("ForceField", Hit.Parent) end
end)


I want a forcefield over the character while touching "Partt"


R$37,505 RAP:655,245
Report Abuse
Baya is not online. Baya
Joined: 16 Feb 2009
Total Posts: 12044
03 Jul 2016 11:42 AM
1


R$37,505 RAP:655,247
Report Abuse
Baya is not online. Baya
Joined: 16 Feb 2009
Total Posts: 12044
03 Jul 2016 11:45 AM
2


R$37,505 RAP:655,247
Report Abuse
Baya is not online. Baya
Joined: 16 Feb 2009
Total Posts: 12044
03 Jul 2016 11:47 AM
someone help plss


R$37,505 RAP:655,248
Report Abuse
OnlySinister is not online. OnlySinister
Joined: 07 Jan 2015
Total Posts: 885
03 Jul 2016 11:49 AM
TouchEnded fires when the player no longer touches the brick




Report Abuse
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
03 Jul 2016 12:13 PM
What are you doing. I made that for you and all you do is name "Part" to "Partt".. You said it worked fine.


-=[ RAP: 334,184 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
03 Jul 2016 12:16 PM
For crying out loud, if you're going to copy one half of a script and then claim it doesn't work, at least know what you're copying.. Now copy ALL of this and place it in a part.

-- Script inside part.
local Part = script.Parent
Part.Touched:connect(function(Hit)
if Hit and Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent:FindFirstChild("ForceField") then Hit.Parent.ForceField:Destroy() end
end)
Part.TouchEnded:connect(function(Hit)
if Hit and Hit.Parent:FindFirstChild("Humanoid") and not Hit.Parent:FindFirstChild("ForceField") then Instance.new("ForceField", Hit.Parent) end
end)


-=[ RAP: 334,179 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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