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 » Scripters
Home Search
 

Re: Help with simple script

Previous Thread :: Next Thread 
mukulibukuli is not online. mukulibukuli
Joined: 20 May 2016
Total Posts: 11
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
mukulibukuli is not online. mukulibukuli
Joined: 20 May 2016
Total Posts: 11
30 Apr 2017 11:20 PM
Plzplz help
Report Abuse
EternaIGod is not online. EternaIGod
Joined: 01 Apr 2011
Total Posts: 23592
30 Apr 2017 11:21 PM
.Touched:connect(function()

Instance.new("Explosion")


Report Abuse
mukulibukuli is not online. mukulibukuli
Joined: 20 May 2016
Total Posts: 11
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
nowayhahaha is not online. nowayhahaha
Joined: 08 Aug 2015
Total Posts: 99
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
mukulibukuli is not online. mukulibukuli
Joined: 20 May 2016
Total Posts: 11
03 May 2017 03:58 PM
the "kick" part seems a little suspicious...
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
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
mukulibukuli is not online. mukulibukuli
Joined: 20 May 2016
Total Posts: 11
09 May 2017 07:59 PM
Please someone HEEEELLLLLLPPPP (reward availible)
Report Abuse
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
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
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
09 May 2017 08:07 PM
^ `Explosion` is undefined and they automatically remove themselves


Report Abuse
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
09 May 2017 08:08 PM
game.Workspace.Explosion.Position = hit.Position ??????
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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 is online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
09 May 2017 08:17 PM
inb4 triggered skids


Report Abuse
CWRA0444 is online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
09 May 2017 08:19 PM
Oh he wasn't joking


Report Abuse
CWRA0444 is online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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