View difference between Paste ID: GVBfmEpB and 7AkAYeTB
SHOW: | | - or go back to the newest paste.
1
lights={"1","2","4","9","11","13"}
2
pAtOnce=50
3
radiusX=100
4
radiusY=100
5
speedX=0
6
speedY=0
7
8-
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),0,0,0,0,nil)
8+
9
for i=1,pAtOnce do
10
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),"0."..speedX,"0."..speedY,"0."..speedX,"0."..speedY,nil)
11
end
12
end
13
14
function eventChatCommand(p,c)
15
if c:sub(0,3)=="par" and tonumber(c:sub(5))<=1000 then
16
pAtOnce=c:sub(5)
17
elseif c:sub(0,2)=="rx" then
18
radiusX=c:sub(4)
19
elseif c:sub(0,2)=="ry" then
20
radiusY=c:sub(4)
21
elseif c:sub(0,2)=="xs" then
22
speedX=c:sub(4)
23
elseif c:sub(0,2)=="ys" then
24
speedY=c:sub(4)
25
end
26-
print("<p align='left'>\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'<n>!\nWant the lights to go <j>further/closer<n>? Type <j>'!rx number' <n>or <j>'!ry number'<n>!</p>")
26+
27
end
28
 
29
system.disableChatCommandDisplay("par",true)
30
system.disableChatCommandDisplay("rx",true)
31
system.disableChatCommandDisplay("ry",true)
32
system.disableChatCommandDisplay("xs",true)
33
system.disableChatCommandDisplay("ys",true)
34
print("<p align='left'>\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'<n>!\nWant the lights to go <j>further/closer<n>? Type <j>'!rx number' <n>or <j>'!ry number'<n>!\nWant to make the <j>lights move<n>? Type <j>'!xs number'<n> or <j>'!ys number'<n>!</p>")