Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using this script
- --This script is made by Joriangames/Problox Studio Scripts
- --Want to know how to use this and script explanation?
- --Watch my tutorial: https://youtu.be/2GGmbc6BKi0
- local toggle = script.Parent.Toggle
- local frame = script.Parent.Frame
- local carsFr = frame.Cars
- local carEvent = game.ReplicatedStorage.CarEvent
- toggle.MouseButton1Click:Connect(function()
- if frame.Visible == true then
- frame.Visible = false
- else
- frame.Visible = true
- end
- end)
- carsFr.Lambo.MouseButton1Click:Connect(function()
- local carName = "Lambo"
- carEvent:FireServer(carName)
- frame.Visible = false
- end)
- carsFr.Jeep.MouseButton1Click:Connect(function()
- local carName = "Jeep"
- carEvent:FireServer(carName)
- frame.Visible = false
- end)
- carsFr.Tesla.MouseButton1Click:Connect(function()
- local carName = "Tesla"
- carEvent:FireServer(carName)
- frame.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement