Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Floor1Event = game.ReplicatedStorage.Floor1Event
- local Floor2Event = game.ReplicatedStorage.Floor2Event
- local Floor3Event = game.ReplicatedStorage.Floor3Event
- local ElevatorFrame = script.Parent.ElevatorFrame
- local CloseButton = ElevatorFrame.CloseButton
- local Floor1 = ElevatorFrame.Floor1
- local Floor2 = ElevatorFrame.Floor2
- local Floor3 = ElevatorFrame.Floor3
- local OpenButton = script.Parent.OpenButton
- CloseButton.MouseButton1Click:Connect(function()
- ElevatorFrame.Visible = false
- end)
- OpenButton.MouseButton1Click:Connect(function()
- if not ElevatorFrame.Visible == true then
- ElevatorFrame.Visible = true
- end
- end)
- Floor1.MouseButton1Click:Connect(function()
- Floor1Event:FireServer()
- print("Firing to Server")
- end)
- Floor2.MouseButton1Click:Connect(function()
- Floor2Event:FireServer()
- print("Firing To Server")
- end)
- Floor3.MouseButton1Click:Connect(function()
- Floor3Event:FireServer()
- print("Firing To Server")
- end)
Advertisement
Add Comment
Please, Sign In to add comment