|
| 21 Jul 2016 11:36 AM |
| I have ADHD so I can't really pay attention well to those videos about scripting because they're so slow and not stimulating |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:37 AM |
| trust me, people without ADHD think they aren't very good either. |
|
|
| Report Abuse |
|
|
lagio
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 10296 |
|
|
| 21 Jul 2016 11:41 AM |
Tool = script.Parent debounce = false
local usable = Tool.Enabled
function swordUp() Tool.GripForward = Vector3.new(-1,0,0) Tool.GripRight = Vector3.new(0,1,0) Tool.GripUp = Vector3.new(0,0,1) end
function swordOut() Tool.GripForward = Vector3.new(0,0,1) Tool.GripRight = Vector3.new(0,-1,0) Tool.GripUp = Vector3.new(-1,0,0) end
function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.Q or inputObject.KeyCode == Enum.KeyCode.ButtonL2 then Tool.Equipped:connect(function(mouse) if debounce == false and Tool.Parent then debounce = true local anim = Instance.new("StringValue") anim.Name = "toolanim" anim.Value = "Lunge" anim.Parent = Tool Tool.Handle.Sparkles.Enabled = true Tool.Handle.Sparkles2.Enabled = true swordOut() local sound = Tool.Handle.Sound Tool.Parent.Humanoid.WalkSpeed = 6 sound:Play() local pa = game.Lighting.Part:Clone() game.Debris:AddItem(pa, 1.5) pa.Position = mouse.Hit.p + Vector3.new(0, 30, -5) local m = Instance.new("Explosion") m.Position = mouse.Hit.p wait(0.2) m.BlastRadius = 10 m.BlastPressure = 200000 m.ExplosionType = Enum.ExplosionType.NoCraters m.DestroyJointRadiusPercent = 0 m.Hit:connect(function(hitPart, partDistance) local humanoid = hitPart.Parent and hitPart.Parent:FindFirstChild("Humanoid") local badge = hitPart.Parent:FindFirstChild("FranklinBadge") if humanoid and not badge then local distance_factor = partDistance / m.BlastRadius -- get the distance as a value between 0 and 1 distance_factor = 1 - distance_factor tagHumanoid(hitPart.Parent.Humanoid, game.Players.LocalPlayer) -- flip the amount, so that lower == closer == more damage humanoid:TakeDamage(7*distance_factor) -- 0: no damage; 1: max damage end if humanoid and badge then local p = m:Clone() local distance_factor = partDistance / m.BlastRadius p.Position = Tool.Parent.Torso.Position tagHumanoid(Tool.Parent.Humanoid, game.Players.LocalPlayer) Tool.Parent.Humanoid:TakeDamage(10*distance_factor) pa.Position = Tool.Parent.Torso.Position + Vector3.new(0, 30, -5) end end) pa.Parent = game.Workspace wait(0.1) m.Parent = game.Workspace swordUp() Tool.Handle.Sparkles.Enabled = false Tool.Handle.Sparkles2.Enabled = false wait(0.2) Tool.Parent.Humanoid.WalkSpeed = 16 wait(1) debounce = false end end) end end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
function tagHumanoid(humanoid, player) local creator_tag = Instance.new("ObjectValue") creator_tag.Value = player creator_tag.Name = "creator" creator_tag.Parent = humanoid game.Debris:AddItem(creator_tag,1) end
function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end
scripting isn't hard
welcome to hell how may i take your order |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:42 AM |
@lagio You copied the script of LinkedSword. I can tell because I am a programmer. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:42 AM |
@GNU
I was about to say "love the free model". |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:42 AM |
LOL REKT
If winning isn't everything, why do they keep score? |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:44 AM |
and I've actually been using scratch for a long time (despite it's terrible community) so I know a thing or two about basic scripting |
|
|
| Report Abuse |
|
|
lagio
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 10296 |
|
|
| 21 Jul 2016 11:44 AM |
@dude who says he's a programmer
LOL you don't deserve to call yourself a programmer if you say that and you looked at the code
welcome to hell how may i take your order |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:45 AM |
Scratch has a community? I thought it was just download and animate.
If winning isn't everything, why do they keep score? |
|
|
| Report Abuse |
|
|
Top_K217k
|
  |
