Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

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

Asked by 8 years ago

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.

0
We are NOT a request site. alphawolvess 1784 — 8y
0
Im asking for help? NavySaw 0 — 8y

1 answer

Log in to vote
-2
Answered by
ImfaoXD 158
8 years ago

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)
0
So dont actually put the GUI inside the script itself? only just the name into line 12? NavySaw 0 — 8y
0
No, just drag the GUI into the script that's all. :) ImfaoXD 158 — 8y
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." ImfaoXD 158 — 8y
0
If you're having trouble with it, just tell me and I'll make a model for you. ImfaoXD 158 — 8y
View all comments (10 more)
0
Its still not working, Do you want the model that im working with for you to look at directly? NavySaw 0 — 8y
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 ImfaoXD 158 — 8y
0
Still isnt working, Im at a loss NavySaw 0 — 8y
0
What do you mean isn't working? ImfaoXD 158 — 8y
0
Its not giving the GUI NavySaw 0 — 8y
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. ImfaoXD 158 — 8y
0
I did, I did everything that you said to do and its not working. NavySaw 0 — 8y
0
If you want, you can give me the GUI and I'll do what I can to make it works. ImfaoXD 158 — 8y
0
This script is not well made. unmiss 337 — 8y
0
Jack, you could offer help instead of bad words. NavySaw 0 — 8y
Ad

Answer this question