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: Do tools with non-local scripts even work?

Previous Thread :: Next Thread 
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
11 Sep 2011 03:01 PM
I tried something simple with the tool.

script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
workspace:BreakJoints()
end)
end)


Didn't work
Report Abuse
Corecii is not online. Corecii
Joined: 06 Aug 2010
Total Posts: 687
11 Sep 2011 03:02 PM
They can work, but don't use the mouse in that way. They use some property of the Humanoid of the player's character.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
11 Sep 2011 03:03 PM
What do you mean by "non-local scripts"?

All scripts are local...
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
11 Sep 2011 03:04 PM
@Julien,
I ment normal scripts.

Like, not LocalScript.
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
11 Sep 2011 03:09 PM
The wiki has some of the details, but Equipped only fires for LocalScripts (and Scripts in Hopperbins which are basically LocalScripts).
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
11 Sep 2011 03:11 PM
"I ment normal scripts.

Like, not LocalScript."

Normal scripts are local to the server, meaning all scripts are actually local. It's just that LocalScripts are local to a specific player, and not to the server.
Report Abuse
Corecii is not online. Corecii
Joined: 06 Aug 2010
Total Posts: 687
11 Sep 2011 03:14 PM
No, Equipped fires for any type of script. I just made something, and it uses the 'Script' object, and activates/deactivates with Equipped/Unequipped.
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
11 Sep 2011 03:15 PM
@Golden,
The script used to work in online, It was different from that.

I changed it because it caused too much lag, and now it doesn't even work.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
11 Sep 2011 03:17 PM
Just use local script and disable it and make other script what will run local script after few secs. Soo player loads.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
11 Sep 2011 03:17 PM
It works in solo because everything in solo is local.

I'm trying to do the same thing as you, and I can't do it without it being local >.<

­<'+1 Post. Ujelly?'>
Report Abuse
Corecii is not online. Corecii
Joined: 06 Aug 2010
Total Posts: 687
11 Sep 2011 03:18 PM
Also, Workspace's 'BreakJoints' isn't the same as everything else. And I think it's locked.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
11 Sep 2011 03:20 PM
Corecii, yes, it it, but you can do

for _,v in pairs(game.Player:GetChildren()) do
if v.Character then
v.Character:BreakJoints()
end
end

­<'+1 Post. Ujelly?'>
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