|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|