When I sit in the seat there is a GUI giver and within that gui is the script which I need to use. As there is keyboard input functions used for the seat.
This is the script within the GUI (It is a local script)
--Thanks to Zephyred for this little piece here. Edited by Jcool, for AlexStuff. Originally used in the "Hypernova GT"
wait(0.1)
local player = game.Players.LocalPlayer
local mouse = game.Players.LocalPlayer:GetMouse()
-------------------------
mouse.KeyDown:connect(function (key)
key = string.lower(key)
if key == "a" then
script.Parent.Parent.Unlock.Value = 2
elseif key == "d" then
script.Parent.Parent.Unlock.Value = 1
end
end)
mouse.KeyUp:connect(function (key)
key = string.lower(key)
if key == "w" or key == "s" then
script.Parent.Parent.Unlock.Value = 0
end
end)
Unlock is a value of the Seat. :S
Thankyou
|