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
 

Can someone help me with this script:

Previous Thread :: Next Thread 
IIXXHockeyXXII is not online. IIXXHockeyXXII
Joined: 17 Feb 2011
Total Posts: 1754
14 Jul 2012 06:54 PM
Here is what I want it to function:
If this brick, touches this brick,
then, create a decal of this asset ID,
then when touched another brick,
remove the first decal, or just change the asset ID of the 1st decal,
to the next, and so on.

I wanna make a lunar landing map,
As it touches 1 brick at high altitude that will be spread accross, it will show a decal of them in high altitude, the lower they go, the lower the decal will represent them.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
14 Jul 2012 06:56 PM
Title fixed.
Report Abuse
IIXXHockeyXXII is not online. IIXXHockeyXXII
Joined: 17 Feb 2011
Total Posts: 1754
14 Jul 2012 06:58 PM
Here is me randomly shooting at it from what I know:

150m = workspace.onefiftybrick
130m = workspace.onethirtybrick
110m = workspace.onetenbrick
100m = workspace.onehundredbrick (imagine i kept going untill 10)
10m = workspace.tenbrick
0m = touchdown.brick

function() Ontouch altitude, 150m
CreateNew = decal
Texture ID = http://www.roblox.com/assetid=1337
function() Altitude, 130,
Decal:remove()
CreateNew= decal
Texture ID = http://www.roblox.com/assetid=1338

repeat()

end.








I know it's extremely wrong, just trying at it.
Report Abuse
Techwiz19 is not online. Techwiz19
Joined: 30 Jan 2011
Total Posts: 462
14 Jul 2012 07:11 PM
Use the wiki.
And instead of asking us to make you a script, you made a script that you know wouldnt work, knowing nothing about what any of it means hoping that we will fix(make) it. Try actually learning scripting first.
Heres a good place to start for something like this: http://wiki.roblox.com/index.php/Touched_(Event)
Report Abuse
Malcolt3 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
14 Jul 2012 07:14 PM
You will have to put this script in every brick. I'm just going to assume you want the decal to be placed on the person, if not you can change it.


button = script.Parent

function onTouch(part)

if part.Parent:findFirstChild("Humanoid") then
local prevdecal = part.Parent.Torso:GetChildren()
if prevdecal.className == "Decal" then
prevdecal:Remove()
end

local decal = Instance.new("Decal")
decal.Texture = "whatever texture"
decal.Parent = part.Parent:findFirstChild("Torso")

end
end

button.Touched:connect(onTouch)
Report Abuse
IIXXHockeyXXII is not online. IIXXHockeyXXII
Joined: 17 Feb 2011
Total Posts: 1754
14 Jul 2012 08:47 PM
Here is a diagram

I want it on-touch with the monitor,
after it touches the moniter,

(btw "it" is a giantic invisible cancolid brick)

Report Abuse
IIXXHockeyXXII is not online. IIXXHockeyXXII
Joined: 17 Feb 2011
Total Posts: 1754
14 Jul 2012 08:48 PM
well, the diagram was http://www.roblox.com/brickthingy-item?id=86735804...
forgot to post...
Report Abuse
HeIlbound is not online. HeIlbound
Joined: 07 Jun 2012
Total Posts: 10
14 Jul 2012 09:56 PM
genius idea, bump please, i need this aswell
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