| Joined: 12 Jul 2016 |
| Total Posts: 228 |
|
|
| 21 Jul 2016 11:45 AM |
248 bugs in a code 248 bugs take one out patch it around 428 bugs in a code
That's how my scripting experience started , needless to say I gave up |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:46 AM |
Scratch was my headstart in programming.
It encouraged me to learn RBX Lua and begin scripting on ROBLOX. If you want to script, then just try Scratch and a while after you get the hang of it, try ROBLOX Lua.
just your average forumer |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:46 AM |
| i just want to build a game but roblox studio is really terrible and the scripting, despite being in a game for kids, is really intimidating |
|
|
| Report Abuse |
|
|
Noob3713
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 4079 |
|
|
| 21 Jul 2016 11:47 AM |
| @GNU yo that ain't all from linked sword dude like it has some elements from it but they're out of order and also has something unique in the middle |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:47 AM |
@lag I know: A little bit of Java C++ C# JavaScript Lua RBXLua PHP CSS MySQL <--- This one sucks Bash Batch HTML
I can pretty much use any programming language. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:47 AM |
@nigel same, i've been using it for literally 4 years despite that... augh
just your average forumer |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:47 AM |
I'm 12, I started scratch when I was like 7 or something. I deleted most of my accounts though, but you can find my new account by searching BearMations or, IndustriArts, which I used to make a dwarf fortress tribute |
|
|
| Report Abuse |
|
|
lagio
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 10296 |
|
|
| 21 Jul 2016 11:49 AM |
scripting isn't intimidating by any means
all you have to do is understand some core concepts
the one that'll boost you the fastest is
all physical objects in ROBLOX have events and most scripts are designed to listen and react to these events
in RBXLua it's represented by a few methods: I use either
part.[EventHere]:connect(function(args) -- content end
or
function killme(args) --content end
part.[EventHere]:connect(killme)
welcome to hell how may i take your order |
|
|
| Report Abuse |
|
|
Noob3713
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 4079 |
|
|
| 21 Jul 2016 11:52 AM |
| "i just want to build a game but roblox studio is really terrible and the scripting, despite being in a game for kids, is really intimidating" scripting ain't all that hard man i've been working with it for a few months now. haven't published anything to say but i am gonna help my friend create a huge boss AI. she's pretty damn good at what she does already so idk why she's asking me for help lol you know? |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:52 AM |
-- you are a big noob hah!!!
local MEME = Instance.new("Part")
MEME.Parent = game.Workspace wait(420) MEME:Destroy()
-- cycle of a meme |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:53 AM |
@lag Jeez, do you seriously think I read your whole script? I just took a quick look at it, saw a lot of strings & variables that are also used in the LinkedSword and then replied. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:54 AM |
game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = "HI"; -- CHANGE THIS MEME Color = Color3.new(3, 0, 0); Font = Enum.Font.SourceSansBold; FontSize = Enum.FontSize.Size24; })
-- and that was a meme |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:54 AM |
@lag You seriously called me a ######? I bet you don't even know what recursion is. |
|
|
| Report Abuse |
|
|
lagio
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 10296 |
|
|
| 21 Jul 2016 11:55 AM |
@GNU
"strings"
"variables"
>only the extremely common functions were copied
gooby pls
welcome to hell how may i take your order |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:55 AM |
@OP Wait, you use/used scratch? The mit one?
If so, the community isn't even terrible pal. They are nice now, trust me. I have an account on it. ;) |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2016 11:56 AM |
| i honestly think the "cycle of a meme" script doesn't even work lol |
|
|
| Report Abuse |
|
|