I've made the script but it doesn't seem to be working. No errors or output..
function onPlayerEntered(newPlayer)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(newPlayer, 384198804) then
newPlayer.CharacterAdded:connect(function(character)
local char = character
local kids = char:GetChildren()
for _,k in pairs(kids) do
if k.ClassName == "Part" then
local fire = Instance.new("Fire")
fire.Parent = k
end
end
end)
end
end

31 comments
Thank you so much! A simple fix. You're very helpful. Others might have gotten angry at the fact that I messaged them, and disregarding my entire post upon doing so.
I was almost positive the script would work, but unfortunately it does the same thing in studio. No error to output and there are obviously no flames to be seen. I made sure to add the call.
add prints to your code to see where it errors
I've tried this and no prints show up, it's very unusual.
add a print to the first line.
add a print to every line to see if it prints
if not the script isn't enabled or somewhere it cant run.
Ahh wait it made it up until this line.
newPlayer.CharacterAdded:connect(function(character)
try replacing that with" repeat wait() until newPlayer.Character ". Dont forget to remove on of the ends.
attempt to index local 'char' (a nil value)
define char as newPlayer.Character
It works! The fire is super bright though. I'll need to adjust that.
If someone joins however, they will lose the fire when they die. How do I fix this?
I'm going to edit my code with the proper code you should have
Will you be posting it here?
Yes, i just updated my answer
It should work now.
Now it does not work at all. No output or anything.
what kind of script is this?
What do you mean?
I jsut tested my self, this is a roblox bug.
give me a second, im going to make you a work around
That would be amazing.
Ok, it was not a bug. It was an issue with the location of events, sorry for the delay
It works now
So it will stay with the player even after death?
It still will not work. D:
Nevermind it works.
Longest comment train I have ever seen. You're awesome Koolkid for helping until the answer gets solved.
LOL