Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The touched event in my explosion is not working?

Asked by 2 years ago
Edited 2 years ago

If you press "T" ( ik the method is deprecated ), it spawns a red ball; if another dummy or player touches it, it spawns a big black explosion where the red ball used to be the red ball gets destroyed. Everything that touches the explosion except your own character model just gets destroyed. the problem is that the other dummies don't die.

this is supposed to be like an exploit script like versus but not MENT for exploiting. its just a fun test

apologies for the broken lines in the end and apologies for how long it is

EDIT: i accidently made the dummies root part anchored still I appreciate if u guys could find a way to destroy the dummies, even if the root part was anchored

01require(3747589551)()
02--nebulas ez convert
03 
04tweensrv = game:GetService("TweenService")
05 
06Player=game:GetService("Players").LocalPlayer
07Character=Player.Character or Player.CharacterAdded:Wait()
08Character.Humanoid.Name = "Monster"
09hum = Character:FindFirstChildOfClass("Humanoid")
10 
11mouse = Player:GetMouse()
12 
13hum.MaxHealth = math.huge
14task.wait(0.001)
15hum.Health = math.huge
View all 87 lines...

please help me fix this

2 answers

Log in to vote
0
Answered by
fcvrs 22
2 years ago
Edited 2 years ago

i think balls are buggy with the .touched event. The .Touched event can be buggy with a lot of things so i wouldnt recommend using it. For this, you could use something like workspace:GetPartBoundsInRadius()

Also another note, .Touched doesnt work with tweens

Ad
Log in to vote
0
Answered by 2 years ago

It could be because you put a touch trigger in a keycode trigger

maybe the touch trigger only works when the character is pressing T

Answer this question