Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GUI Giver script in a Seat not working, anyboyd that can help?

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.

2 comments

0

We are NOT a request site.

0

Im asking for 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

0

So dont actually put the GUI inside the script itself? only just the name into line 12?

0

No, just drag the GUI into the script that's all. :)

0

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."

0

If you're having trouble with it, just tell me and I'll make a model for you.

0

Its still not working, Do you want the model that im working with for you to look at directly?

0

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

0

Still isnt working, Im at a loss

0

What do you mean isn't working?

0

Its not giving the GUI

0

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.

0

I did, I did everything that you said to do and its not working.

0

If you want, you can give me the GUI and I'll do what I can to make it works.

0

This script is not well made.

0

Jack, you could offer help instead of bad words.

This discussion is preserved as it was. New answers, comments, and votes are closed.