How do i make a explosion script in the gear after 2.70 seconds of gear equipped?
Asked by
4 years ago Edited 4 years ago
heres what i want it to be
https://youtu.be/-FPdkbvs4KM
heres the code
local Tool = script.Parent;
enabled = true
function onActivated()
if not enabled then
return
end
02 | Tool.GripForward = Vector 3. new( 0 ,-. 759 ,-. 651 ) |
03 | Tool.GripPos = Vector 3. new( 1.5 ,-. 5 ,. 3 ) |
04 | Tool.GripRight = Vector 3. new( 1 , 0 , 0 ) |
05 | Tool.GripUp = Vector 3. new( 0 ,. 651 ,-. 759 ) |
08 | Tool.Handle.DrinkSound:Play() |
12 | local h = Tool.Parent:FindFirstChild( "Humanoid" ) |
14 | if (h.MaxHealth > h.Health + 5 ) then |
15 | h.Health = h.Health + 5 |
17 | h.Health = h.MaxHealth |
21 | Tool.GripForward = Vector 3. new(-. 976 , 0 ,- 0.217 ) |
22 | Tool.GripPos = Vector 3. new( 0.03 , 0 ,- 0.3 ) |
23 | Tool.GripRight = Vector 3. new(. 217 , 0 ,-. 976 ) |
24 | Tool.GripUp = Vector 3. new( 0 , 1 , 0 ) |
end
function onEquipped()
Tool.Handle.OpenSound:play()
end
script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)