Meca-Tech Official Forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Latest topics

» Nothing Really
Hi I am New. EmptyThu Apr 08, 2010 3:18 pm by Wako98

» X-101 Enemies
Hi I am New. EmptyThu Dec 31, 2009 1:48 pm by TrickyMaster11

» Hello! I'm new.
Hi I am New. EmptyThu Dec 31, 2009 1:39 pm by TrickyMaster11

» Groups: WHAT THEY ARE
Hi I am New. EmptySun Dec 13, 2009 1:06 pm by Xtreme101

» Hi I am New.
Hi I am New. EmptyThu Nov 05, 2009 9:20 pm by Robo6420

» Notice: Please Use your ROBLOX account.
Hi I am New. EmptyThu Nov 05, 2009 9:19 pm by Robo6420

» Noob resistant Hover brick script
Hi I am New. EmptyThu Oct 08, 2009 6:29 pm by Robo6420

» Invitation Poll
Hi I am New. EmptyThu Oct 08, 2009 4:47 pm by Robo6420

» My First Video
Hi I am New. EmptyThu Oct 08, 2009 4:42 pm by Robo6420


5 posters

    Hi I am New.

    avatar
    Theman1635
    Member
    Member


    Posts : 5
    Join date : 2009-10-04

    Hi I am New. Empty Hi I am New.

    Post  Theman1635 Sun Oct 04, 2009 9:51 pm

    Hai i am Theman1635,
    I am a Scripter
    MegaZete
    MegaZete
    Basic Forumer
    Basic Forumer


    Posts : 155
    Join date : 2009-09-29
    Age : 30
    Location : Somewhere someplace

    Hi I am New. Empty Re: Hi I am New.

    Post  MegaZete Sun Oct 04, 2009 9:52 pm

    Welcome to the forums!

    We hope to see you active in the scripting part of the forum!
    avatar
    Theman1635
    Member
    Member


    Posts : 5
    Join date : 2009-10-04

    Hi I am New. Empty Random Script Time :3

    Post  Theman1635 Sun Oct 04, 2009 10:18 pm

    Random Script Time :3

    --Just Put Your Model in the Buy Button Part
    --==========================
    model = "Wall2" ---change this to your model name.
    cost = 0 --- change this to how much you want to cost.
    modelname = "Wall" --What The Name with be on Buy Brick .
    stat = "Money"--The Stat Name.
    ----Teams----
    onlyworkforteams = false --If You want it only to work if you are a certain team.
    teamname = "Blue" --Name of the Team
    ----Group-----
    onlyworkforgroup = false --If you want it only to work if you are a certain member of this group.
    wgroup = {"Person1","Player","Person3"}--The Group
    ----Person----
    onlyworkforperson = false --If you want it only to work if you are a certain person.
    personname = "Owner"
    ----Tshirt----
    onlyworkfortshirt = false
    tshirt = "Url"
    --Make them All False If you want it to work for everyone
    ----Removing Models----
    removemodel = true--Set to true if you want to be able to buy to remove the brick
    ----Unlocking----Only works if Removemodel is set to false
    unlock = "Buy Button2"--When you press this button it makes this appear like you press this button it makes something else appear
    unlockwork = false--Set to true if you want to unlock
    --==========================
    group = script.Parent.Parent.Parent
    unlockp = group.Parent:GetChildren()
    if unlockwork == true then
    if group.Parent[unlock] ~= nil then
    unlockm = group.Parent[unlock]
    unlockc = unlockm:clone()
    unlockm:remove()
    end
    end
    models = group:findFirstChild(model)
    model2 = models:clone()
    if removemodel == false then
    models:remove()
    end
    pt = script.Parent.Parent
    local ting = 0
    function add(hit,money,stat,model)
    local user = game.Players:GetPlayerFromCharacter(hit.Parent)
    local stats = user:findFirstChild("leaderstats")
    if stats ~= nil then
    local cash = stats:findFirstChild(stat)
    if cash.Value > cost2 then
    cash.Value = cash.Value - cost
    model.Parent = group
    script.Parent.Parent:remove()
    end
    end
    end
    function remove(hit,money,stat,model)
    local user = game.Players:GetPlayerFromCharacter(hit.Parent)
    local stats = user:findFirstChild("leaderstats")
    if stats ~= nil then
    local cash = stats:findFirstChild(stat)
    if cash.Value > cost2 then
    cash.Value = cash.Value - cost
    model.Parent = nil
    script.Parent.Parent:remove()
    end
    end
    end
    function checkgroup(name)
    for i = 1,#wgroup do
    if (string.upper(name) == string.upper(wgroup[i])) then return true end
    end
    return false
    end
    function onTouched(hit)
    if ting == 0 then
    ting = 1
    check = hit.Parent:FindFirstChild("Humanoid")
    if check ~= nil then
    if removemodel == true then
    if onlyworkforteams == true then
    if game.Players:playerFromCharacter(hit.Parent).TeamColor==game.Teams:findFirstChild(teamname).TeamColor then
    remove(hit,cost,stat,models)
    end

    elseif onlyworkforgroup == true then
    if checkgroup(hit.Parent.Name) then
    remove(hit,cost,stat,models)
    end
    elseif onlyworkforperson == true then
    if hit.Parent.Name == personname then
    remove(hit,cost,stat,models)
    end
    elseif onlyworkfortshirt == true then
    if hit.Parent.Torso.roblox.Texture == tshirt then
    remove(hit,cost,stat,models)
    end
    else remove(hit,cost,stat,models)
    end
    else
    if onlyworkforteams == true then
    if game.Players:playerFromCharacter(hit.Parent).TeamColor==game.Teams:findFirstChild(teamname).TeamColor then
    add(hit,cost,stat,model2)
    if unlockwork == true then
    unlockc.Parent = group.Parent
    end
    end
    elseif onlyworkforgroup == true then
    if checkgroup(hit.Parent.Name) then
    add(hit,cost,stat,model2)
    if unlockwork == true then
    unlockc.Parent = group.Parent
    end
    end
    elseif onlyworkforperson == true then
    if hit.Parent.Name == personname then
    add(hit,cost,stat,model2)
    if unlockwork == true then
    unlockc.Parent = group.Parent
    end
    end
    elseif onlyworkfortshirt == true then
    if hit.Parent.Torso.roblox.Texture == tshirt then
    add(hit,cost,stat,model2)
    if unlockwork == true then
    unlockc.Parent = group.Parent
    end
    end
    else add(hit,cost,stat,model2)
    if unlockwork == true then
    unlockc.Parent = group.Parent
    end
    end
    if unlockwork == true then
    unlockc.Parent = group.Parent
    end
    end
    end
    ting = 0
    end
    end
    function onstart()
    if removemodels == true then
    if cost >= 1 then
    cost2 = cost - 1
    pt.Name = "Remove"..modelname.." - "..cost.."!"
    else
    pt.Name = "Remove "..modelname.." - Free!"
    cost2 = 0
    end
    else
    if cost >= 1 then
    cost2 = cost - 1
    pt.Name = "Buy "..modelname.." - "..cost.."!"
    else
    pt.Name = "Buy "..modelname.." - Free!"
    cost2 = 0
    end
    end
    end
    onstart()
    script.Parent.Touched:connect(onTouched)
    mariobro123587
    mariobro123587
    Member
    Member


    Posts : 3
    Join date : 2009-10-05

    Hi I am New. Empty Re: Hi I am New.

    Post  mariobro123587 Mon Oct 05, 2009 7:03 am

    Hi.
    I'm also new.
    I'm a member of meta tech on ROBLOX Very Happy
    I'm mariobro123587 on rolox aswell.
    Shagabash
    Shagabash
    Member
    Member


    Posts : 85
    Join date : 2009-09-28
    Location : In a position, looking at everyone reading this.

    Hi I am New. Empty Re: Hi I am New.

    Post  Shagabash Mon Oct 05, 2009 6:46 pm

    Wow... apparently you are a scripter...

    __
    Do you mean "Meca-Tech"?
    MegaZete
    MegaZete
    Basic Forumer
    Basic Forumer


    Posts : 155
    Join date : 2009-09-29
    Age : 30
    Location : Somewhere someplace

    Hi I am New. Empty Re: Hi I am New.

    Post  MegaZete Mon Oct 05, 2009 7:26 pm

    mariobro123587 wrote:Hi.
    I'm also new.
    I'm a member of meta tech on ROBLOX Hi I am New. Icon_biggrin
    I'm mariobro123587 on rolox aswell.
    Welcome to the forums!
    avatar
    Theman1635
    Member
    Member


    Posts : 5
    Join date : 2009-10-04

    Hi I am New. Empty Random Script Time :3

    Post  Theman1635 Thu Oct 08, 2009 7:48 pm

    Random Script Time Again :3
    _G.Distance ={}
    _G.Midpoint ={}
    Distance.new= function(A,B)
    x1,y1,z1,x2,y2,z2 = A.x,A.y,A.z,B.x,B.y,B.z
    dis = math.sqrt( (x2 - x1)^2 + (y2 - y1)^2 + (z2 - z1)^2 )
    return dis
    end
    Midpoint.new = function(A,B)
    x1,y1,z1,x2,y2,z2 = A.x,A.y,A.z,B.x,B.y,B.z
    x = (x1 + x2)/2
    y = (y1 + y2)/2
    z = (z1 + z2)/2
    mid = Vector3.new(x,y,z)
    return mid
    end
    avatar
    Robo6420
    Member
    Member


    Posts : 40
    Join date : 2009-10-06

    Hi I am New. Empty Re: Hi I am New.

    Post  Robo6420 Fri Oct 09, 2009 4:54 pm

    i dont know how to scriptHi I am New. Icon_elephant
    avatar
    Theman1635
    Member
    Member


    Posts : 5
    Join date : 2009-10-04

    Hi I am New. Empty Help

    Post  Theman1635 Sat Oct 10, 2009 12:07 am

    Then go to Here
    avatar
    Robo6420
    Member
    Member


    Posts : 40
    Join date : 2009-10-06

    Hi I am New. Empty Re: Hi I am New.

    Post  Robo6420 Sat Oct 10, 2009 3:49 pm

    sricpt is hard to learn
    avatar
    Theman1635
    Member
    Member


    Posts : 5
    Join date : 2009-10-04

    Hi I am New. Empty Re: Hi I am New.

    Post  Theman1635 Sun Oct 11, 2009 11:11 pm

    No Its really easy actully..

    A,B = 1,2
    print(A < B and "A < B" or "A > B")
    -->"A < B"
    avatar
    Robo6420
    Member
    Member


    Posts : 40
    Join date : 2009-10-06

    Hi I am New. Empty Re: Hi I am New.

    Post  Robo6420 Thu Nov 05, 2009 9:20 pm

    ok Hi I am New. Icon_question Hi I am New. Icon_exclaim

    Sponsored content


    Hi I am New. Empty Re: Hi I am New.

    Post  Sponsored content


      Current date/time is Thu Nov 21, 2024 6:35 am