RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if a player touches a part called "Activation" then a part called "Gateway" deletes itself"
-- script for Activation part local activationPart = game.Workspace.Activation local gatewayPart = game.Workspace.Gateway local function onTouched(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then gatewayPart:Destroy() end end activationPart.Touched:Connect(onTouched)