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: A simple script I thought would work

Previous Thread :: Next Thread 
mrcooooooooooolV2 is not online. mrcooooooooooolV2
Joined: 31 Aug 2009
Total Posts: 1651
11 Aug 2011 06:13 PM
function onClicked()
game.Workspace.Plate1.CanCollide = false
wait(5)
game.Workspace.Plate1.CanCollide = true
wait(10)
game.Workspace.Plate2:Remove()
wait(0.5)
game.Lightning.Plate2:Clone()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)


Basicly After plate 1 became cancollide plate2 removed itself and cloned back to its original location. Do I have to put coordinates?
Report Abuse
ZizZazZuz is not online. ZizZazZuz
Joined: 16 Jun 2008
Total Posts: 2743
11 Aug 2011 06:15 PM
Yes.
Report Abuse
mrcooooooooooolV2 is not online. mrcooooooooooolV2
Joined: 31 Aug 2009
Total Posts: 1651
11 Aug 2011 06:27 PM
function onClicked()
game.Workspace.Plate1.CanCollide = false
wait(5)
game.Workspace.Plate1.CanCollide = true
wait(10)
game.Workspace.Plate2:Remove()
wait(0.5)
local part = Instance.new('Part')
part.Parent = game.Workspace
part.Anchored = false
Workspace.Plate2:MoveTo(Vector3.new(-403, 18.05, 181.6 ))
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

Or would I move local part to where function onClciked ()
Report Abuse
mrcooooooooooolV2 is not online. mrcooooooooooolV2
Joined: 31 Aug 2009
Total Posts: 1651
11 Aug 2011 06:31 PM
Anyone?
Report Abuse
ungh01 is not online. ungh01
Joined: 24 Dec 2008
Total Posts: 876
11 Aug 2011 06:35 PM
function onClicked()
game.Workspace.Plate1.CanCollide = false
wait(5)
game.Workspace.Plate1.CanCollide = true
wait(10)
game.Workspace.Plate2:Remove()
wait(0.5)
game.Lightning.Plate2:Clone().Parent = workspace
end

Considering there is a part named Plate2 in game.Lighting
Report Abuse
mrcooooooooooolV2 is not online. mrcooooooooooolV2
Joined: 31 Aug 2009
Total Posts: 1651
11 Aug 2011 06:36 PM
Yes there is a Plate2 in lightning. I'll try that.
Report Abuse
nightmare3o is not online. nightmare3o
Joined: 21 Jun 2008
Total Posts: 956
11 Aug 2011 06:53 PM
Is plate2 in Lightning ( A Model )
OR
Lighting? ( A Service )
Report Abuse
mrcooooooooooolV2 is not online. mrcooooooooooolV2
Joined: 31 Aug 2009
Total Posts: 1651
11 Aug 2011 08:48 PM
A service
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