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
 

Re: Help please!

Previous Thread :: Next Thread 
rblxxx is not online. rblxxx
Joined: 15 Jan 2013
Total Posts: 626
28 Jul 2013 12:32 PM
I need help with this script. It is supposed to be a map changer that changes the map every time you click a button. But it wont remove the map every time I click the button. Please help!

debounce = false
int = Instance.new("IntValue",Workspace)
int.Value = 1

function mapone()
wait(13)
game.Lighting.Map1:Clone().Parent = Workspace
int.Value = 2
end

function remove()
if game.Workspace:findFirstChild("Map1") then
game.Workspace.Map1:Destroy()
end
if game.Workspace:findFirstChild("Map2") then
game.Workspace.Map2:Destroy()
end
int.Value = 1
end

function maptwo()
game.Workspace.Map1:Destroy()
wait(13)
game.Lighting.Map2:Clone().Parent = Workspace
int.Value = 3
end

function touched(hit)
hum = hit.Parent:FindFirstChild("Humanoid")--to make sure its a person
if hum ~= nil then
if int.Value == 1 then
mapone()
elseif int.Value == 2 then
maptwo()
elseif int.Value == 3 then
remove()
end
end
end
wait(2)
debounce = true

script.Parent.Touched:connect(touched)
Report Abuse
rblxxx is not online. rblxxx
Joined: 15 Jan 2013
Total Posts: 626
28 Jul 2013 12:33 PM
bump
Report Abuse
bigdaddy92 is not online. bigdaddy92
Joined: 17 Jan 2010
Total Posts: 1684
28 Jul 2013 12:34 PM
Don't bump it less than a minute after you post it....
Report Abuse
rblxxx is not online. rblxxx
Joined: 15 Jan 2013
Total Posts: 626
28 Jul 2013 12:34 PM
Can you please help?
Report Abuse
MasterApex is not online. MasterApex
Joined: 26 Jul 2013
Total Posts: 61
28 Jul 2013 12:36 PM
mmm...
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