generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Assistance with this body lighting surrounding script.

Previous Thread :: Next Thread 
SpeedDemon30 is not online. SpeedDemon30
Joined: 03 May 2012
Total Posts: 74
30 Apr 2013 07:49 PM
I'm putting this as a part of my transformation creation and turning it into a Vip, I want it that so the effect still makes lighting around the character, I did the parts where it worked for me which makes the lighting appear, I want to make it work that it would work for anyone who uses it

name = "SpeedDemon30"
local run = false
function line(pos1, pos2)
local b = Instance.new("Part")
b.Parent = workspace[name]
b.Anchored = true
b.BrickColor = BrickColor.new("Cool yellow")
b.CFrame = CFrame.new((pos1+pos2)/2,pos2)*CFrame.Angles(math.rad(90),0,0)
b.CanCollide = false

local y = Instance.new("BlockMesh")
y.Parent = b
y.Scale = Vector3.new(0.02,(pos2-pos1).magnitude,0.02)
game:GetService("Debris"):AddItem(b, 0.15)
end

function random()
return Vector3.new(math.random(-1,1), math.random(-1,1), math.random(-1,1))
end

game.Players[name].Chatted:connect(function(msg)
msg = msg:lower()
if string.sub(msg, 1, 3) == "off" then
run = false
if workspace:findFirstChild(name) then
end
elseif string.sub(msg,1, 7) == "!" then
run = true
if workspace:findFirstChild(name) then
end
end
end)

while wait() do
if run then
p1 = game.workspace[name].Torso.Position + random()*2
p2 = p1 + random()
line(p1, p2)
p1 = p2
p2 = p1 + random()
line(p1, p2)
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image