-new- Roblox Dragon Adventures Script Gui Instant
-- Assuming your part is named "PiecePart" local piecePart = game.Workspace:WaitForChild("PiecePart")
piecePart.Touched:Connect(onPartTouched) -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 -- Assuming your part is named "PiecePart" local
local ReplicatedStorage = game:GetService("ReplicatedStorage") local interactEvent = ReplicatedStorage:WaitForChild("InteractEvent") -NEW- ROBLOX Dragon Adventures Script GUI