of     1   

newholland1
#111082225Sunday, August 25, 2013 10:46 PM GMT

Hello, this script will help me with my game. I have always wanted to learn scripting and I just know very little about it and trying to learn. I want someone to tell me, make one, or help me out making a script that will make the part that the script is in disappear when it is touched by a part that has a certain script in it. That way it will only reacts to a certain part, not any kind of part. Thanks for any help, it is appreciated. Newholland1
ToboboT
#111084630Sunday, August 25, 2013 11:07 PM GMT

try this while true do BRICKNAME.touch.CanCollide = false BRICKNAME.Transparency = 1 wait(1) BRICKNAME.touch.CanCollide = true BRICKNAME.Transparency = 0 end
Friaza
#111084900Sunday, August 25, 2013 11:10 PM GMT

function DeleteOtherPart(Part) if Part:FindFirstChild("ACertainScript") then script.Parent:remove() end end script.Parent.Touched:connect(DeleteOtherPart)
ZachBloxx
#111084975Sunday, August 25, 2013 11:11 PM GMT

:Remove() is deprecated. Use :Destroy() instead.
Friaza
#111085073Sunday, August 25, 2013 11:12 PM GMT

Yolo
ZachBloxx
#111085129Sunday, August 25, 2013 11:12 PM GMT

ogm get out
ToboboT
#111085630Sunday, August 25, 2013 11:17 PM GMT

Ye Friaza you suck at scripting soo hard ya frub (#swegfest2011) xD
Iterations
#111085802Sunday, August 25, 2013 11:18 PM GMT

says the one with a bronze scroll you know what that reminds me of a penny pennies are useless
ZachBloxx
#111085912Sunday, August 25, 2013 11:19 PM GMT

I said 'get out' because he said 'Yolo.' I hate yolo.
shonclub
#111086100Sunday, August 25, 2013 11:21 PM GMT

Who cares, remove() works too, in this case.
Iterations
#111086140Sunday, August 25, 2013 11:22 PM GMT

hashteg sweg
ZachBloxx
#111086279Sunday, August 25, 2013 11:23 PM GMT

@shon, it may still work but it is bad practice to use it because it is deprecated.
shonclub
#111086409Sunday, August 25, 2013 11:24 PM GMT

I never said it was good. Now did I? :P
ZachBloxx
#111086683Sunday, August 25, 2013 11:27 PM GMT

You said "who cares", implying that is doesn't matter.
shonclub
#111086863Sunday, August 25, 2013 11:28 PM GMT

Correct, I never said it was good nor bad.
ToboboT
#111087407Sunday, August 25, 2013 11:33 PM GMT

Iterations I got bronze because I dind't bring a laptop, now if you think about it that way, you can be a bit more swegilishous
newholland1
#111088623Sunday, August 25, 2013 11:44 PM GMT

That looks like it would react to any brick not a certain one. Or am I wrong? I'm just learning that's why I'm asking.
ToboboT
#111132126Monday, August 26, 2013 10:38 AM GMT

Just use this for gosh golly sake... function t(tt) if tt.Parent:FindFirstChild("Humanoid") then script.Parent:Destroy() end end script.Parent.Touched:connect(t)
ToboboT
#111132237Monday, August 26, 2013 10:41 AM GMT

Think of it as a gun: function t(tt) -- The gun it's self if tt.Parent:FindFirstChild("Humanoid") then -- This just makes sure that the thing that it is touching is human. script.Parent:Destroy() -- Destroys it, and this is the firing of the bullet end -- Ending the if statement end -- Ending the function script.Parent.Touched:connect(t) -- The trigger, whenever the brick is touched you click the trigger, firing the gun. I hope that helped?
newholland1
#111173114Monday, August 26, 2013 9:19 PM GMT

I worked with it and it worked. But I tried putting a Humanoid into a brick and it wouldn't let me. How do I change it so it works on a new Part and it is named, idk, Corn.
Juddily
#111173717Monday, August 26, 2013 9:25 PM GMT

Use this: script.Parent.Touched:connect(function(Hit) if Hit.Name == "Put the name of the brick that you want to delete this brick in here" then script.Parent:Destroy end end)
Friaza
#111251307Tuesday, August 27, 2013 3:49 PM GMT

@Zach, I hate your type a lot. You own scripting groups yet can't even finish a game. This thread is for helping people, not for elitist brats to spew their superiority around with no credibility.
ZachBloxx
#111345964Wednesday, August 28, 2013 12:56 PM GMT

I have finished many games; my former account has over 4,000,000 visits. I made a new one because I felt I was categorized with the game developers that have tons of visits and think they're better than everyone. I have tons of credibility, if you would like me to showcase it, I can.

    of     1