|
| 30 Apr 2017 11:19 PM |
| Hi can any1 make me a script which when a model named train touches a model named wall, I want an explosion to happen on the train and blow up the train. I don't want it to blow up anything but the train. No collateral damage. pLease help. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Apr 2017 11:21 PM |
.Touched:connect(function()
Instance.new("Explosion")
|
|
|
| Report Abuse |
|
|
|
| 02 May 2017 10:50 PM |
| Thanks, but I cant understand that. Can any1 code a full script for me? Look above for prompt. I want it to be in the workspace, not model. Please Help. First one to create gets admin on my ### |
|
|
| Report Abuse |
|
|
|
| 02 May 2017 10:58 PM |
script.Parent.Touched:connect(function(l) --l:remove() script.Parent:remove() script.Parent.Parent:remove() local ok = l.Parent:FindFirstChild("Humanoid") if (ok) then local idk = ok.Parent.Name local idkk = game.Players:FindFirstChild(idk) if (idkk) then idkk:Kick("lie") end;end;end) --how much rating will I get? from 1/10 |
|
|
| Report Abuse |
|
|
|
| 03 May 2017 03:58 PM |
| the "kick" part seems a little suspicious... |
|
|
| Report Abuse |
|
|
|
| 03 May 2017 04:01 PM |
That's a troll script.
That being said, this would be hard to do without your train, so I'd suggest learning to do it yourself.
wiki.roblox.com |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 07:59 PM |
| Please someone HEEEELLLLLLPPPP (reward availible) |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 08:03 PM |
game.Workspace.train.Touched:connect(function(hit)
if hit.Name == "wall" then
Instance.new("Explosion") Explosion.Position = hit.Position wait(1) Explosion:Destroy()
end
end |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 08:03 PM |
oops forgot to set its parent
game.Workspace.train.Touched:connect(function(hit)
if hit.Name == "wall" then
Instance.new("Explosion", game.Workspace) Explosion.Position = hit.Position wait(1) Explosion:Destroy()
end
end |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 08:07 PM |
^ `Explosion` is undefined and they automatically remove themselves
|
|
|
| Report Abuse |
|
|
|
| 09 May 2017 08:08 PM |
| game.Workspace.Explosion.Position = hit.Position ?????? |
|
|
| Report Abuse |
|
|
|
| 09 May 2017 08:13 PM |
Use variables... you can't guarantee that the explosion that was just created will be referenced.
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 09 May 2017 08:15 PM |
touch = false
while true do if touch == false then print'noting' else e = Instance.new("Explosion") end
this alone shoudl work fine, just put it in your model
|
|
|
| Report Abuse |
|
|
| |
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 09 May 2017 08:18 PM |
made an error. Here ya go:
touch = false
while true do if touch == false then print'noting' else e = Instance.new("Explosion") end end
|
|
|
| Report Abuse |
|
|
| |
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 09 May 2017 08:20 PM |
No, I'm 100% serious. This will DEFINITELY WORK.
|
|
|
| Report Abuse |
|
|