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