Hey, i have edited Friaza's fireball script witch only works in Studio, not in-game. Anyways, here's the script:
01 | Player = script.Parent.Parent -- Gets LocalPlayer |
02 | Character = Player.Character -- Gets Players Character |
03 | Mouse = Player:GetMouse() -- Gets players Mouse |
04 | function onKeyDown(key) |
05 | key = key:lower() |
06 | if key = = "z" then |
07 | x = Instance.new( "Part" ) |
08 | x.TopSurface = "Smooth" |
09 | x.BottomSurface = "Smooth" |
10 | x.Shape = "Ball" |
11 | x.Transparency = . 7 |
12 | x.BrickColor = BrickColor.new( "Bright red" ) |
13 | f = Instance.new( "Fire" ) |
14 | f.Parent = x |
15 | f.Size = 12 |
Please help!
On the first line, instead of putting,
1 | Player = script.Parent.Parent |
put this:
1 | Player = game.Players.LocalPlayer |
The difference between PlaySolo and In game is that In game, the character loads a little after the Player loads. In Playsolo, the character and Player load immediately. To fix this, we wait for the Character to load using repeat wait() until Player.Character
01 | Player = script.Parent.Parent -- Gets LocalPlayer |
02 | repeat wait() until Player.Character |
03 | Character = Player.Character -- Gets Players Character |
04 | Mouse = Player:GetMouse() -- Gets players Mouse |
05 | function onKeyDown(key) |
06 | key = key:lower() |
07 | if key = = "z" then |
08 | x = Instance.new( "Part" ) |
09 | x.TopSurface = "Smooth" |
10 | x.BottomSurface = "Smooth" |
11 | x.Shape = "Ball" |
12 | x.Transparency = . 7 |
13 | x.BrickColor = BrickColor.new( "Bright red" ) |
14 | f = Instance.new( "Fire" ) |
15 | f.Parent = x |