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: how do you test a script in roblox studio-edit

Previous Thread :: Next Thread 
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:13 PM
I am in play solo, it is more than one line and I am confidante it works, I have hit pause then play, but it still does not work. The script is:

local brick = Workspace.Brick

function onTouch(part)
brick.Transparency = 1
wait(1)
brick.Transparency = 0
end

brick.Touched:connect(onTouch)
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:15 PM
You need to touch the brick for it to work.
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:16 PM
@liavt
I did...
Report Abuse
TheEpicSamuri is not online. TheEpicSamuri
Joined: 04 Dec 2011
Total Posts: 1343
20 Jul 2012 01:17 PM
Try going to tools, then play solo.
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:18 PM
Are you in edit or solo?
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:18 PM
Im in solo.
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:19 PM
Do you have a output?
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:20 PM
@liavt
I am completely new
other words wtf is that.
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:22 PM
Go to View>Output

Then test it.

The thing at the bottom of the screen is called the 'Output'

It tells you errors with scripts and scripts that run.


http://wiki.roblox.com/index.php/Output
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:23 PM
@Liavt
It does not say anything
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
20 Jul 2012 01:23 PM
Cut the script (item) and paste it back into workspace
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:24 PM
Is it a localscript?

If no, remove the local before brick.
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:26 PM
That did not work @thedeath
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:28 PM
@Liav
It is a local script, I was using script, I switched it to local but it still did not work.
This is just getting frustrating.
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:29 PM
Remove the local before 'brick'.
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:30 PM
brick = Workspace.Brick

function onTouch(part)
brick.Transparency = 1
wait(1)
brick.Transparency = 0
end

brick.Touched:connect(onTouch)






And put it in a regular script.
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:34 PM
@Liav
Nothing happened

I have the brick there, I inserted a script into the brick, in the script I put:


brick = Workspace.Brick

function onTouch(part)
brick.Transparency = 1
wait(1)
brick.Transparency = 0
end

brick.Touched:connect(onTouch)


Is there anything wrong with that?
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:37 PM
brick = script.Parent

function onTouch()
brick.Transparency = 1
wait(1)
brick.Transparency = 0
end

brick.Touched:connect(onTouch)

Try this.
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:39 PM
@Liav
Nothing, I have the right script, it just wont work once I put it in a brick.
Im about done with it.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
20 Jul 2012 01:46 PM
On the connection line

script.Parent.Touched:connect(OnTouched)
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:48 PM
@death
Nothing
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:51 PM
Is the brick CanCollideable or Archivable?
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:53 PM
in properties there is
archivable [x]
disabled [ ]
Report Abuse
liavt is not online. liavt
Joined: 12 Mar 2009
Total Posts: 1241
20 Jul 2012 01:56 PM
No, the brick I was talking about.
Report Abuse
ShadowSTR is not online. ShadowSTR
Joined: 08 Jul 2010
Total Posts: 24465
20 Jul 2012 01:57 PM
I have no idea wtf you are talking about.
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