Giter Site home page Giter Site logo

core-scripts's Introduction

Core-Scripts

All of ROBLOX's core client scripts.

These scripts are responsible for character & camera control, as well as in-game UI and other things.

core-scripts's People

Contributors

convexheroroblox avatar coolestkid avatar dantargz avatar darraghgriffin avatar dnurkkala avatar einsteink avatar ethankoester avatar foreverpower avatar garnold24 avatar hockeychaos avatar jacoblocke avatar jhelmsatroblox avatar jmargh avatar jovannic avatar kampfkarren avatar katurner avatar kyle-emmerich avatar matthewdean avatar only20 avatar phoenixshay avatar robloxcodewriter avatar roboyz avatar rosemaryehlers avatar sncplay42 avatar solarcrane avatar spotco avatar stickmasterluke avatar tberg-roblox avatar tiffany352 avatar tmartell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core-scripts's Issues

Argument 1 missing or nil in PurchasePromptScript

This bug may be related to #18. It often occurs in conjunction with that error.

Argument 1 missing or nil | CoreGui.RobloxGui.CoreScripts/PurchasePromptScript, line 601 - global canPurchaseItem CoreGui.RobloxGui.CoreScripts/PurchasePromptScript, line 180

Unable to expand the leaderboard

You used to be able to expand the leaderboard by pressing the TAB key, but with the new Core GUI, you can't. (According to SchnitzelSandwich)

ROBLOX's scripts output "attempt to call a nil value"

see original issue by @Quenty


One of ROBLOX's core scripts will output "attempt to call a nil value" in solo test mode If certain conditions are met.

It appears when you load a character, and you have set the Players.ChracterAutoloads to false, then you will break some unknown script.

Repro

  1. Make a new place in studio
  2. Set Players.CharacterAutoLoads to false
  3. Test in SoloTestMode or the new Character Play Mode
  4. Run this code whenever you want, in that test mode.

game.Players.Player1:LoadCharacter()

image

Tadah. Error.

HealthScript:170: attempt to index upvalue 'humanoidDiedConnection' (a nil value)

I'm seeing this in studio when I start a server/client:

21:52:48.395 - CoreGui.RobloxGui.CoreScripts/HealthScript:170: attempt to index upvalue 'humanoidDiedConnection' (a nil value)
21:52:48.396 - Stack Begin
21:52:48.396 - Script 'CoreGui.RobloxGui.CoreScripts/HealthScript', Line 170 - global disconnectPlayerConnections
21:52:48.396 - Script 'CoreGui.RobloxGui.CoreScripts/HealthScript', Line 220
21:52:48.397 - Stack End

IsScrolledDown not working

Everytime I am scrolling up in the chatlog and someone talks, it scrolls down again.
I can't find out why, though, but I thought I should at least post it here.

New player list won't hide

I am unable to hide the new player list using the SetCoreGuiEnabled method in StarterGui.

Reproduction steps:

  1. Open Studio with a new place.
  2. Insert a local script into StarterGui with the following code:
game.StarterGui:SetCoreGuiEnabled("PlayerList",false)
  1. Play solo or use test servers. The player list doesn't hide.

ToolTip is not a valid member of HopperBin

ToolTip is not a valid member of HopperBin | CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript, line 606

and

ToolTip is not a valid member of HopperBin | CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript, line 612

attempt to compare number with nil

This occurs when trying to set the Chat CoreGUI to disabled. I am using SetCoreGuiEnabled("All"), in this screenshot, you can see that no CoreGUI is hidden.

This seems to only happen to me while using the ROBLOX Developer app for iOS.

img_0294

Using disabled API

http://api.roblox.com/users/{userId}/canmanage/{assetId}

The FFlag UseCanManageApiToDetermineConsoleAccess got enabled very recently.
The new API that the FFlag forces the client to use, however, is still enabled.
F9 serverside console won't load for anyone. (Not even game creator)

