|
| 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 |
|