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

Puddle Widening on new position of NPCs Body after death, can anyone help?

Asked by
IrishFix 124
5 years ago
Edited 5 years ago

I want to have this "puddle" spread outward and i have made it work when the NPC it is in dies, it spreads randomly outward in seperate places, but once the npc has flown away or slid from the attack, the puddle is at least 10 studs away from the body. I have tried to make it spawn on the general position of the Humanoid root part on the NPC, but it wont do it. Maybe one of you smarter people could help out. All help appreciated! EDIT: I need for this code to work still, but execute at the position of the dead NPCs body. Code:

01local Char=script.Parent
02local Hum=Char:WaitForChild("Humanoid")
03local Tor=Char:WaitForChild("Torso")
04local M=math.random
05local R=math.rad
06local rates={0.05,0.075,0.1,0.15}
07 
08local smooth=function(P)
09local SM=Enum.SurfaceType.SmoothNoOutlines
10P.TopSurface=SM
11P.BottomSurface=SM
12P.RightSurface=SM
13P.LeftSurface=SM
14P.FrontSurface=SM
15P.BackSurface=SM   
View all 75 lines...

Answer this question