Screen 1 withoutHumanoid
Screen 2 with Humanoid
Well, it would be helpful to see your script. Also, it shouldn’t be a server-script since animations are smoother via local scripts. And the server-script shouldn’t even be in workspace because hackers will be able to read it.
Its the test !
local Demon = script.Parent
local animation = Demon.Animation
local animationController = Demon.AnimationController
local animator = animationController.Animator
local idledemonAnimationTrack = animator:LoadAnimation(animation)
idledemonAnimationTrack.Looped = true
idledemonAnimationTrack:Play()
That may be true, but you have to incur the risk that the exploiter can change the animation ID inside the local script to make the model play a different animation.
That is COMPLETELY FALSE. Server-sided codes are NEVER replicated to the client at any point.
For the OP, can you please show us a video of the bug happening? Is there any errors in the output? Have you made sure you own the animation?
I’m not a video to show but in the output there is nothing too, which is weird that the humanoid him I do not know why it blocks the animations
Try removing the AnimationController
instance, and place an Animator
instance under Humanoid
. Then, use the Animator
instance to load your animations.
thankkks !!! broooooo ^^!! its so simple x)
Even if they do this, they can’t really do anything. They can maybe give themselves a custom animation I guess and it’d replicate to the other clients but c’mon now that wouldn’t hurt would it?
I just realised I wrote server-script now, I’ll edit it later. But what I meant was module scripts for example should be placed in serverscriptservice. Because exploiters will be able to read them. I said that because I saw OP parented the script to the model.
Hm, isn’t the animator supposed to be parented to the humanoid? Then again, I don’t really use the animationcontroller or whatever since the animator is just more simple to use imo.
Just read up the documentation on animationcontrollers, I think you can just do animationcontroller:LoadAnimation(animation). No need for the animationcontroller.animator thing.
local InsertService = game:GetService("InsertService")
-- Load a model for demonstration
local npcModel = InsertService:LoadAsset(516159357):GetChildren()[1]
npcModel.Name = "NPC"
npcModel.PrimaryPart.Anchored = true
npcModel:SetPrimaryPartCFrame(CFrame.new(0, 5, 0))
npcModel.Parent = workspace
-- Replace the humanoid with an animationcontroller
local humanoid = npcModel:FindFirstChildOfClass("Humanoid")
humanoid:Destroy()
local animationController = Instance.new("AnimationController")
animationController.Parent = npcModel
-- Create and load an animation
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=507771019" -- Roblox dance emote
local animationTrack = animationController:LoadAnimation(animation)
-- Play the animation
animationTrack:Play()
What if they play an animation that is considered inappropriate? You’d find this incident happening in certain games.
So what? They can’t replicate any code changes of the module script to the other clients. If a module script is parented to a service that both server and client can access, for instance ReplicatedStorage
, it is no doubt that the exploiter can read the code, but they cannot change the overall code structure to replicate it to other clients.
Aren’t they the ones who get in trouble then? I’m sure roblox would take into account two things. One, it’s an exploiter. Two, its not my original code and they’ve modified it.
I don’t like to show clients things that they don’t need to see
imagine you worked so hard to make such a beautiful module script and then a hacker just comes around and steals it for something like their own game. All they would need to know is some scripting knowledge to modify my original code to their liking.
Also this can sometimes be dangerous, here’s a scenario for you. You have an anticheat module script, if you just allowed exploiters to see it aswell then they basically have all your anticheat code. They can do two things:
A: Steal the anticheat system for their own games
B: Leak the code to everybody, even people who don’t exploit will now know how your anticheat system works. Heck, they don’t even need to be a good scripter, just need to know the basics to use your anticheat system.
And this has actually happened, real life examples such as GTA V. They took your approach of not caring whats on the client or what isn’t and their whole source code was leaked because of this. The anticheat system was also leaked because guess what? Clients were able to read it.
hey uh, sorry for not contributing anything to this topic
but how do you get those cool icons??
I’m sure its a plugin, unless…?
can i have that plugin??
Idk what the plugin is tbh I just stick with default roblox icons and everything. I’m raw.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.