Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Brightness and Range change on player?

The title can be confusing, but I need help on changing brightness and range of the light part on the player. However, it only adds in light but doesn't change its properties, which have I've been doing wrong?

local Part = script.Parent:WaitForChild("HumanoidRootPart")
script.Light.Parent = Part
script.Light.Brightness = 1
script.Light.Range = 5
wait(0.1)
script:Destroy()

1 comment

0

Are you trying to add it and in 0.1 seconds it destroys the light that the script added? Sorry i'm confused, Also if your trying to change properties of a something that a script added i recommend using Instance.new

1 answer

Nvm, I just replaced Script into Part which solved it.

This discussion is preserved as it was. New answers, comments, and votes are closed.