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: Buso Haki Question

Previous Thread :: Next Thread 
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 09:32 PM
I have a whole script for Buso Haki, it seems like it should work. When I got to test It has 0 results.

All the commands are pretty basic for what its suppose to do. Don't know where I went wrong tbh. As for testing I have it under starterpack

Could anyone list some problems that may be occurring?
Location of Script, The kind of Script, etc?


Report Abuse
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 09:33 PM
b1


Report Abuse
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 09:36 PM
local Player = game.Players.LocalPlayer == tells the script what the player is
repeat wait() until Player.Character == waits until is finds the players character
local Character = Player.Character == tells the script where the players character is
local Mouse = Player:GetMouse() == tells the script what the players mouse is

Mouse.Keydown:connect(function(Key) == if a key is pressed it will run the code under it
if Key == "t" then == if the key is t #t will run the code under it

Character["Left Arm"].Transparency = 1
local LeftArm = Instance.new("Part") -- creates a part
LeftArm.Name = "BusoLeftArm"
LeftArm.BrickColor = BrickColor.new("Black")
LeftArm.Material = "SmoothPlastic"
LeftArm.Reflectance = 0.2
LeftArm.CanCollide = true
LeftArm.Anchored = false
LeftArm.Size = Vector3.new(1, 2 ,1)
LeftArm.Parent = Character
local w = Instance.new("Weld") -- creates a weld which welds this buso to the actual arm in the players Character
####### # ############### Arm")
w.Part1 = LeftArm
w.Parent = LeftArm
end
end)




Report Abuse
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 09:37 PM

w.Part0 = Character("Left Arm")*




Report Abuse
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 09:38 PM
Anyone please ;(?


Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
14 Jul 2017 09:43 PM
I don't think Keydown is an event of mouse.

Use UserInputService: http://wiki.roblox.com/index.php?title=API:Class/UserInputService

Report Abuse
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 09:44 PM
So what do I replace it with?


Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
14 Jul 2017 09:59 PM
KeyDown is a mouse event

its case sensitive, you have Keydown when it should be KeyDown


Report Abuse
ConjureAir is online. ConjureAir
Joined: 11 Mar 2013
Total Posts: 2166
14 Jul 2017 10:03 PM
"you have Keydown when it should be KeyDown" What?

(Kinda new to this)


Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
16 Jul 2017 02:20 AM
Keydown
KeyDown

do you see the difference? it matters
everything in programming is case-sensitive

"VARIABLE" is not the same as "variable"


Report Abuse
keepitbummy is not online. keepitbummy
Joined: 21 Sep 2015
Total Posts: 294
16 Jul 2017 02:42 AM
First off don't use KeyDown... use UserInputService


Report Abuse
Mokuteki is not online. Mokuteki
Joined: 31 Aug 2010
Total Posts: 906
16 Jul 2017 04:44 AM
^^ Yes use input services lol.

local Player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
repeat wait() until Player.Character
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

local enabled = false
local cooldown = 10



UIS.InputBegan:Connect(function(Input, GPE)

if GPE then return end
if Input.KeyCode == Enum.KeyCode.J then --SCRIPT GOES HERE
if not enabled then

enabled = true
Character.Humanoid.MaxHealth = 200
wait(cooldown)

enabled = false
end
end
end)
Report Abuse
RogueMage is not online. RogueMage
Joined: 28 Jan 2012
Total Posts: 1235
16 Jul 2017 05:49 AM
Multiple things




use UserInputService

As for the black thing for the haki, don't try to recreate the arm. Just clone the left arm and set it to anchored = false and cancollide = false, then color it and weld it.


The damage thing is uhhhhhhhhh idk
Report Abuse
Mokuteki is not online. Mokuteki
Joined: 31 Aug 2010
Total Posts: 906
16 Jul 2017 06:08 AM
@ rouge




ball.Touched:Connect(function(Part)
if Part.Parent.Name ~= Player.Name then
if not ball:FindFirstChild("Hit") then
if Part.Parent:FindFirstChild("Humanoid") then
local humanoid = Part.Parent.Humanoid
local hit = Instance.new("BoolValue")
hit.Name = "Hit"
hit.Parent = ball

humanoid:TakeDamage(15)
end
end
end
end)
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
16 Jul 2017 06:41 AM
ok one piece
Report Abuse
szkiller_dev is not online. szkiller_dev
Joined: 07 Oct 2016
Total Posts: 3572
16 Jul 2017 06:48 AM
LOL THIS IDIOT CAN'T EVEN SPELL GAME SERVICES PROPERLY XD

Keydown == KeyDown

R u a nob?
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