Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
|
| 29 Nov 2008 08:24 PM |
function onTouched(hit) local human = game.Players:findFirstChild(hit.Parent.Name) if (human ~= nil) then local head = human.Head local torso = human.Torso local ll = human.Left Leg local rl = human.Right Leg local la = human.Left Arm local ra = human.Right Arm local a = math.random(1, 9)
are the first 10 lines of script. there are a right number of ends.
output:
Workspace.Poison.Script:7: '=' expected near 'local'
wth is this? I tried everything and it still doesnt work. is it the update? |
|
|
| Report Abuse |
|
|
jtm110972
|
  |
| Joined: 29 Jul 2007 |
| Total Posts: 5097 |
|
|
| 29 Nov 2008 08:29 PM |
| Line 7 is broken somehow, it must be the update. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 08:31 PM |
Show me the entire script, from top to bottom. not only that, this is wrong...
function onTouched(hit) local human = game.Players:findFirstChild(hit.Parent.Name) if (human ~= nil) then local head = human.Character.Head local torso = human.Character.Torso local ll = human.Character["Left Leg"] local rl = human.Character["Right Leg"] local la = human.Character["Left Arm"] local ra = human.Character["Right Arm"] local a = math.random(1, 9) |
|
|
| Report Abuse |
|
|
Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
|
| 29 Nov 2008 08:54 PM |
| OHHHHHHHHHHH YEAHHHHHHHH I was talking about the player in PLAYERS! no wonder! ty |
|
|
| Report Abuse |
|
|
Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
|
| 29 Nov 2008 09:16 PM |
function onTouched(hit) local hman = game.Players:findFirstChild(hit.Parent.Name) if (hman ~= nil) then local human = hman.Character
local head = human.Head local torso = human.Torso local ll = human.Left Leg local rl = human.Right Leg local la = human.Left Arm local ra = human.Right Arm local a = math.random(1, 9) if a == 1 then head:remove() local boom = Instance.new("Explosion") boom.Parent = game.Workspace boom.Position = torso.Position boom.BlastRadius = 5 boom.BlastPressure = 9000000 elseif a == 2 then torso:remove() ll:remove() la:remove() rl:remove() ra:remove() head.Mesh.MeshId = "rbxasset://fonts/sword.mesh" elseif a == 3 then human.Humanoid.Health = 0 local weld1 = Instance.new("Weld") weld1.Parent = torso weld1.Part0 = torso weld1.Part1 = head local weld2 = Instance.new("Weld") weld2.Parent = torso weld2.Part0 = torso weld2.Part1 = la local weld3 = Instance.new("Weld") weld3.Parent = torso weld3.Part0 = torso weld3.Part1 = ra local weld4 = Instance.new("Weld") weld4.Parent = torso weld4.Part0 = torso weld4.Part1 = ll local weld5 = Instance.new("Weld") weld5.Parent = torso weld5.Part0 = torso weld5.Part1 = rl
local mesh1 = Instance.new("SpecialMesh") mesh1.Parent = head local mesh2 = Instance.new("SpecialMesh") mesh2.Parent = torso local mesh3 = Instance.new("SpecialMesh") mesh3.Parent = la local mesh4 = Instance.new("SpecialMesh") mesh4.Parent = ra local mesh5 = Instance.new("SpecialMesh") mesh5.Parent = rl local mesh6 = Instance.new("SpecialMesh") mesh6.Parent = ll
for i = 1, 20, 1 do wait(0.5) mesh1.Scale = mesh1.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh2.Scale = mesh2.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh3.Scale = mesh3.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh4.Scale = mesh4.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh5.Scale = mesh5.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh6.Scale = mesh6.Scale + Vector3.new( 0.25, 0.25, 0.25) i = i + 1 end
elseif a == 4 then
elseif a == 5 then
elseif a == 6 then
elseif a == 7 then
elseif a == 8 then
elseif a == 9 then end end end
script.Parent.Touched:connect(onTouched)
I put in "Character" but number 9 (was 7) still sais the same thing. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 09:20 PM |
function onTouched(hit) local hman = game.Players:findFirstChild(hit.Parent.Name) if (hman ~= nil) then local human = hman.Character
local head = human.Head local torso = human.Torso local ll = human["Left Leg"] local rl = human["Right Leg"] local la = human["Left Arm"] local ra = human["Right Arm"] local a = math.random(1, 9) if a == 1 then head:remove() local boom = Instance.new("Explosion") boom.Parent = game.Workspace boom.Position = torso.Position boom.BlastRadius = 5 boom.BlastPressure = 9000000 elseif a == 2 then torso:remove() ll:remove() la:remove() rl:remove() ra:remove() head.Mesh.MeshId = "rbxasset://fonts/sword.mesh" elseif a == 3 then human.Humanoid.Health = 0 local weld1 = Instance.new("Weld") weld1.Parent = torso weld1.Part0 = torso weld1.Part1 = head local weld2 = Instance.new("Weld") weld2.Parent = torso weld2.Part0 = torso weld2.Part1 = la local weld3 = Instance.new("Weld") weld3.Parent = torso weld3.Part0 = torso weld3.Part1 = ra local weld4 = Instance.new("Weld") weld4.Parent = torso weld4.Part0 = torso weld4.Part1 = ll local weld5 = Instance.new("Weld") weld5.Parent = torso weld5.Part0 = torso weld5.Part1 = rl
local mesh1 = Instance.new("SpecialMesh") mesh1.Parent = head local mesh2 = Instance.new("SpecialMesh") mesh2.Parent = torso local mesh3 = Instance.new("SpecialMesh") mesh3.Parent = la local mesh4 = Instance.new("SpecialMesh") mesh4.Parent = ra local mesh5 = Instance.new("SpecialMesh") mesh5.Parent = rl local mesh6 = Instance.new("SpecialMesh") mesh6.Parent = ll
for i = 1, 20, 1 do wait(0.5) mesh1.Scale = mesh1.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh2.Scale = mesh2.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh3.Scale = mesh3.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh4.Scale = mesh4.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh5.Scale = mesh5.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh6.Scale = mesh6.Scale + Vector3.new( 0.25, 0.25, 0.25) i = i + 1 end
elseif a == 4 then
elseif a == 5 then
elseif a == 6 then
elseif a == 7 then
elseif a == 8 then
elseif a == 9 then end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
|
| 29 Nov 2008 09:21 PM |
| is the ["left leg"] needed after the update? I might need it for other scripts. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2008 09:23 PM |
| Umm, I don't know what th updates were, but I always use ["Name of object"], or [location of object]. |
|
|
| Report Abuse |
|
|
Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
|
| 29 Nov 2008 09:27 PM |
| k I didnt change the script and when I tested it on solo (touched it several times) it froze. |
|
|
| Report Abuse |
|
|
| |
|
Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
|
| 29 Nov 2008 10:32 PM |
its what ever doom I smash on what ever touches.
a==2 function glitches.
function onTouched(hit) if hit.Parent ~= nil then local hman = game.Players:findFirstChild(hit.Parent.Name) if (hman ~= nil) then local human = hman.Character if (human.Humanoid.Health ~= 0) then local mes = Instance.new("Message") mes.Parent = game.Workspace mes.Text = "1" if human:findFirstChild("Head") ~= nil then local head = human.Head if human:findFirstChild("Torso") ~= nil then local torso = human.Torso
local ll = human["Left Leg"] local rl = human["Right Leg"] local la = human["Left Arm"] local ra = human["Right Arm"] mes.Text = "2" local a = math.random(1, 2) mes.Text = "3" if a == 1 then if human:findFirstChild("Head") ~= nil then head:remove() end local boom = Instance.new("Explosion") boom.Parent = game.Workspace boom.Position = torso.Position boom.BlastRadius = 5 boom.BlastPressure = 1000000 mes.Text = "4"
elseif a == 2 then mes.Text = "5" torso:remove() ll:remove() la:remove() rl:remove() ra:remove() head.Mesh.Parent = nil local mesh1 = game.Workspace.omg.Mesh:clone() mesh1.Parent = head mes.Text = "6"
elseif a == 3 then human.Humanoid.Health = 0 local weld1 = Instance.new("Weld") weld1.Parent = torso weld1.Part0 = torso weld1.Part1 = head local weld2 = Instance.new("Weld") weld2.Parent = torso weld2.Part0 = torso weld2.Part1 = la local weld3 = Instance.new("Weld") weld3.Parent = torso weld3.Part0 = torso weld3.Part1 = ra local weld4 = Instance.new("Weld") weld4.Parent = torso weld4.Part0 = torso weld4.Part1 = ll local weld5 = Instance.new("Weld") weld5.Parent = torso weld5.Part0 = torso weld5.Part1 = rl mes.Text = "7"
local mesh2 = Instance.new("SpecialMesh") mesh2.Parent = torso mesh2.Scale = Vector3.new(1,1,1) local mesh3 = Instance.new("SpecialMesh") mesh3.Parent = la mesh3.Scale = Vector3.new(1,1,1) local mesh4 = Instance.new("SpecialMesh") mesh4.Parent = ra mesh4.Scale = Vector3.new(1,1,1) local mesh5 = Instance.new("SpecialMesh") mesh5.Parent = rl mesh5.Scale = Vector3.new(1,1,1) local mesh6 = Instance.new("SpecialMesh") mesh6.Parent = ll mesh6.Scale = Vector3.new(1,1,1) mes.Text = "8"
for i = 1, 20, 1 do wait(0.5) mes.Text = "9" head.Mesh.Scale = head.Mesh.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh2.Scale = mesh2.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh3.Scale = mesh3.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh4.Scale = mesh4.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh5.Scale = mesh5.Scale + Vector3.new( 0.25, 0.25, 0.25) mesh6.Scale = mesh6.Scale + Vector3.new( 0.25, 0.25, 0.25) mes.Text = "10" i = i + 1 end
elseif a == 4 then
elseif a == 5 then
elseif a == 6 then
elseif a == 7 then
elseif a == 8 then
elseif a == 9 then end end end end end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Bloxord
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 851 |
|
| |
|