I want it to print after this works, but doesnt print
local handle = script.Parent.Parent.Part
local UIS = game:GetService("UserInputService")
local tool = game.ReplicatedStorage:WaitForChild("Knife")
handle.Touched:Connect(function(plr)
local player = game.Players:GetPlayerFromCharacter(plr.Parent)
player.Character.Humanoid.Health = player.Character.Humanoid.Health -25
wait(1)
end)
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
if tool.Equipped then
print("YAY")
end
end
end)
#What is wrong with my script?
1 messages · Page 1 of 1 (latest)
Oh
wait
should it be a local script instead of a normal script
in the tool
@timid phoenix
Also
I want it to do damage to other players
So first step: quit AI
what makes this AI?
might be tutorial actually
ye dw
alr
i just have experience with other prog langs ig helped
bro
i am trying to make a checkpt sytem in my game
can you help me?
I made an obby
give sec
i CANT EVEN MAKE A DOOR OPEN AND CLOSE bro
** You are now Level 8! **