Made this GUI thing a few years ago, now I dont really remeber how it works, could use to help on what to post here to get the best help from you guys aswell.
GUI Giver script in a Seat not working, anyboyd that can help?
1 answer
Just put this into a normal script and put the GUI that you want into this script. And then insert this script along with the GUI in the seat and you're good to go. I hope this helps. :)
enabled = true
i = 0
function OnTouch(hit)
if not enabled then
return
end
i = 1
local h = hit.Parent.Name
for i,v in pairs(game.Players:GetPlayers()) do
if h == v.Name then
s = script.Gui:clone() -- change this to your gui name
s.Parent = v.PlayerGui
enabled = false
end
end
end
script.Parent.Touched:connect(OnTouch)
function OnTouched(part)
if i == 0 then
return
end
local p = part.Parent.Name
for i,v in pairs(game.Players:GetPlayers()) do
if p == v.Name then
if v.Character.Humanoid.Sit == false then
s:remove()
i = 0
script.Parent.Parent.Part.Part.CanCollide = true
wait(2)
script.Parent.Parent.Part.Part.CanCollide = false
enabled = true
end
end
end
end
script.Parent.Parent.Part.Touched:connect(OnTouched)
14 comments
So dont actually put the GUI inside the script itself? only just the name into line 12?
No, just drag the GUI into the script that's all. :)
Also, you can change the name of the GUI to whatever you want, but make sure to put the name on line 12 were it's say "GUI."
If you're having trouble with it, just tell me and I'll make a model for you.
Its still not working, Do you want the model that im working with for you to look at directly?
No, it's fine bro. Here you can take it. The seat still work when anchor it, so you can anchor it if you want to. Here's the link to the model: http://www.roblox.com/Seat-GUI-item?id=314832538
Still isnt working, Im at a loss
What do you mean isn't working?
Its not giving the GUI
Are you using your GUI or the one that already inside the script? If you are using a different GUI, it must be name it in the script too on line 12.
I did, I did everything that you said to do and its not working.
If you want, you can give me the GUI and I'll do what I can to make it works.
This script is not well made.
Jack, you could offer help instead of bad words.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
We are NOT a request site.
Im asking for help?