#Damage not working on tool
49 messages · Page 1 of 1 (latest)
Switch around istyping and input
First param of the UIS events is GPE (which in your script is now called IsTyping)
i did it, but now if i press z (the charge up button) it wont work
u can shorten each one u know that
you can use the iskeydown method to see if it’s being held
and not use a value as it seems ur doing
i got this script of a youtuber so ive had no time to poperly read the script since its really long
everything works ive checked the outout it just dosent do damage to other humanoids
is it printing after the handle.touched?
** You are now Level 3! **
by using a loop to contain each key that is set like```lua
local keyinstance = {
{key = 'isBlocking'},
{key = 'canRun'},
{key = 'canBlock'},
{key = 'canDash'}
}
local player = game.Players
player.PlayerAdded:Connect(function(Player)
for _, plrs in pairs(keyinstance) do
if not Player:FindFirstChild(plrs.key) then
local newValue = Instance.new('BoolValue',Player)
newValue.Name = plrs.key
newValue.Value = false
end
end
end)``` like this
so do i just replace the script with that?
** You are now Level 4! **
it adds to the player just tried it even thou i dont have the things inside my system
so like where do i put it?
in any serverscript
in this part
and replace it with the other script?
what he said
or just that part
delete this, replace it when the code he sent
replace the script that i sc with the one that i have
thats just a section of the script in serverscriptservice, so i jut replace this section with the code u sent?
yes
it makes it shorter and a littler ezier to do instead of having ```lua
if not Player:FindFirstChild('Teleport') then
end
-- 1k times if not's```
whats that for?
nothing thats a example so u dont have over 1k if not statements
wait i just wanna figure out why this isnt doing any damage first of all
the server script says when the handle is touched to do damage
to the humanoid it touches
so
but it dosent
it can go the same way with a function
tbh id jus make my own script
bruh Server always handles Dmg, Client handles Gui and Dmg but not constant
will be updated differently but if u handle Client to update to Server it will not look bad
like if i play Button Simulator and unlock a new World, and the World2 Cost 100k Rebirths but if i touch the part that sends me to World2 but if someone trys they cant access World2 until they reach the amount.
unlocking World2 is only used on Clientside
r u saying theyre using .touched clientsided and checking the values clientsided?
that sounds very exploitable
i am just gonna delete the tool, its too hard to work with lol
good idea, make ur own
no .Touched being handled on Server while Client updates on Client so everyone cant get sent to World2