I also heard of an issue of a place's stats page not loading, could be related to this.

a.lua: attempt to call nil value

Several errors as reported by Google Analytics via the GA script module:

...blox\Versions\version-23a4f309f57a496c\content/a.lua:11: attempt to call a nil value | ...blox\Versions\version-23a4f309f57a496c\content/a.lua, line 11

.

...blox\Versions\version-187659e292024b9d\content/a.lua:11: attempt to call a nil value | ...blox\Versions\version-187659e292024b9d\content/a.lua, line 11

.

...blox\Versions\version-23a4f309f57a496c\content/a.lua:1188: attempt to index a nil value | ...blox\Versions\version-23a4f309f57a496c\content/a.lua, line 1188

.

...blox\Versions\version-23a4f309f57a496c\content/a.lua:1412: attempt to index global 's' (a nil value) | ...blox\Versions\version-23a4f309f57a496c\content/a.lua, line 1412

.

[string "for i,v in next,game:children()do..."]:286: attempt to index global 'script' (a nil value) | [string "for i,v in next,game:children()do..."], line 286 ...blox\Versions\version-187659e292024b9d\content/a.lua, line 2845

BlackFrame is not a valid member of ScreenGui

BlackFrame is not a valid member of ScreenGui

I'm seeing this error message. Following is the stack trace:

LoadingScript, line 451 - global fadeBackground
LoadingScript, line 519

new ROBLOX chat bug.

Recently while playing a roblox game, I've came across a bug with the new chat and decided to report this bug to you guys.
There are 2 bugs in this report so I'll report the first one.

Number One:

What-ever you type in will merge with the "To chat click here or press "/" key"

I have video on this bug and how to re-occur it.
VIDEO - https://www.youtube.com/watch?v=56vdFPkx7Ig&feature=youtu.be

Steps: Create a game.
Go to the game
Type anything in the chat then click the screen.
The things you've typed will merge with the "To chat click here or press "/" key"

Second Bug with the new Chat.

The chat disappears once you minimize game.

I have video on how to re-occur this bug.
VIDEO - https://www.youtube.com/watch?v=rIWDxCvSIdQ&feature=youtu.be

Steps: Create a game, or play a game with anyone and tell them to chat.
Minimize the game, then open the game back up.
The chat and words will be gone on the screen, but are in the logs. They're really high up in the scroll thing.
This can cause problems.

Thanks,
manofarmy12.

MarketplaceService:getProductInfo() failed because mc

This error occurs from time to time on line 89 of LoadingScript

coroutine.resume(coroutine.create(function() GameAssetInfo = MPS:GetProductInfo(PLACEID) end))

The following errors also occurs at the same place:

MarketplaceService:getProductInfo() failed because HTTP -1200
MarketplaceService:getProductInfo() failed because HTTP 404 (HTTP/1.1 302 Found)
MarketplaceService:getProductInfo() failed because https://api.roblox.com/marketplace/productinfo?assetId=<PlaceID>: HttpSendRequest, err=0x2EFF

leaderstats is not a valid member of Player

leaderstats is not a valid member of Player
Script 'CoreGui.RobloxGui.CoreScripts/PlayerListScript', Line 2137 - global LeaderstatsAdded
Script 'CoreGui.RobloxGui.CoreScripts/PlayerListScript', Line 2393 - global InsertPlayerFrame
Script 'CoreGui.RobloxGui.CoreScripts/PlayerListScript', Line 3010 - global debugPlayerAdd
Script 'CoreGui.RobloxGui.CoreScripts/PlayerListScript', Line 2978

I believe 2137 to be the culprit, because it uses nplayer.leaderstats, instead of something like nplayer:WaitForChild("leaderstats")

Backpack

CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript:995: attempt to index field '?' (a nil value)

ServerScriptService.SinglePlayerScript:670: attempt to index field 'Character' (a nil value)

