Can I see the code you got on the client for making the gui appear
remove hit.Parent:FindFirstChild(“HumanoidRootPart”) that is unneeded.
the same thing happens still when I remove it.
Could you send the whole script that this code is in.
The script is very long with 217 I cant fit it all in with a screen shot
This is weird. From what i see your code is fine but like i said only Humanoid is needed the others might be what making the gui acting weird. Have you tried remove the other?
What do you mean by remove the other?
I mean remove the Other_Part.Parent.Name == Plr.Name just keep the humanoid check
I did and the same thing keep happening
One possible solution to this issue is to use a local script to listen for the Touched event on the client side, rather than using a server script. This can help reduce latency and improve the responsiveness of the GUI. According to a post on the Roblox Developer Forum(How to make GUI appear and disappear when touching and not touching part), you can use a local script to listen for the Touched event and fire a remote event to show or hide the GUI.
Another possible solution is to use regions to detect when the player enters or leaves an area, rather than relying on the Touched and TouchEnded events. According to a post on Reddit (Reddit - Dive into anything), you can create regions where the player is detected and show or hide the GUI based on whether or not the player is inside the region.
Also the Plr is somewhat wrong. it is a server script. Are you doing this with characteradded?
btw yeah, it seems that the Plr
variable is not defined in the code he provided. If this is a server script, you may need to define the Plr
variable by using the CharacterAdded
event of the Players
service, example:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Plr = player
-- Your code here
end)
end)
nothing is working. Am not sure why
Can we see your hitbox properties?
How will that even help with the script?
There is nothing wrong with the script as it worked for us. I can only think of the hitbox or wait for someone find out the problem
It finally works. Thank you so much and to everyone who helped because this was very hard to do.
Theres still a problem tho. after leaving the hit-box it take a second to disappear. The button also don’t work.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.