of     1   

Programmer101
#31261156Monday, August 09, 2010 8:04 PM GMT

Ok, When you say something, this pad turns green (1020), That works. Than I inserted a Teleporter script, that worked too. THAN I inserted: and brick.BrickColor == 1020 then And it doesnt work. Full script: function onTouched(hit) brick = game.Workspace.Transporterpad2 h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil and brick.BrickColor == 1020 then hit.Parent:MoveTo(brick.Position + Vector3.new(0,10,0)) end end script.Parent.Touched:connect(onTouched)
V1Buzzbomb
#31261403Monday, August 09, 2010 8:06 PM GMT

you gotta use BrickColor.new(1020) instead of just 1020.
legolas2000
#31262025Monday, August 09, 2010 8:12 PM GMT

1020 is nothing (well, its a number XD), use == BrickColor.new(1020)
Programmer101
#31262493Monday, August 09, 2010 8:18 PM GMT

function onTouched(hit) brick = game.Workspace.Transporterpad2 h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil and brick.BrickColor == BrickColor.new(1020) then hit.Parent:MoveTo(brick.Position + Vector3.new(0,10,0)) end end script.Parent.Touched:connect(onTouched) Doesnt work. My OnChatted script makes the pad green but it doesnt transport.
Programmer101
#31264829Monday, August 09, 2010 8:45 PM GMT

Please?
Blockrat
#31265107Monday, August 09, 2010 8:48 PM GMT

function onTouched(hit) brick = game.Workspace.Transporterpad2 h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil and brick.BrickColor == BrickColor.new(1020) then hit.Parent:MoveTo(brick.Position + Vector3.new(0,10,0)) -- try moving the humanoid instead. end end script.Parent.Touched:connect(onTouched)
Programmer101
#31277894Monday, August 09, 2010 11:22 PM GMT

How?
BJCarpenter
#31278876Monday, August 09, 2010 11:32 PM GMT

You did not include Output. Add this and all will be revealed: print(brick.BrickColor) brick = game.Workspace.Transporterpad2 h = hit.Parent:FindFirstChild("Humanoid") print(brick.BrickColor) if h ~= nil and brick.BrickColor == BrickColor.new(1020) then hit.Parent:MoveTo(brick.Position + Vector3.new(0,10,0)) -- try moving the humanoid instead. end end Do NOT post to Script Help, before checking all your assumptions, with a Print staement after EVERY line. --Brian
Programmer101
#31376441Wednesday, August 11, 2010 2:33 AM GMT

Brian, I have to go into server to run the full script.
harutsedo
#31376500Wednesday, August 11, 2010 2:34 AM GMT

No you don't.
scripttester2
#31377402Wednesday, August 11, 2010 2:45 AM GMT

function onTouched(hit) brick = game.Workspace.Transporterpad2 h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil and brick.BrickColor = BrickColor.new(1020) then hit.Parent:MoveTo(brick.Position + Vector3.new(0,10,0)) end end script.Parent.Touched:connect(onTouched)

    of     1