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 » Scripters
Home Search
 

Re: Please help me fix this script

Previous Thread :: Next Thread 
cooldude08876 is not online. cooldude08876
Joined: 13 Mar 2013
Total Posts: 78
28 Jun 2016 04:17 PM
so i have an on button. i also have a door set up with a body position so when i click the on button, it slides in the wall taking the place of an uncancollideable door. it didnt work though. My script is below. can someone tell me how to fix it please?


local bodyposone = game.Workspace.DoorMechanic.Moving.BodyPosition
local door = game.Workspace.DoorMechanic.Moving.Script
local finish = game.Workspace.DoorMechanic.finish

function onClicked(on)
bodyposone.Position = finish.Position
end

game.Workspace.DoorMechanic.OnButton.ClickDetector.MouseClick:connect(on)



p.s., i am a complete noob at scripting.
Report Abuse
BaconOfDeath is not online. BaconOfDeath
Joined: 15 Jan 2013
Total Posts: 134
28 Jun 2016 04:22 PM
any output?
what happens when you click on the button?
Report Abuse
AxonMega is not online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
28 Jun 2016 04:26 PM
First of all, instead of using game.Workspace.DoorMechanic.Etc, use script.Parent.Etc. script is a core variable in every script referring to itself.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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