local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local target = Mouse.Target
Mouse.KeyDown:connect(function(key)
if (key=="q") then --if q is pressed...
Mouse.Move:connect(function(target) --...checkthe target...
if target:FindFirstChild("SBF") then --...check if target contains stringvalue sbf...
print("hi")--...if so print hi...
else
print("ew")--...if not eww.
end
end)
end
end)**
As the notes in the code says. I want my script to be like on "q check if a part or tool has string-value "SBF" in it and then if so print hi if not print ew.
