
KeylessUniversal

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Tool = Instance.new("Tool")
Tool.Name = "Stick"
Tool.RequiresHandle = true
local Handle = Instance.new("Part")
Handle.Name = "Handle"
Handle.Size = Vector3.new(1, 5, 1)
Handle.BrickColor = BrickColor.new("Brown")
Handle.Anchored = false
Handle.CanCollide = false
Handle.Parent = Tool
Tool.Parent = LocalPlayer.Backpack
local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
local TextLabel = Instance.new("TextLabel", ScreenGui)
TextLabel.Size = UDim2.new(0.5, 0, 0.1, 0)
TextLabel.Position = UDim2.new(0.25, 0, 0.1, 0)
TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.TextScaled = true
TextLabel.Text = ""
TextLabel.Visible = false
TextLabel.BackgroundTransparency = 1
TextLabel.TextTransparency = 1
local TweenService = game:GetService("TweenService")
local function showMessage(message)
TextLabel.Text = message
TextLabel.Visible = true
local appearTween = TweenService:Create(TextLabel, TweenInfo.new(0.5), {BackgroundTransparency = 0.3, TextTransparency = 0})
appearTween:Play()
appearTween.Completed:Wait()
wait(2)
local disappearTween = TweenService:Create(TextLabel, TweenInfo.new(0.5), {BackgroundTransparency = 1, TextTransparency = 1})
disappearTween:Play()
disappearTween.Completed:Wait()
TextLabel.Visible = false
end
Tool.Activated:Connect(function()
local Mouse = LocalPlayer:GetMouse()
if Mouse.Target then
local TargetPart = Mouse.Target
showMessage("Вы нажали на: " .. TargetPart.Name)
else
showMessage("Никакая часть не выбрана")
end
end)No comments yet for this script.



