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 another on hit script

Previous Thread :: Next Thread 
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:00 PM
Here's what it should do.
1. The player hits an invisible brick.
2. Waits three seconds.
3. A deadly laser activates and takes 4 seconds to move across the floor.
4. Laser deactivates and script ends. (At least until another player hits it)

Pretty simple I think. I don't have a clue how to script. All I can do is edit bits and peices of them, so if you could just post the entire script that would be best. If you want to claim the credit for it, I'll give it to you. ;)
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
13 Aug 2011 03:05 PM
Go away.
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:12 PM
uh... I don't think I posted in the wrong Forum. Don't bother me. -_-

"Good help is hard to find." *sighs*
Report Abuse
Jason1289 is not online. Jason1289
Joined: 20 Mar 2009
Total Posts: 446
13 Aug 2011 03:13 PM
No requests
Report Abuse
VitimanA is not online. VitimanA
Joined: 04 Apr 2008
Total Posts: 869
13 Aug 2011 03:16 PM
ppl who are knew to scripting can't see that theres a big difference to HELPING and DOING IT ALL FOR SOMEONE JUST BECAUSE THEY SAY SO AND IF THEY DONT THE PERSON WHO REQUESTS WOULD BE LIKE OHHH BUT THIS IS SCRIPTING HELPERS -.-
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:18 PM
I don't understand. Is not this Forum what this is for? Asking for help from REAL scripters? If there are no requests allowed, what is this section of the Forum doin here. Just because I'm an aweful noob at scripting doesn't mean I don't have any common sence....
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:18 PM
@vitim, actually, that's technically still helping...

@OP
No requests.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:19 PM
@BAND, instead of requests, you post broken script and we fix them. We can also tell you how certain Lua methods and functions and stuff work.
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:22 PM
I said it would require doing it all didn't I? I offered to give credit to you for taking the time to help me out and making it on your own, since I can't. I meant it too. I've tried making this script myself idk how long, and it never worked. -_- nevermind... I'll just... idk Fine. Just forget this Forum was ever here. I'm a noob and I except that. Bye....
Report Abuse
lukenuke75 is not online. lukenuke75
Joined: 26 Jul 2008
Total Posts: 423
13 Aug 2011 03:22 PM
This board is used to help with scripts. We help Debug them and fix them, we do not create scripts for those whom haven't even tried to learn how to script. People who request, usually are a burden therefore we shoo them away. We are not your personal slaves.



Heres something that will help you out.


function onTouch(hit)
end

script.Parent.Touched:connect(onTouch)



I did not use an anonymous function for a reason.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:23 PM
@BANDICOOT, there's a difference between "noob" and "person who doesn't understand use of certain specific forums but who actually uses grammar and offers to give credit unlike most of the other requesting nubcaiks in here".
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:25 PM
I have tried... does anyone serriously even read my explanation? Okay, I'll post the script that I have have almost does what I want, but I'll need help configuring it. I was just thinking it may be complicated and starting over would be best. idk...
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:25 PM
Also, it might benefit you to actually learn how to construct a script from scratch. What you ASKED is quite simple but takes awhile, so nobody would really want to do it. Try the wiki:
wiki.roblox.com
I reccomend "Absolute Begginners' Guide to Scripting" and then working up gradually from there. Make sure you understand everything about a certain function or method or whatever before moving on, otherwise you probably won't remember it.
Report Abuse
TheTerminator800 is not online. TheTerminator800
Joined: 09 Dec 2009
Total Posts: 11162
13 Aug 2011 03:27 PM
Idk how to make that :3.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:27 PM
@BAND, that would be useful, yes. Another thing you should learn about these forums is if you've at least had a go at creating a script that is close to working, people are more willing to rewrite it for you if it would be faster.
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:28 PM
This script moves bricks to other locations, right?
I just need it modified so that it'll move a deadly brick three seconds after a player hits an invisible brick.


local BP = script.Parent.BodyPosition
local pos1 = script.Parent.Parent.pos1
local pos2 = script.Parent.Parent.pos2
local pos3 = script.Parent.Parent.pos3
local pos4 = script.Parent.Parent.pos4

while true do

BP.position = pos1.Position
wait(2)
BP.position = pos2.Position
wait(2)
BP.position = pos3.Position
wait(2)
BP.position = pos4.Position
wait(2)

end

Is this better. Ya sorry. I was bein an idiot.... No hard feelings?
Credit will still be given to you for helping me fix this. ;)
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:31 PM
local path = script.Parent.Parent.TouchyBrick -- PLACE THE PATH TO THE TOUCH BRICK HERE
local db = false
local BP = script.Parent.BodyPosition
local pos1 = script.Parent.Parent.pos1
local pos2 = script.Parent.Parent.pos2
local pos3 = script.Parent.Parent.pos3
local pos4 = script.Parent.Parent.pos4

function onTouched(hit)
if db then return else db = true end
wait(3)
moveLaser()
wait()
db = false
end

function moveLaser()
BP.position = pos1.Position
wait(2)
BP.position = pos2.Position
wait(2)
BP.position = pos3.Position
wait(2)
BP.position = pos4.Position
wait(2)
end

path.Touched:connect(onTouched)
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
13 Aug 2011 03:32 PM
That should work.
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:33 PM
Okay. Thanks. :D Let me test it out...
Report Abuse
BANDICOOT4000 is not online. BANDICOOT4000
Joined: 16 Dec 2008
Total Posts: 526
13 Aug 2011 03:41 PM
It works fine, but there's something missing... I'd like it to take like 5 seconds to arrive at the first position, then the script should kind of reset until another player hits it. Other than that, I think that's it.
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