Latest topics

» Nothing Really
Thu Apr 08, 2010 3:18 pm by Wako98

» X-101 Enemies
Thu Dec 31, 2009 1:48 pm by TrickyMaster11

» Hello! I'm new.
Thu Dec 31, 2009 1:39 pm by TrickyMaster11

» Groups: WHAT THEY ARE
Sun Dec 13, 2009 1:06 pm by Xtreme101

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

» Notice: Please Use your ROBLOX account.
Thu Nov 05, 2009 9:19 pm by Robo6420

» Noob resistant Hover brick script
Thu Oct 08, 2009 6:29 pm by Robo6420

» Invitation Poll
Thu Oct 08, 2009 4:47 pm by Robo6420

» My First Video
Thu Oct 08, 2009 4:42 pm by Robo6420


    Hi I am New.

    Share

    Theman1635
    Member
    Member

    Posts : 5
    Join date : 2009-10-04

    Hi I am New.

    Post  Theman1635 on Sun Oct 04, 2009 9:51 pm

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

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

    Re: Hi I am New.

    Post  MegaZete on Sun Oct 04, 2009 9:52 pm

    Welcome to the forums!

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


    _________________
    MegaZete is taking over by storm!

    Theman1635
    Member
    Member

    Posts : 5
    Join date : 2009-10-04

    Random Script Time :3

    Post  Theman1635 on 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)
    avatar
    mariobro123587
    Member
    Member

    Posts : 3
    Join date : 2009-10-05

    Re: Hi I am New.

    Post  mariobro123587 on 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.
    avatar
    Shagabash
    Member
    Member

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

    Re: Hi I am New.

    Post  Shagabash on Mon Oct 05, 2009 6:46 pm

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

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

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

    Re: Hi I am New.

    Post  MegaZete on Mon Oct 05, 2009 7:26 pm

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


    _________________
    MegaZete is taking over by storm!

    Theman1635
    Member
    Member

    Posts : 5
    Join date : 2009-10-04

    Random Script Time :3

    Post  Theman1635 on 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

    Robo6420
    Member
    Member

    Posts : 40
    Join date : 2009-10-06

    Re: Hi I am New.

    Post  Robo6420 on Fri Oct 09, 2009 4:54 pm

    i dont know how to script

    Theman1635
    Member
    Member

    Posts : 5
    Join date : 2009-10-04

    Help

    Post  Theman1635 on Sat Oct 10, 2009 12:07 am

    Then go to Here

    Robo6420
    Member
    Member

    Posts : 40
    Join date : 2009-10-06

    Re: Hi I am New.

    Post  Robo6420 on Sat Oct 10, 2009 3:49 pm

    sricpt is hard to learn

    Theman1635
    Member
    Member

    Posts : 5
    Join date : 2009-10-04

    Re: Hi I am New.

    Post  Theman1635 on 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"

    Robo6420
    Member
    Member

    Posts : 40
    Join date : 2009-10-06

    Re: Hi I am New.

    Post  Robo6420 on Thu Nov 05, 2009 9:20 pm

    ok

    Sponsored content

    Re: Hi I am New.

    Post  Sponsored content


      Current date/time is Wed Sep 26, 2018 12:31 am