-new- Roblox Dragon Adventures Script Gui Now

local ReplicatedStorage = game:GetService("ReplicatedStorage") local interactEvent = ReplicatedStorage:WaitForChild("InteractEvent")

local function onPartTouched(partTouched) if partTouched.Parent:FindFirstChild("Humanoid") then gui.Enabled = true end end -NEW- ROBLOX Dragon Adventures Script GUI

local Players = game:GetService("Players") local player = Players.LocalPlayer local gui = script.Parent -- Assuming the LocalScript is directly under the GUI -NEW- ROBLOX Dragon Adventures Script GUI

piecePart.Touched:Connect(onPartTouched) -NEW- ROBLOX Dragon Adventures Script GUI

-- LocalScript inside PieceInteractionGUI