Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 8,079
» Latest member: seanac11
» Forum threads: 10,350
» Forum posts: 91,276
Full Statistics
|
Online Users |
There are currently 140 online users. » 0 Member(s) | 138 Guest(s) Bing, Google
|
Latest Threads |
I'm leaving the site too....
Forum: 2DWorlds Discussion
Last Post: Jacob_
07-03-2023, 04:59 AM
» Replies: 12
» Views: 6,411
|
hi there.
Forum: 2DWorlds Discussion
Last Post: Jacob_
01-03-2020, 04:30 AM
» Replies: 1
» Views: 773
|
obroke
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 10:11 AM
» Replies: 0
» Views: 20,544
|
fcouldn't
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 09:02 AM
» Replies: 0
» Views: 8,253
|
qhow
Forum: Current Games
Last Post: PhilipShums
09-06-2017, 07:25 AM
» Replies: 0
» Views: 2,139
|
zstone
Forum: Current Games
Last Post: TimothyTox
09-06-2017, 07:03 AM
» Replies: 0
» Views: 1,006
|
vbit
Forum: Current Games
Last Post: FrancisSah
09-06-2017, 03:00 AM
» Replies: 0
» Views: 983
|
sildenafil 100 mg sandoz
Forum: Current Games
Last Post: RichardLen
09-06-2017, 12:28 AM
» Replies: 0
» Views: 1,201
|
mhis
Forum: Current Games
Last Post: TimothyTox
09-05-2017, 04:09 PM
» Replies: 0
» Views: 1,007
|
sildenafil citrate 100mg ...
Forum: Current Games
Last Post: Waltertog
09-05-2017, 12:27 PM
» Replies: 0
» Views: 962
|
|
|
helo |
Posted by: Agustin - 08-07-2011, 06:00 PM - Forum: Introduce Yourself
- Replies (3)
|
 |
i am a argentina in latvia i found this by serching free building game on youtube i dont speak good english sory
|
|
|
Could someone make thsi scipt of a gun shoot automatically? |
Posted by: Slender_man - 08-07-2011, 05:49 PM - Forum: Scripting
- Replies (4)
|
 |
This is semi-automatic but can someone make it shoot automaticly?
tool = script.Parent
player = tool.Parent.Parent
character = player.Character
body = character.Body
enabled = true
reloading = false
ammo = 12
function showAmmo()
player:message("Ammo: "..ammo)
end
function reload()
if reloading then return end
reloading = true
enabled = false
tool.Name = "Rocket"
while ammo < 1 do
sleep(0.5)
ammo = ammo + 12
showAmmo()
end
enabled = true
reloading = false
end
function unload()
enabled = false
tool.Name = "Reload"
end
function playSound(s)
if game.AssetService:getChild(s) ~= nil and game.AssetService[s]:isA("Sound") then
game.AssetService[s]:play()
end
end
function normalizeVector(vec)
local m = math.sqrt(vec.x * vec.x + vec.y * vec.y)
return Vec2D(vec.x / m, vec.y / m)
end
function onClick(btn, pos)
if btn == 1 then
if not enabled then return end
ammo = ammo - 1
showAmmo()
if ammo <= 0 then
unload()
end
local r = create("Box")
r.Size = Vec2D(4, 0.4)
r.Name="Rocket"
r.Color = Color(255,255,102)
r.ShowBorder = false
local v = normalizeVector(Vec2D(pos.x - body.Position.x + 0.1, pos.y - body.Position.y - 1.5))
local angle = math.atan2(v.y, v.x)
local c = create("FixedVelocity")
c.Velocity = Vec2D(v.x * 40, v.y * 40)
c.Parent = r
r.Rotation = math.deg(angle)
r.Position = Vec2D(body.Position.x - 0.1 + v.x * 7, body.Position.y + 1.5 + v.y * 7)
local s = create("Script")
s.Name = "RocketScript"
s.Source = [[
exploded = false
function playSound(s)
if game.AssetService:getChild(s) ~= nil and game.AssetService[s]:isA("Sound") then
game.AssetService[s]:play()
end
end
rocket = script.Parent
function onCollide(hit)
if exploded then return end
exploded = true
local e = create("Explosion")
e.Radius = 1
e.Position = rocket.Position
e.Parent = game.World
rocket:remove()
playSound("")
end
link(rocket.Collided, onCollide)
link(rocket.TerrainCollided, onCollide)
]]
s.Parent = r
r.Parent = game.World
playSound("")
if enabled then
enabled = false
sleep(0.1)
enabled = true
end
end
end
function keyDown(k)
if k == "r" then
reload()
end
end
function selected()
showAmmo()
end
function deselected()
player:message()
end
link(script.Parent.Selected, selected)
link(script.Parent.Deselected, deselected)
link(script.Parent.MouseDown, onClick)
link(script.Parent.KeyDown, keyDown)
|
|
|
Known/Common Bugs |
Posted by: Login - 08-07-2011, 05:16 PM - Forum: Bug Reports
- No Replies
|
 |
These are a list of bugs that are known or common. If you post a bug that is already mentioned in this list, your thread will be deleted. If you do it multiple times, you will be warned. Ctrl + F if you want to find your issue faster (in case you couldn't look through a few issues). Unless your bug was reported BEFORE this thread, it will be deleted. Any threads made after this thread will be deleted or action will be taken depending on the situation.
Known/Common Bugs - Achievements take a while to receive
- "Bug" for losing posts is not actually a bug, but when your post/a thread with your post in it is deleted, your post count is lowered as well because you posted there. It's not a bug when your post count lowers.
|
|
|
{Happyman's Blog} |
Posted by: Happyman - 08-07-2011, 02:22 PM - Forum: Blog
- Replies (4)
|
 |
--My Blog--
(I might not post on here everyday but once I'm online I will)
7.8.2011
Today I woke up in my friends house because we planned to take a game time together. On the morning I took Oboy with milk and took a bread. When I ate 'em I went home. Then, a bit later my little sisters friend came home to us. They went together into a pool for swimming.
I was at the trampoline with my little brother. It was fun. And now I'm at the computer.
|
|
|
Be nice Game |
Posted by: Happyman - 08-07-2011, 01:36 PM - Forum: Forum Games
- Replies (14)
|
 |
--Be nice Game--
You have to say something Nice about the user above.
Example: You are nice because (Ex. You are very helpfull for everyone)
|
|
|
|