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: Scripting Help

Previous Thread :: Next Thread 
DanielRocky is not online. DanielRocky
Joined: 21 May 2011
Total Posts: 18
22 Aug 2017 12:24 AM
clicker = game.Workspace.Building.Rename.Door.ClickDetector

clicker.MouseClick:connect(function()
game.Workspace.RemoteEvent:FireServer()
end)


game.Workspace.RemoteEvent.OnServerEvent:Connect(function()


game.Workspace.Building.Rename.Door.CanCollide = false
game.Workspace.Building.Rename.Door.Transparency = 0.6

wait(1)

game.Workspace.Building.Rename.Door.CanCollide = true
game.Workspace.Building.Rename.Door.Transparency = 0


end)


When I press the Door It Becomes Transparent which is wrong and it also doesn't close
btw Rename is just a Model
Help For a Newbie :)
Report Abuse
rockandrol120 is not online. rockandrol120
Joined: 03 Nov 2012
Total Posts: 52
22 Aug 2017 12:31 AM
Use a BindableEvent

RemoteEvents are used for Client to Server not Server to Server, that's what BindableEvents are for.

wiki.roblox.com/index.php?title=API:Class/BindableEvent


Report Abuse
DanielRocky is not online. DanielRocky
Joined: 21 May 2011
Total Posts: 18
22 Aug 2017 12:38 AM
The Function FireServer() only Works with a RemoteEvent

http://wiki.roblox.com/index.php?title=API:Class/RemoteEvent/FireServer
Report Abuse
rockandrol120 is not online. rockandrol120
Joined: 03 Nov 2012
Total Posts: 52
22 Aug 2017 12:42 AM
^ Uhmm did you read the entire post, he is using a RemoteEvent and he is Firing it with FireServer.

Also make sure that when you make it a BindableEvent that the script is not a LocalScript.


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