This error has occurred 2900 times on my not-especially-popular place since 12-14-2014. Pretty frequent. Most recently, this occurred yesterday with instances of the error occurring each day.

ServerScriptService.SinglePlayerScript:670: attempt to index field 'Character' (a nil value)

I do not have a script named SinglePlayerScript in my place. There isn't a script in the Core-Scripts repo with this name. Should this issue be moved to Anaminus/roblox-bug-tracker?

User created GUIs on Topbar

I want to be able to put other GUIs on the topbar, such as user created GUI buttons to open up GUIs, but the top bar is in the way of clicking them. Please fix

AddCoreScriptLocal is not a valid member of ScriptContext

22:56:34.014 - AddCoreScriptLocal is not a valid member of ScriptContext
22:56:34.020 - Script 'Script Context.StarterScript', Line 11
22:56:34.021 - Stack End

This seems to happen in studio. I just updated to the latest version of the Core Scripts and this seems to be happening.

Joining and leaving quickly can bug out the playerlist

It seems that joining and leaving a game very quickly can bug out the playerlist coregui.

This bug causes the person who joined and left quickly to overwrite your username on the playerlist if you are the only person in the server. Once overwritten, you can expand the playerlist and it will still stay as the overwritten text. You can also click on the overwritten name and you can report the user by clicking the "Report user" button next to it. This will strangely not report yourself but the user who joined and left. If the user who quickly joined and left joins back normally, there will be 2 of them on the other client's screen.

From personal testing, it doesn't seem to work unless you are the only person in the server and the 2nd person joining your server quickly joins and leaves.

To reproduce:

  1. Person1 joins a game and stays in a server alone
  2. Person2 joins the game and closes out the game as soon as "Bricks: number Connectors: number" or "Waiting for character" is visible
  3. Person1 should see Person2 glitched onto the playerlist

dubs, check em

Error in PurchasePromptScript

See original issue by @TheSneak


I am seeing this error in Google Analytics using the new GA module:

CoreGui.RobloxGui.CoreScripts/PurchasePromptScript:665: attempt to index upvalue 'currentProductInfo' (a nil value) | CoreGui.RobloxGui.CoreScripts/PurchasePromptScript, line 665 - global canPurchaseItem CoreGui.RobloxGui.CoreScripts/PurchasePromptScript, line 180

"return" keyword missing

Core-Scripts / CoreScripts / PurchasePromptScript.lua
line 416, in the pcall anonymous function we call settings():GetFFlag(), but the value is never returned. The line should be:

local flagExists, flagValue = pcall(function() return settings():GetFFlag("AddRequestIdToDeveloperProductPurchases") end)

leaderstats is not a valid member of Player

Call stack:

CoreGui.RobloxGui.CoreScripts/PlayerListScript, line 2143 - global LeaderstatsAdded
CoreGui.RobloxGui.CoreScripts/PlayerListScript, line 2391 - global InsertPlayerFrame
CoreGui.RobloxGui.CoreScripts/PlayerListScript, line 3009 - global debugPlayerAdd
CoreGui.RobloxGui.CoreScripts/PlayerListScript, line 3019

disabling and re-enabling the backpack bar GUI causes it to bug out

On startup in a LocalScript, I have a function that disables the backpack GUI:

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)

and then, later, re-enables the backpack bar via this:

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)

However, when I re-enable the GUI, it does not function correctly. The tool buttons in the GUI do not automatically relocate themselves. They are not clickable in this state, but they are draggable. Pressing ~ fixes the GUI.

For an example of the bug in action, here's a game of mine that is affected by it: http://www.roblox.com/Testing-Landforge-place?id=7209708

Issue with Inventory

When disabling the Inventory CoreGui, if you add a Tool to the player's Character, it will occasionally bug the inventory and cause it to come up again. The new inventory is unusable unless you click on one of the hotkeys and is a problem both technically and graphically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.