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 » Scripters
Home Search
 

for i = 1,8 do

Previous Thread :: Next Thread 
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
15 May 2015 08:08 PM
for i = 1,8 do
wait(0.1)
EarthBarrier.CFrame = EarthBarrier.CFrame +CFrame.new(0,1,0)
end


Why won't it work? It's just around in the middle of my HopperBin script, which goes like this:

bin = script.Parent
player = script.Parent.Parent.Parent
me = script.Parent.Parent.Parent

enabled = true

function onButton1Down(mouse)

if not enabled then
return
end

local player = game.Players.LocalPlayer
if player == nil then return end
enabled = false
local animTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Handsigns)
animTrack:Play()
wait(0.7)
EarthBarrier = Instance.new("Part")
EarthBarrier.BrickColor = BrickColor.new("Brown")
EarthBarrier.Size = Vector3.new(21, 10, 4)
EarthBarrier.TopSurface = "Smooth"
EarthBarrier.Material = "Cobblestone"
EarthBarrier.BottomSurface = "Smooth"
EarthBarrier.Name = ("EarthBarrier")
EarthBarrier.CanCollide = false
EarthBarrier.Parent = game.Workspace
EarthBarrier.CFrame = me.Character.Torso.CFrame*CFrame.new(0, -8, -12) -- orig -12
--Sparks = Instance.new("ParticleEmitter")
--Sparks.Parent = EarthBarrier
--Sparks.Speed = NumberRange.new(1)
--Sparks.Transparency = NumberSequence.new(0.25,0.25)
--Sparks.Size = NumberSequence.new(0.7,0.7)
--Sparks.Rate = 1500
--Sparks.Lifetime = NumberRange.new(20)
for i = 1,8 do
wait(0.1)
EarthBarrier.CFrame = EarthBarrier.CFrame +CFrame.new(0,1,0)
end
fd = script.Firedamage:clone()
fd.Disabled = false
fd.Parent = EarthBarrier
y = Instance.new("BodyVelocity")
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
y.velocity = me.Character.Torso.CFrame.lookVector*150 --Change the number here for the speed of the jutsu.
y.Parent = EarthBarrier

game.Debris:AddItem(EarthBarrier, 6)
RandomNumber = math.random(5,15)
game.Players.LocalPlayer.leaderstat.EXP.Value = game.Players.LocalPlayer.leaderstat.EXP.Value - RandomNumber
game.Players.LocalPlayer.PlayerGui.Chakra.ChakraStored.Value = game.Players.LocalPlayer.PlayerGui.Chakra.ChakraStored.Value - 20
game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "Earth Release: Rock Crash!")
script.Parent.Jutsu:Play()
wait(6)
enabled = true
end

enabled = true
function onS(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onS)
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
15 May 2015 08:21 PM
maybe it's too fast to see?
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
15 May 2015 08:23 PM
No. I figured it out, but it's another problem IDK how to handle. Lol
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
15 May 2015 08:24 PM
for i = 1,8 do
wait(0.1)
EarthBarrier.CFrame = EarthBarrier.CFrame * CFrame.new(0,1,0)
end


I script -~ chimmihc
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
15 May 2015 08:24 PM
Use * instead of +

If that don't work use a Tool
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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