#What is wrong with my script?

1 messages · Page 1 of 1 (latest)

hollow comet
#

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)

timid phoenix
#

is it a local script

#

and where is the script located

hollow comet
#

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

errant palm
#

So first step: quit AI

sudden pelican
errant palm
hollow comet
#

how is this ai

#

i made this myself

#

@errant palm

hollow comet
#

im just a beginer

errant palm
#

ye dw

hollow comet
#

@errant palm yo patmos

#

i saw ur work

#

its good

#

where did you learn?

errant palm
#

ty

#

practice

hollow comet
#

alr

errant palm
#

i just have experience with other prog langs ig helped

hollow comet
#

bro

#

i am trying to make a checkpt sytem in my game

#

can you help me?

#

I made an obby

errant palm
#

give sec

hollow comet
#

i CANT EVEN MAKE A DOOR OPEN AND CLOSE bro

safe breachBOT
#

studio** You are now Level 8! **studio

errant palm
#

i was trying to find an obby with checkpoints i made a few months ago for friends but nah lost it

#

im busy rn sry