this= Script.Parent
this.ClickDetector.MouseClick:connect(function(plr) local UserInputService = game:GetService('UserInputService') local Anim = plr.Character.Humanoid:LoadAnimation(this.Anim) local gui = game.ReplicatedStorage.ScreenGui:Clone() local gui2 = game.ReplicatedStorage.ScreenGui2:Clone() this.ClickDetector:Destroy() Anim:Play() this.Transparency = 1 game.Workspace.ParticlePart.ParticleEmitter.Enabled = true gui.Parent = plr.PlayerGui UserInputService.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.E then if plr.PlayerGui:FindFirstChild('ScreenGui') then plr.PlayerGui.ScreenGui:Destroy() gui2.Parent = plr.PlayerGui if input.KeyCode == Enum.KeyCode.X then plr.PlayerGui:FindFirstChild('ScreenGui2'):Destroy() game.Workspace.ParticlePart.ParticleEmitter.Enabled = false wait(0.1) Anim:Stop() this.Transparency = 0 end end end end) end)