Poll

print((CFrame.Angles(math.pi, 0, 0) * CFrame.new(0, 1, 0)).Y)

1
-1

Author Topic: [THREAD MOVED]  (Read 525995 times)

ROBLOX now allows audio up to 6 minutes! :D
but a 18 second song is 50R$

Meanwhile at Kohl's Admin House...
http://xomf.com/g/nrqpk
note: nsfw


Meanwhile at Kohl's Admin House...
http://xomf.com/g/nrqpk
note: nsfw

ROBLOX love PRANKS (GONE loveUAL GONE WRONG IN THE HOOD) RARE HACK 2016 FREE ROBUX

okay, also, one thing you didnt know.

The time i wasn't OBC, my building skills were extremely worse.
vomit colors, as you say

Taken from my olde photo dump, from 2012-13-14
i bet the actual colors im using are better than this...
you didn't make that though

that's the city stage on that old roblox battle game lol

you didn't make that though

that's the city stage on that old roblox battle game lol
loving rip

you didn't make that though

that's the city stage on that old roblox battle game lol

exposed


you didn't make that though
that's the city stage on that old roblox battle game lol
another detail.
it was bloxburg, but stufftily painted.

exposed
loving rip
yes i was a real Edgy noob

im trying to make an animation play in a part of a script

local function Reload()
   if not Reloading then
      Reloading = true
      -- Don't reload if you are already full or have no extra ammo
      if AmmoInClip ~= ClipSize and SpareAmmo > 0 then
         if RecoilTrack then
            RecoilTrack:Stop()
            
         end
         if WeaponGui and WeaponGui:FindFirstChild('Crosshair') then
            if WeaponGui.Crosshair:FindFirstChild('ReloadingLabel') then
               WeaponGui.Crosshair.Reloading Label.Visible = true
            end
         end
         script.Parent.Handle.Reload:Play()   
         script.Parent.Reloadd:Play()
         wait(ReloadTime)
         -- Only use as much ammo as you have
         local ammoToUse = math.min(ClipSize - AmmoInClip, SpareAmmo)
         AmmoInClip = AmmoInClip + ammoToUse
         SpareAmmo = SpareAmmo - ammoToUse
         UpdateAmmo(AmmoInClip)
         WeaponGui.Reload.Visible = false
      end
      Reloading = false
   end
end


it doesn't work when i test.
can someone help me?

im trying to make an animation play in a part of a script

local function Reload()
   if not Reloading then
      Reloading = true
      -- Don't reload if you are already full or have no extra ammo
      if AmmoInClip ~= ClipSize and SpareAmmo > 0 then
         if RecoilTrack then
            RecoilTrack:Stop()
            
         end
         if WeaponGui and WeaponGui:FindFirstChild('Crosshair') then
            if WeaponGui.Crosshair:FindFirstChild('ReloadingLabel') then
               WeaponGui.Crosshair.Reloading Label.Visible = true
            end
         end
         script.Parent.Handle.Reload:Play()   
         script.Parent.Reloadd:Play()
         wait(ReloadTime)
         -- Only use as much ammo as you have
         local ammoToUse = math.min(ClipSize - AmmoInClip, SpareAmmo)
         AmmoInClip = AmmoInClip + ammoToUse
         SpareAmmo = SpareAmmo - ammoToUse
         UpdateAmmo(AmmoInClip)
         WeaponGui.Reload.Visible = false
      end
      Reloading = false
   end
end


it doesn't work when i test.
can someone help me?

Here's the problem:

script.Parent.Reloadd:Play()

You misspelled "Reload". Though I wonder how you managed to bold it and not notice the mistake while at it.

nevermind what i was saying before.
now i need to convert the automatic gun in a raycaster

Script to be converted
Assault Rifle Template script

Raycast script
Raycasting laser gun script from roblox wiki
« Last Edit: October 09, 2016, 04:02:36 PM by BlocklandBlockoCity »

actually, reloadd is the name of the animation, because there is a sound called Reload.

im talking about playing the animation when you start reloading

Searched it up in the Roblox Wiki, here's what you do:

In the same script as the function
local reloadanim = script.Parent.Humanoid:LoadAnimation(script.Parent.Reloadd)

In the function itself
reloadanim:Play()

My Roblox Lua is not too rusty.

My Roblox Lua is not too rusty.
i know, but it didnt work.
i think you know that gun template.
i seen it in some games like advanced warfare tycoon..

some people made a r15 morph template
i'm now supporting it full on