You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I’d like to fix this issue. -
What is the issue? Include screenshots / videos if possible!
The “TouchEnded” event fires whenever I jump.
local areaModule = {} local areaGui = script.areaGui areaModule.create = function(part) part.Touched:Connect(function(toucher) if toucher.Parent:FindFirstChild("Humanoid") then -- checking if the toucher has a humanoid if game.Players:FindFirstChild(toucher.Parent.Name) then local plr = game.Players:FindFirstChild(toucher.Parent.Name) touched = false if not plr.PlayerGui:FindFirstChild("areaGui") then if touched == false then touched = true local cloned = areaGui:Clone() cloned.Parent = game.Players:FindFirstChild(toucher.Parent.Name).PlayerGui wait(5) cloned:Destroy() end end end end part.TouchEnded:Connect(function() -- this fires whenever i jump touched = false end) end) end return areaModule
^ This is my script, I know it’s a little bit messy, but at the moment I’m attempting to do it this way.
Any ideas on how to fix this issue?