of     1   

Jupiterism
#221336674Friday, July 14, 2017 10:06 PM GMT

so what happens is when the player touches the item (in this case, a model with parts in it), it heals the player to full health, despawns for 6 seconds and respawns later
Scrippa
#221336941Friday, July 14, 2017 10:08 PM GMT

?
Jupiterism
#221353877Saturday, July 15, 2017 12:26 AM GMT

I mean someone walks into the model, the model disappears and the player's health is restored. And then the model respawns 6 seconds later.
njesk12
#221354434Saturday, July 15, 2017 12:31 AM GMT

What exactly are you asking for though? What're you stuck on?
Jupiterism
#221356185Saturday, July 15, 2017 12:48 AM GMT

I need a script that makes a model disappear, and once the model disappears, the players health is restored. The model appears 6 seconds later. Imagine an O7verwatch health pack.
njesk12
#221359087Saturday, July 15, 2017 1:14 AM GMT

local healthpack = script.Parent local active = true -- This means that the healthpack is ready to be picked up (If you want it to start off as inactive then just set to false and make a countdown for it to ready up) function GiveHealth(limb) if active == false then return end -- Don't do anything if it's not appearing if game.Players:FindFirstChild(limb.Parent.Name) then -- If the part touching belongs to a player in the server then... local items = {} -- let's store all the parts we need to make visible again here active = false -- Right away let's deactivate the healthpack for _,item in pairs(healthpack:GetChildren()) do if item:IsA("Part") then item.Transparency = 1 items[#items+1] = item end end local humanoid = limb.Parent.Humanoid hu#################u############### # #-##r##owever much you want to give it wait(6) for _,item in ipairs(items) do item.Transparency = 0 end end end healthpack.Touched:connect(GiveHealth) -- Let's connect this sucker Haven't tested it yet but it should work. Just make sure that all the parts you want to be invisible to be direct children of the model that the script is in. Other than that this script shouldn't have errors. I hope :P
njesk12
#221359374Saturday, July 15, 2017 1:16 AM GMT

Because ROBLOX likes to put hashtags on everything *rolls eyes* humanoid (dot) health = humanoid (dot) health + 5 -- or however much you wanna give it :D
njesk12
#221359515Saturday, July 15, 2017 1:17 AM GMT

Make sure to capitalize the h in Health My bad! :P
Jupiterism
#221359939Saturday, July 15, 2017 1:20 AM GMT

Thanks. I also have to ask, on a scale of 1-10, how good are you at scripting?
njesk12
#221360288Saturday, July 15, 2017 1:23 AM GMT

6 on a good day :P

    of     1