I'm building a musket for my friend, but i can't figure out which script to put this into. The Musket is layed out and pretty much everything except the handle and handle2 are the same with the paintball gun.
Which script should i put this in?
This is the code snippet
function onKey(key)
key = key:lower()
if key == "q" then
if script.Parent.Handle2.Transparency == 0 then
script.Parent.Handle2.Transparency == 1
end
if script.Parent.Handle2.Transparency == 1 then
script.Parent.Handle2.Transparency == 0
end
end
end
|