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
 

Re: Scripting Challenge (>_<)

Previous Thread :: Next Thread 
omegashawn123 is not online. omegashawn123
Joined: 27 Sep 2013
Total Posts: 269
18 Oct 2015 07:39 PM
Objective: Rite a script from scratch that makes a part then shoots it foreword from were your player is facing.

Rule's = {
No BodyVelocity or ect,
use CFrame or Vector }'
Have fun post the script u come up with.

i did thiss cuz i just wanted to c how many people could do this.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
18 Oct 2015 07:41 PM
Rite
Foreword
Rule's
ect
}'
u
i
thiss
cuz
i
c

NOPE NOPE NOPE NOPE NOPE.

-The [Guy]
Report Abuse
airstriker4 is not online. airstriker4
Joined: 27 Jul 2012
Total Posts: 5831
18 Oct 2015 07:41 PM
LOL
nice try
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
18 Oct 2015 07:51 PM
Wrote this on a phone so it won't 100% work but you get it.

table = {}

function newblock(Player
table.insert(table,
["body"] = instance.new("Part", game.Workspace),
["speed"] = Vector3.new(math.cos(math.rad(Player.Character.Torso.Rotation)), 0, math.sin(math.rad(Player.Character.Torso.Rotation)))
)
end

while wait() do
for i = 1, #table do
local class = table[i]
class.body.position = class.body.position + 3 * class.direction
end
end
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
18 Oct 2015 08:01 PM
Okay this is my script for it. I tested it in a LocalScript inside of a tool, RequiresHandle was off:

====================================
local player = game.Players.LocalPlayer
local character = player.Character or game.Workspace:WaitForChild(player.Name)

local torso = character:WaitForChild("Torso")

local tool = script.Parent

function toolActivated()
local p = Instance.new("Part", workspace)
p.Name = "Bullet"
p.Size = Vector3.new(2, 2, 2)
p.Shape = "Ball"
p.BrickColor = BrickColor.new("Bright orange")
p.CanCollide = false
p.Locked = true
p.Anchored = false
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
local torsoVec = torso.Position + torso.CFrame.lookVector*5
local unitVec = (torsoVec - torso.Position).unit*50
p.CFrame = torso.CFrame
local bv = Instance.new("BodyVelocity", p)
bv.velocity = Vector3.new(0, 0, 0)
bv.velocity = unitVec
end

tool.Activated:connect(toolActivated)
====================================
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
18 Oct 2015 08:06 PM
that uses cframe @above
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
18 Oct 2015 08:08 PM
Oh wow, I just read the rules.

"No BodyVelocity or ect"

Without this it will create a ton of lag because of the processing each bullet requires, I dunno why he'd want this to be a restriction
Report Abuse
YellowTide is not online. YellowTide
Joined: 20 May 2011
Total Posts: 267
18 Oct 2015 08:13 PM
It wouldn't create a ton of lag :/
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
18 Oct 2015 08:19 PM
Without bodyvelocity you have to manually change the part's position, or it just falls due to gravity. To do that without lag you need a bunch of loops. If you make enough balls that will cause a bunch of delay in other code because of how much processing power they're taking.
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
18 Oct 2015 08:26 PM
Mine worked fine, it also didn't make a frame change till about 340 parts
Report Abuse
omegashawn123 is not online. omegashawn123
Joined: 27 Sep 2013
Total Posts: 269
18 Oct 2015 08:33 PM
it was just a little fun thing i thought would be funny
U Can USE Cframe
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