#Damage not working on tool

49 messages · Page 1 of 1 (latest)

patent summit
#

so i made a tool but it does no damage. Here are the scripts

#

server script

sage hollow
#

First param of the UIS events is GPE (which in your script is now called IsTyping)

patent summit
#

i did it, but now if i press z (the charge up button) it wont work

radiant ruin
drowsy musk
#

and not use a value as it seems ur doing

patent summit
#

everything works ive checked the outout it just dosent do damage to other humanoids

drowsy musk
quiet needleBOT
#

studio** You are now Level 3! **studio

radiant ruin
# patent summit i got this script of a youtuber so ive had no time to poperly read the script si...

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

patent summit
#

so do i just replace the script with that?

quiet needleBOT
#

studio** You are now Level 4! **studio

radiant ruin
#

it adds to the player just tried it even thou i dont have the things inside my system

patent summit
#

so like where do i put it?

drowsy musk
#

in any serverscript

radiant ruin
#

in this part

patent summit
#

and replace it with the other script?

drowsy musk
#

what he said

patent summit
#

or just that part

drowsy musk
radiant ruin
#

replace the script that i sc with the one that i have

patent summit
# radiant ruin in this part

thats just a section of the script in serverscriptservice, so i jut replace this section with the code u sent?

drowsy musk
#

yes

patent summit
#

ok

#

yep ive done that

radiant ruin
#

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```

radiant ruin
#

nothing thats a example so u dont have over 1k if not statements

drowsy musk
#

so u dont repeat urself

#

so its a tool right

patent summit
#

wait i just wanna figure out why this isnt doing any damage first of all

drowsy musk
#

the server script says when the handle is touched to do damage

#

to the humanoid it touches

#

so

patent summit
#

but it dosent

radiant ruin
#

it can go the same way with a function

drowsy musk
radiant ruin
#

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

drowsy musk
#

r u saying theyre using .touched clientsided and checking the values clientsided?

#

that sounds very exploitable

patent summit
#

i am just gonna delete the tool, its too hard to work with lol

drowsy musk
#

good idea, make ur own

radiant ruin