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: Um, help?

Previous Thread :: Next Thread 
Choonwee is not online. Choonwee
Joined: 05 Mar 2009
Total Posts: 4776
19 Sep 2009 02:24 AM
function Humanoid.Touched(part)
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
m = Instance.New("Message")
m.Text = "MUAHAHAHA!"
m.Name = "Tricked"
m.Parent = game.workspace
x = Instance.new("Explosion")
x.BlastRadius = 25
x.BlastPressure = 10
x.Parent = game.Workspace
x.Position = part.Position
end

script.Parent.Touched:connect(Touched)


It won't work.
Report Abuse
R4P18 is not online. R4P18
Joined: 16 Nov 2008
Total Posts: 4025
19 Sep 2009 02:26 AM
function onTouch(hit)
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
m = Instance.New("Message")
m.Text = "MUAHAHAHA!"
m.Name = "Tricked"
m.Parent = game.workspace
x = Instance.new("Explosion")
x.BlastRadius = 25
x.BlastPressure = 10
x.Parent = game.Workspace
x.Position = part.Position
end

script.Parent.Touched:connect(onTouch)
Report Abuse
Choonwee is not online. Choonwee
Joined: 05 Mar 2009
Total Posts: 4776
19 Sep 2009 02:28 AM
Hmm...?

Isn't that supposed to be the same thing except the first part?

And also, can I try this?

function Humanoid.Touched(part)
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
m = Instance.New("Message")
m.Text = "MUAHAHAHA!"
m.Name = "Tricked"
m.Parent = game.workspace
wait(4)
script.m.Remove()
x = Instance.new("Explosion")
x.BlastRadius = 25
x.BlastPressure = 10
x.Parent = game.Workspace
x.Position = part.Position
end

script.Parent.Touched:connect(Touched)
Report Abuse
R4P18 is not online. R4P18
Joined: 16 Nov 2008
Total Posts: 4025
19 Sep 2009 02:34 AM
It is not Humanoid.Touched or Touched, but onTouch. Except when connecting, before :connect.
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
19 Sep 2009 02:58 AM
Touched(hit)

blablabls

end

script.Parent.Touched:connect(Touched)

it dont have to be onTouch..
Report Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
19 Sep 2009 07:20 AM
function ANYTHINGHERE(args) --i always use args as of java
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
19 Sep 2009 08:15 AM
function Touched()
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