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: INC Script help

Previous Thread :: Next Thread 
swaggakillax is not online. swaggakillax
Joined: 11 Nov 2011
Total Posts: 58
10 Jun 2013 01:46 PM
IM working on this..but i made it where if anything touches the brick it will say inc..i want it to be where only if the ball touches.

debounce = false
function onTouched(hit)
if debounce==false then
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("INC")
wait(5)
msg.Text = ("lol")
msg:remove()
debounce = false
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
10 Jun 2013 02:22 PM
debounce = false
function onTouched(hit)
if debounce==false then
if hit.Name = "Ball" then
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("INC")
wait(5)
msg.Text = ("lol")
msg:remove()
debounce = false
end
end
end
script.Parent.Touched:connect(onTouched)

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
10 Jun 2013 02:37 PM
debounce = false
function onTouched(hit)
if debounce==false then
if hit.Name == "Ball" then
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("INC")
wait(5)
msg.Text = ("lol")
msg:remove()
debounce = false
end
end
end
script.Parent.Touched:connect(onTouched)

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
swaggakillax is not online. swaggakillax
Joined: 11 Nov 2011
Total Posts: 58
10 Jun 2013 09:46 PM
Its just touching a regular brick called part..You want me to name it a special brick?
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
10 Jun 2013 09:48 PM
debounce = false
function onTouched(hit)
if debounce==false then
if hit.Name == "part" then --Change where is says "part" to the exact name of the ball
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("INC")
wait(5)
msg.Text = ("lol")
msg:remove()
debounce = false
end
end
end
script.Parent.Touched:connect(onTouched)

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
swaggakillax is not online. swaggakillax
Joined: 11 Nov 2011
Total Posts: 58
10 Jun 2013 11:58 PM
debounce = false
function onTouched(hit)
if debounce==false then
if hit.Name == "part" then --Change where is says "part" to the exact name of the ball
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("INC")
wait(5)
msg.Text = ("lol")
msg:remove()
debounce = false
end
end
end
script.Parent.Touched:connect(onTouched)

-still didnt work. do i need a script on the ball?..i appreciate you helping me btw
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
11 Jun 2013 12:02 AM
Did you read, and acknowledge his comment on line four...? You have to change 'part' to the name of the ball.
Report Abuse
swaggakillax is not online. swaggakillax
Joined: 11 Nov 2011
Total Posts: 58
11 Jun 2013 10:12 AM
i did that..i was just posting the old script again so he could look at it..
Report Abuse
swaggakillax is not online. swaggakillax
Joined: 11 Nov 2011
Total Posts: 58
11 Jun 2013 10:19 AM
debounce = false
function onTouched(hit)
if debounce==false then
if hit.Name == "Football" then --Change where is says "part" to the exact name of the ball
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = ("INC")
wait(5)
msg.Text = ("lol")
msg:remove()
debounce = false
end
end
end
script.Parent.Touched:connect(onTouched)

-Is what i put on the brick
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
11 Jun 2013 12:34 PM
Wait, did you put this in the ball or the "goal"?

It should be in what ever you want the "goal" to be, not the ball.

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
swaggakillax is not online. swaggakillax
Joined: 11 Nov 2011
Total Posts: 58
11 Jun 2013 08:50 PM
I put this on the brick...im going to make it invisible..so when the ball touches the ground it is going to say inc
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