of     1   

cullensxbox
#62850838Tuesday, February 14, 2012 8:00 AM GMT

Hi Robloxians, I am making a search and destroy game but when i make it so when you plant the bomb it don't work any ideas on how to make a script. Its like call of duty search and destroy. Thx if you can help =).
Kamario
#62851185Tuesday, February 14, 2012 8:45 AM GMT

[ Content Deleted ]
cullensxbox
#62851266Tuesday, February 14, 2012 8:56 AM GMT

k Thx so i might not get one then. =(
Kamario
#62851288Tuesday, February 14, 2012 8:59 AM GMT

[ Content Deleted ]
cullensxbox
#62851390Tuesday, February 14, 2012 9:16 AM GMT

k thx for posting anyway
DragonFang1
#62856565Tuesday, February 14, 2012 2:48 PM GMT

paste you script that doesn't work , and say what you want it to do if you want help.
cullensxbox
#62899191Wednesday, February 15, 2012 9:28 AM GMT

K
cullensxbox
#62899201Wednesday, February 15, 2012 9:30 AM GMT

bombScript = script.Parent.Bomb Tool = script.Parent function plant() local bomb = Instance.new("Part") local vCharacter = Tool.Parent local vPlayer = game.Players:playerFromCharacter(vCharacter) local spawnPos = vCharacter.PrimaryPart.Position bomb.Position = Vector3.new(spawnPos.x, spawnPos.y+3, spawnPos.z) bomb.Size = Vector3.new(2.07,1.44,0.62) local Mesh = Instance.new("SpecialMesh", bomb) Mesh.MeshId = 45021509 Mesh.Texture = 45337376 bomb.BrickColor = BrickColor.new(16) bomb.Shape = 0 bomb.BottomSurface = 0 bomb.TopSurface = 0 bomb.Reflectance = 1 bomb.Name = "TimeBomb" bomb.Locked = true local creator_tag = Instance.new("ObjectValue") creator_tag.Value = vPlayer creator_tag.Name = "creator" creator_tag.Parent = bomb bomb.Parent = game.Workspace local new_script = bombScript:clone() new_script.Disabled = false new_script.Parent = bomb end Tool.Enabled = true function onActivated() if not Tool.Enabled then return end Tool.Enabled = false local character = Tool.Parent; local humanoid = character.Humanoid if humanoid == nil then print("Humanoid not found") return end local targetPos = humanoid.TargetPoint plant() wait(6) Tool.Enabled = true end script.Parent.Activated:connect(onActivated)
cullensxbox
#62899217Wednesday, February 15, 2012 9:31 AM GMT

also not sure: updateInterval = .4 currentColor = 1 colors = {26, 21} ticksound = Instance.new("Sound") ticksound.SoundId = "rbxasset://sounds\\clickfast.wav" ticksound.Parent = script.Parent function update() updateInterval = updateInterval * .9 script.Parent.BrickColor = BrickColor.new(colors[currentColor]) currentColor = currentColor + 1 if (currentColor > 2) then currentColor = 1 end end function blowUp() local sound = Instance.new("Sound") sound.SoundId = "rbxasset://sounds\\Rocket shot.wav" sound.Parent = script.Parent sound.Volume = 1 sound:play() explosion = Instance.new("Explosion") explosion.BlastRadius = 100000000--everything blows up explosion.BlastPressure = 1000000 -- these are really wussy units -- find instigator tag local creator = script.Parent:findFirstChild("creator") if creator ~= nil then explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end) end explosion.Position = script.Parent.Position explosion.Parent = game.Workspace script.Parent.Transparency = 1 end function onPlayerBlownUp(part, distance, creator) if part.Name == "Head" then local humanoid = part.Parent.Humanoid tagHumanoid(humanoid, creator) end end function tagHumanoid(humanoid, creator) -- tag does not need to expire iff all explosions lethal if creator ~= nil then local new_tag = creator:clone() new_tag.Parent = humanoid end end function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end while updateInterval > .1 do wait(updateInterval) update() ticksound:play() end blowUp() wait(40) script.Parent:remove()
blueymaddog
#62899780Wednesday, February 15, 2012 10:35 AM GMT

obviously taken from roblox's bomb tool. XP

    of     1