#acid rain and humanoid
23 messages · Page 1 of 1 (latest)
the event TouchEnded triggers everytime it stops touching something
so it can hit the players head, then their arm, then their torso, their their leg, then their feet
you should delete the rain when it hurts the player
also use
task.wait(0)
its wait but better
its more accurate
you shouldnt use the second argument of instance.new() roblox themself say not to use it
you should just do
local part = instance.new("part)
part.parent = workspace
its much more optimzed
and a better pratitce is that when your done setting all the properties for rain
parent it after
as everytime you change a property you make the server send a signal to replicate the changes to the client
but if you do all the properties
then parent it to workspace
the server will just have to send one packet of data instead of multiple
i thought that was the same thing
I’ve discovered a pretty bad performance issue in one of top games that has to do with Instance.new and wanted to write about this, since this is not obvious unless you know the system inside out. Tthere are several ways to create a ROBLOX object in Lua: local obj = Instance.new(‘type’); fill obj fields local obj = Instance.new(‘type’, parent...
it explains alot more